/* ==========================================================================
   Base & Variables
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--grigio-testo);
    background: var(--panna);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 120px; /* Space for fixed headers */
}

:root {
    --verde-scuro: #1a4d3a;
    --verde-chiaro: #52c971;
    --panna: #fdf8f0;
    --bianco: #ffffff;
    --grigio-testo: #2c3e50;
    --grigio-chiaro: #7f8c8d;
    --accent-gold: #f39c12;
    --shadow-main: rgba(26, 77, 58, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-top {
    background: linear-gradient(45deg, var(--verde-scuro), var(--verde-chiaro));
    color: var(--panna);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    background: var(--bianco);
    padding: 15px 0;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 20px var(--shadow-main);
    border-bottom: 3px solid var(--verde-chiaro);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    color: var(--verde-scuro);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    background: linear-gradient(135deg, var(--verde-scuro), var(--verde-chiaro));
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(26, 77, 58, 0.3);
}

.nav-menu a {
    color: var(--panna);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 35px;
    display: block;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--panna);
    color: var(--verde-scuro);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: radial-gradient(circle at 20% 30%, rgba(82, 201, 113, 0.2) 0%, transparent 50%),
                linear-gradient(135deg, var(--panna) 0%, #f0f8f0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    color: var(--verde-scuro);
}

.hero-content .highlight {
    color: var(--verde-chiaro);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    margin: 20px 0 40px;
    max-width: 650px;
    font-style: italic;
}

.cta-button {
    background: linear-gradient(135deg, var(--verde-chiaro), var(--verde-scuro));
    color: var(--panna);
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(82, 201, 113, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
}

/* ==========================================================================
   General Section Styling
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--verde-scuro);
    font-weight: 300;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--grigio-chiaro);
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* ==========================================================================
   Services Section (FIXED)
   ========================================================================== */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-item {
    margin-bottom: 15px;
}

.service-item h4 {
    color: var(--verde-scuro);
    font-size: 1.2rem;
}

.services-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-image {
    height: 250px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(26, 77, 58, 0.3);
    transition: transform 0.4s ease;
}

.service-image:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Setting background images for the service blocks */
.service-image:nth-of-type(1) { background-image: url('images/team-beach-1.jpg'); }
.service-image:nth-of-type(2) { background-image: url('images/team-beach-2.jpg'); }

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 77, 58, 0.7), rgba(82, 201, 113, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--panna);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-image:hover .service-overlay {
    opacity: 1;
}

/* ==========================================================================
   Other Sections (Mission, Gallery, etc.)
   ========================================================================== */
.mission {
    padding: 80px 0;
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}
.mission-image {
    height: 450px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-image: url('images/team-beach-1.jpg');
    box-shadow: 0 20px 60px rgba(26, 77, 58, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.feature {
    text-align: center;
}
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--verde-chiaro), var(--verde-scuro));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--panna);
    font-size: 1.8rem;
}
.feature h3 { color: var(--verde-scuro); }

.gallery, .training, .contact {
    padding: 80px 0;
}

.work-with-us {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde-chiaro) 100%);
    color: var(--panna);
    text-align: center;
}
.work-content h2 { font-size: 3rem; }
.work-content p { font-size: 1.3rem; max-width: 900px; margin-left: auto; margin-right: auto; }

.contact-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 40px;
}

.btn-whatsapp, .btn-email {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
}
.btn-whatsapp { background: #25d366; color: white; }
.btn-email { background: var(--panna); color: var(--verde-scuro); }


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Georgia', serif;
}
.form-row {
    display: flex;
    gap: 15px;
}
.submit-btn {
    background: var(--verde-scuro);
    color: var(--panna);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #1a2f1a 0%, var(--verde-scuro) 100%);
    color: var(--panna);
    padding: 60px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 { color: var(--verde-chiaro); }
.footer-section a { color: var(--panna); text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--verde-chiaro); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(82, 201, 113, 0.3);
    padding-top: 25px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Cookie Banner & Modal (FIXED)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--verde-scuro), var(--verde-chiaro));
    color: var(--panna);
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text a { color: var(--accent-gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 12px; }
.cookie-btn { padding: 10px 20px; border: none; border-radius: 25px; cursor: pointer; font-weight: 700; }
.cookie-accept { background: var(--accent-gold); color: var(--verde-scuro); }
.cookie-reject { background: transparent; color: var(--panna); border: 2px solid var(--panna); }
.cookie-settings { background: rgba(255, 255, 255, 0.2); color: var(--panna); }

.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(26, 77, 58, 0.8);
}
/* Other modal styles here if needed */

/* ==========================================================================
   Floating Elements & Animations
   ========================================================================== */
.floating-elements {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.floating-element { position: absolute; }
.floating-element:nth-of-type(1) { width: 80px; top: 15%; left: 8%; }
.floating-element:nth-of-type(2) { width: 120px; top: 65%; right: 12%; }
.floating-element:nth-of-type(3) { width: 100px; bottom: 25%; left: 15%; }
.floating-element:nth-of-type(4) { width: 90px; top: 20%; right: 20%; }
.floating-element:nth-of-type(5) { width: 70px; bottom: 10%; right: 40%; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid, .mission-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body { padding-top: 110px; }
    .navbar .container { flex-direction: column; gap: 10px; }
    .nav-menu { width: 100%; overflow-x: auto; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-content { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; text-align: center; }
}