/* --- RESET E VARIABILI COLORI --- */

:root {

    --primary-color: #2e6f5f;      /* Verde Salvia elegante */

    --primary-dark: #1f4d42;

    --accent-color: #2b5b75;       /* Blu Ottanio / Avio per autorevolezza */

    --bg-light: #f6f8f7;           /* Sfondo chiaro riposante */

    --text-color: #2c3e3a;         /* Antracite scuro organico */

    --text-muted: #5c6f6b;

    --white: #ffffff;

    --font-heading: 'Lora', serif;

    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition: all 0.3s ease;

}



* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    font-family: var(--font-body);

    color: var(--text-color);

    line-height: 1.6;

    background-color: var(--white);

}



h1, h2, h3 {

    font-family: var(--font-heading);

    color: var(--primary-dark);

    line-height: 1.3;

}



a {

    text-decoration: none;

    color: inherit;

    transition: var(--transition);

}



img {

    max-width: 100%;

    height: auto;

    border-radius: 8px;

}



.container {

    width: 90%;

    max-width: 1140px;

    margin: 0 auto;

}



.section-padding {

    padding: 40px 0;

}



.bg-light {

    background-color: var(--bg-light);

}



.bg-accent {

    background-color: #eaf1ee;

}



.text-center {

    text-align: center;

}



/* --- BUTTONS --- */

.btn {

    display: inline-block;

    padding: 12px 24px;

    border-radius: 50px;

    font-weight: 600;

    cursor: pointer;

}



.btn-primary {

    background-color: var(--primary-color);

    color: var(--white);

}



.btn-primary:hover {

    background-color: var(--primary-dark);

}



.btn-secondary {

    border: 2px solid var(--primary-color);

    color: var(--primary-color);

}



.btn-secondary:hover {

    background-color: var(--primary-color);

    color: var(--white);

}



.btn-header {

    background-color: #25D366;

    color: var(--white);

    padding: 8px 18px;

    font-size: 0.9rem;

}



/* --- NAVBAR --- */

.navbar {

    background: var(--white);

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

    position: sticky;

    top: 0;

    z-index: 100;

    padding: 15px 0;

}



.nav-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.logo-name {

    display: block;

    font-family: var(--font-heading);

    font-weight: 600;

    font-size: 1.2rem;

    color: var(--primary-dark);

}



.logo-title {

    font-size: 0.8rem;

    color: var(--text-muted);

}



.nav-links a {

    margin: 0 12px;

    font-weight: 500;

}



.nav-links a:hover, .nav-links a.active {

    color: var(--primary-color);

}



/* --- HERO SECTION --- */

.hero {

    padding: 40px 0;

    background: linear-gradient(135deg, #ffffff 0%, #f1f6f4 100%);

}



.hero-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: center;

}



.badge {

    background-color: #e2ede8;

    color: var(--primary-dark);

    padding: 6px 14px;

    border-radius: 20px;

    font-size: 0.85rem;

    font-weight: 600;

}



.hero h1 {

    font-size: 2.5rem;

    margin: 15px 0;

}



.hero p {

    font-size: 1.1rem;

    color: var(--text-muted);

    margin-bottom: 25px;

}



.hero-buttons {

    display: flex;

    gap: 15px;

}



/* --- GRIDS & CARDS --- */

.grid-2-col {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    align-items: center;

}



.features-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}



.feature-card {

    background: var(--bg-light);

    padding: 30px;

    border-radius: 12px;

    text-align: center;

}



.feature-card .icon {

    font-size: 2.5rem;

    margin-bottom: 15px;

}



.locations-grid, .offices-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-top: 40px;

}



.location-box, .office-card {

    background: var(--white);

    border: 1fr solid #e5e5e5;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.03);

    text-align: center;

}



.office-type {

    display: inline-block;

    color: var(--primary-color);

    font-weight: 600;

    font-size: 0.85rem;

    margin-bottom: 10px;

}



/* --- PAGE HEADERS --- */

.page-header {

    padding: 30px 0;

}



.page-header h1 {

    font-size: 2.2rem;

}



/* --- FAQ & FORMS --- */

.faq-container {

    max-width: 800px;

}



.faq-item {

    background: var(--bg-light);

    padding: 20px;

    border-radius: 8px;

    margin-bottom: 15px;

}



.faq-item h3 {

    font-size: 1.1rem;

    margin-bottom: 8px;

}



.contact-form .form-group {

    margin-bottom: 15px;

}



.contact-form label {

    display: block;

    margin-bottom: 5px;

    font-weight: 600;

}



.contact-form input, .contact-form select, .contact-form textarea {

    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 6px;

    font-family: inherit;

}



/* --- FOOTER & WHATSAPP --- */

.footer {

    background-color: var(--primary-dark);

    color: var(--white);

    padding: 20px 0 20px 0;

}



.footer-content {

    display: flex;

    justify-content: space-between;

    margin-bottom: 20px;

}



.footer a {

    color: #aedbc8;

}



.whatsapp-float {

    position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

}



.whatsapp-icon {

    width: 32px;

    height: 32px;

}



/* --- RESPONSIVE MOBILE --- */

@media (max-width: 768px) {

    .hero-grid, .grid-2-col, .features-grid, .nav-container, .footer-content {

        grid-template-columns: 1fr;

        flex-direction: column;

        text-align: center;

    }



    .hero-buttons {

        justify-content: center;

    }



    .nav-links {

        margin: 15px 0;

    }

}

/* SFONDO E STACCO PER LA SEZIONE QUIZ */

.quiz-section {

    background-color: #e2ede8 !important; /* Salvia chiaro elegante per staccare dal bianco/grigio */

    border-top: 1px solid #d0e0d8;

    border-bottom: 1px solid #d0e0d8;

}



.quiz-card-wrapper {

    background: #ffffff;

    padding: 35px;

    border-radius: 16px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(31, 77, 66, 0.08); /* Ombra morbida basata sul verde del brand */

    border: 1px solid #d8e5e0;

}



.quiz-step-badge {

    color: var(--primary-color);

    font-weight: 700;

    font-size: 0.85rem;

    letter-spacing: 0.5px;

}



.quiz-options {

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.quiz-options .btn-secondary {

    background-color: #ffffff;

    text-align: center;

    border: 1.5px solid #bcd4ca;

}



.quiz-options .btn-secondary:hover {

    background-color: var(--primary-color);

    color: #ffffff;

    border-color: var(--primary-color);

}

/* BANNER COOKIE GDPR */

.cookie-banner {

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    background-color: #1f4d42; /* Verde scuro coerente con il brand */

    color: #ffffff;

    padding: 20px 0;

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);

    z-index: 9999;

    display: none; /* Nascosto di default, mostrato via JS */

}



.cookie-content {

    width: 90%;

    max-width: 1140px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}



.cookie-text h4 {

    color: #ffffff;

    font-size: 1.1rem;

    margin-bottom: 5px;

}



.cookie-text p {

    font-size: 0.85rem;

    line-height: 1.4;

    color: #e2ede8;

}



.cookie-text a {

    color: #aedbc8;

    text-decoration: underline;

}



.cookie-buttons {

    display: flex;

    gap: 10px;

    flex-shrink: 0;

}



.btn-cookie-accept {

    background-color: #25d366;

    color: #ffffff;

    border: none;

    padding: 10px 20px;

    border-radius: 25px;

    font-weight: 600;

    cursor: pointer;

    font-size: 0.9rem;

}



.btn-cookie-accept:hover {

    background-color: #1eb855;

}



.btn-cookie-reject {

    background-color: transparent;

    color: #ffffff;

    border: 1px solid #aedbc8;

    padding: 10px 20px;

    border-radius: 25px;

    font-weight: 500;

    cursor: pointer;

    font-size: 0.9rem;

}



.btn-cookie-reject:hover {

    background-color: rgba(255, 255, 255, 0.1);

}



/* Responsive Mobile */

@media (max-width: 768px) {

    .cookie-content {

        flex-direction: column;

        text-align: center;

    }

    .cookie-buttons {

        width: 100%;

        justify-content: center;

    }

}

/* PULSANTI SOCIAL FOOTER */

.social-links-wrapper {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}



.social-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 6px 14px;

    border-radius: 20px;

    font-size: 0.85rem;

    font-weight: 600;

    color: #ffffff !important;

    text-decoration: none;

    transition: transform 0.2s ease, opacity 0.2s ease;

}



.social-btn:hover {

    transform: translateY(-2px);

    opacity: 0.9;

}



.social-btn.facebook {

    background-color: #1877f2;

}



.social-btn.instagram {

    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

}



.social-icon {

    width: 16px;

    height: 16px;

}

/* Centrare i pulsanti social */

.social-buttons {

    display: flex;

    justify-content: center; /* Centra orizzontalmente i pulsanti */

    align-items: center;

    gap: 12px;               /* Spazio tra Facebook e Instagram */

    margin: 15px 0;          /* Spazio sopra e sotto */

    width: 100%;

}



/* MAPPE GOOGLE MAPS RESPONSIVE */

.map-wrapper {

    width: 100%;

    height: 220px;

    margin: 15px 0;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    border: 1px solid #e0eae5;

}



.map-wrapper iframe {

    width: 100%;

    height: 100%;

    border: 0;

}



.office-address {

    font-size: 0.9rem;

    color: var(--text-muted);

    margin-top: 5px;

}

/* STILI SEZIONE PIANI ALIMENTARI */

.meal-plans-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;

}



.plan-card {

    background-color: var(--white);

    border: 1px solid #e2ede8;

    border-radius: 14px;

    padding: 30px 25px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.plan-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(46, 111, 95, 0.12);

    border-color: var(--primary-color);

}



.plan-header {

    margin-bottom: 15px;

}



.plan-icon {

    font-size: 2.2rem;

    display: block;

    margin-bottom: 10px;

}



.plan-card h3 {

    font-size: 1.25rem;

    color: var(--primary-dark);

}



.plan-desc {

    font-size: 0.95rem;

    color: var(--text-muted);

    margin-bottom: 20px;

    line-height: 1.5;

    text-align: justify;

    text-justify: inter-word;

}



.plan-list {

    margin-bottom: 25px;

    font-size: 0.9rem;



}



.plan-list li {

    margin-bottom: 8px;

    text-align: justify;

    text-justify: inter-word;

}



.btn-plan {

    width: 100%;

    text-align: center;

    padding: 10px 0;

    font-size: 0.9rem;

}

/* CORREZIONE LAYOUT PIANI ALIMENTARI */



/* 1. Forza l'allineamento a sinistra del testo dentro la card */

.plan-card {

    text-align: left !important;

    margin-bottom: 30px; /* Spazio verticale di sicurezza tra le card */

}



/* Centra solo l'icona ed eventualmente il titolo se preferisci, altrimenti resta a sinistra */

.plan-header {

    text-align: center;

}



/* 2. Sistemazione elenco puntato: sposta i punti vicino al testo */

.plan-list {

    text-align: left !important;

    padding-left: 20px !important;

    margin: 15px 0 25px 0 !important;

}



.plan-list li {

    list-style-type: disc !important;

    margin-bottom: 8px;

}



/* Rimuove l'icona spunta personalizzata se crea conflitti con i pallini */

.plan-list li::before {

    content: none !important; 

}



/* 3. Aumento distanziamento tra le card quando sono impilate */

.meal-plans-grid {

    gap: 40px !important; /* Aumenta lo spazio tra il pulsante e la card successiva */

}

/* Dispone logo e testo affiancati */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px; /* Spazio tra il logo e la scritta */
  text-decoration: none;
}

/* Gestione dell'immagine del logo */
.logo-img {
  height: 45px; /* Regola questa altezza in base alle tue esigenze */
  width: auto;
  object-fit: contain;
}

/* Raggruppa i due span in colonna uno sotto l'altro a destra del logo */
.logo-name,
.logo-title {
  display: block;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Didascalia sovrapposta sull'immagine */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(30, 58, 43, 0.75); /* Verde scuro semi-trasparente */
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* Pallini di navigazione */
.slider-dots {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
  width: 24px;
  border-radius: 12px;
}