/* Palette di colori unica */
:root {
    --deep-jade: #2D5A3A;
    --pastel-lime: #C8E6C9;
    --lavender-gray: #E8EAF6;
    --smoky-white: #F8F9FA;
    --honey-yellow: #F4C542;
    --accent-green: #7FBF7F;
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body, html {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--smoky-white);
    background: linear-gradient(135deg, var(--deep-jade) 0%, #1a3d28 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--honey-yellow);
}

h3 {
    font-size: 1.8rem;
    color: var(--pastel-lime);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Header */
header {
    background: rgba(45, 90, 58, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--smoky-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--honey-yellow);
}

/* Menu Burger Mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--smoky-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-jade);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 0 0 10px 10px;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.mobile-nav.active {
    display: block;
}

/* Burger animation with CSS only */
#burger-toggle:checked + .burger-menu .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#burger-toggle:checked + .burger-menu .burger-line:nth-child(2) {
    opacity: 0;
}

#burger-toggle:checked + .burger-menu .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

#burger-toggle:checked ~ .mobile-nav {
    display: block !important;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--deep-jade) 0%, #1a3d28 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/CLrRNC.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--smoky-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    color: var(--pastel-lime);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--honey-yellow);
    color: var(--deep-jade);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(244, 197, 66, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(244, 197, 66, 0.4);
    background: #F2C94C;
}

.btn-secondary {
    background: transparent;
    color: var(--honey-yellow);
    border: 2px solid var(--honey-yellow);
}

.btn-secondary:hover {
    background: var(--honey-yellow);
    color: var(--deep-jade);
}

/* Sections */
.section {
    padding: 80px 0;
    margin: 40px 0;
}

.section:nth-child(even) {
    background: rgba(232, 234, 246, 0.05);
    border-radius: 20px;
    margin: 40px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background: var(--lavender-gray);
    color: var(--deep-jade);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--deep-jade);
    margin-bottom: 1rem;
}

.card p {
    color: #555;
    line-height: 1.6;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Pricing */
.pricing-card {
    background: var(--lavender-gray);
    color: var(--deep-jade);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid var(--honey-yellow);
    transform: scale(1.05);
}

.pricing-card h3 {
    color: var(--deep-jade);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--honey-yellow);
    margin: 1rem 0;
}

.price-features {
    list-style: none;
    margin: 1.5rem 0;
}

.price-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 90, 58, 0.1);
}

/* Form */
.form-container {
    background: var(--lavender-gray);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-jade);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--pastel-lime);
    border-radius: 10px;
    background: white;
    color: var(--deep-jade);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--honey-yellow);
}

/* Radio buttons styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid var(--pastel-lime);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--honey-yellow);
    background: var(--smoky-white);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
}

.radio-option.selected {
    border-color: var(--honey-yellow);
    background: var(--smoky-white);
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.checkbox-group label {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--deep-jade);
    color: var(--smoky-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-popup p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-popup .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--deep-jade);
    color: var(--smoky-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--honey-yellow);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--smoky-white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--honey-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    color: var(--pastel-lime);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .header-content {
        position: relative;
    }
    
    nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    
    .cookie-popup {
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        box-sizing: border-box;
    }
    
    .radio-group {
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.8rem;
    }
    
    /* Prevent horizontal overflow */
    .hero::before {
        width: 100%;
        max-width: 100vw;
    }
    
    .section:nth-child(even) {
        margin: 40px 15px;
        max-width: calc(100% - 30px);
        box-sizing: border-box;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Testimonials responsive */
    .testimonial-card {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .testimonial-author h3 {
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .testimonial-image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    /* Smaller testimonial images on very small screens */
    .testimonial-image {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-author h3 {
        font-size: 0.8rem;
    }
    
    .testimonial-card p {
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--honey-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cookie-popup,
    header,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Testimonials */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--honey-yellow);
    flex-shrink: 0;
}

.testimonial-author h3 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* Better card spacing for testimonials */
.testimonial-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.testimonial-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    hyphens: auto;
    word-break: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ensure all text doesn't break layout */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
} 