/* Etichetta Collaboratori nell'organigramma */
.org-label-collaboratori {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: 1px;
}
/* ORGANIGRAMMA TEAM */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0 0 0;
    gap: 2.5rem;
}
.org-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
}
.org-main {
    margin-bottom: 2.5rem;
    position: relative;
}
.org-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    gap: 1rem;
    position: relative;
}
.org-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--color-slate-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.org-avatar-large {
    width: 120px;
    height: 120px;
    font-size: 4rem;
}
.org-info {
    text-align: center;
}
.org-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 0.3rem;
}
.org-role {
    color: var(--color-slate);
    font-size: 0.98rem;
    font-weight: 400;
}
.org-collaborators {
    gap: 2.5rem;
}
.org-collaborator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 900px) {
    .org-row {
        flex-direction: column;
        gap: 2rem;
    }
    .org-main::after {
        display: none;
    }
}
/* 
 * COLOR PALETTE & VARIABLES 
 */
:root {
    --color-navy: #0F172A;      /* Navy Blue scuro */
    --color-primary: #1E3A8A;   /* Blu istituzionale */
    --color-slate: #64748B;     /* Grigio Ardesia */
    --color-slate-light: #F1F5F9; /* Sfondo chiaro */
    --color-white: #FFFFFF;
    --color-text: #334155;
    --color-accent: #38BDF8;    /* Un tocco di azzurro per vivacizzare */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 
 * RESET & BASE STYLES 
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    min-height: 100vh; /* Fallback per browser vecchi */
    min-height: var(--app-height, 100vh); /* Altezza calcolata via JS */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente il contenuto */
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-slate);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* 
 * NAVBAR 
 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-navy);
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-navy);
}

/* 
 * HERO SECTION 
 */
.hero {
    min-height: 100vh;
    min-height: var(--app-height, 100vh);
    /* Background moved to individual slides */
    position: relative;
    overflow: hidden;
    /* Flex properties removed as layout is handled by slides */
    color: var(--color-white);
    padding-top: 80px; /* Offset for navbar */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; /* Slower transition for smoother fade */
    transform: scale(1.05); /* Slight zoom out effect start */
    z-index: 1;
    padding: 0 1rem;
    
    /* Common background properties */
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Slide 1 Background */
.slide:nth-child(1) {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 58, 138, 0.6)), url('foto/vineyard.jpg');
}

/* Slide 2 Background */
.slide:nth-child(2) {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.8)), url('foto/hero_bg_2.jpg');
}

.hero-content {
    /* Container styles already handled by .slide flex layout, but keeping this for text width constraints */
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-navy);
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-navy);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

/* 
 * ABOUT SECTION 
 */
.about {
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-vision {
    font-size: 1.5rem;
    color: var(--color-navy);
    font-weight: 500;
    max-width: 800px;
    margin-top: 1rem;
    position: relative;
}

.about-vision::before {
    content: '\f10d'; /* Quote icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

/* 
 * SERVICES SECTION 
 */
.services {
    background-color: var(--color-slate-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-slate);
    font-size: 0.95rem;
}

/* 
 * TEAM SECTION 
 */
.team {
    background-color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    max-width: 1100px; /* Increased to fit 3 cards */
    margin: 0 auto;
}

.team-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-hover);
}

.team-img {
    height: 350px; /* Increased height for better portrait aspect */
    width: 100%;
    object-fit: cover;
    background-color: var(--color-slate-light); /* Placeholder bg */
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

.team-info p {
    color: var(--color-slate);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    /* Removed uppercase and letter-spacing for better readability of long text */
}



/* 
 * FOOTER 
 */
.footer {
    background-color: var(--color-navy);
    color: var(--color-slate-light);
    padding: 4rem 0 2rem;
    min-height: 100vh; /* Fallback per browser vecchi */
    min-height: var(--app-height, 100vh); /* Altezza calcolata via JS */
    display: flex;
    flex-direction: column;
}

.footer .container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 0;
    flex: 1;
    align-content: center;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-item i {
    color: var(--color-accent);
    margin-top: 4px;
}

.contact-link {
    color: var(--color-slate-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-slate);
}

/* 
 * ANIMATIONS & UTILS 
 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 
 * DOT NAVIGATION 
 */
.dot-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* Above navbar */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot-nav a {
    display: block;
    width: 12px;
    height: 12px;
    background-color: #ccc; /* Grigio inattivo */
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tooltip al passaggio del mouse */
.dot-nav a::before {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 23, 42, 0.9); /* var(--color-navy) with opacity */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.dot-nav a:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Stato Attivo */
.dot-nav a.active {
    background-color: var(--color-primary); /* Blu attivo */
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

/* Nascondi dot navigation su mobile per evitare ingombro */
@media (max-width: 768px) {
    .dot-nav {
        display: none;
    }
}

/* 
 * WHATSAPP FLOATING BUTTON 
 */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none; /* Hidden by default (desktop) */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 2px; /* Optical adjustment */
}

/* 
 * RESPONSIVE 
 */
@media (max-width: 768px) {
    .whatsapp-float {
        display: flex; /* Visible only on mobile */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden */
        transition: 0.4s ease-in-out;
    }

    .nav-links.nav-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Visible */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 0; /* Area cliccabile estesa */
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* 
 * COOKIE BANNER 
 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 1.5rem 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    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;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-actions .btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    background-color: var(--color-accent);
    color: var(--color-navy);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-actions .btn-sm:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-banner {
        padding-bottom: 2rem; /* Spazio extra per mobile */
    }
}