/* Variabili colori */
:root {
    --primary: #00bfae; /* verde acqua */
    --accent: #008f7a;
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --transition: 0.3s ease;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--font-primary);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}


/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
:root {
    /* Aggiungi questa variabile per gestire la dimensione del logo */
    --logo-height: 100px; /* Cambia questo valore per ingrandire o rimpicciolire il logo */
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding-bottom: 10px;
    display: block; /* fondamentale per mettere logo e nav uno sotto l'altro */
}

/* Logo container: centrato in orizzontale */
.logo-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.logo-img {
    height: var(--logo-height, 200px);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Navigazione sotto logo */
.nav {
    max-width: 1200px;
    margin: 0 auto;
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark, #333);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary, #1abc9c);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary, #1abc9c);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Slide down header animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sezione Servizi */
.services-section {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #e0f7f5, #ffffff);
    text-align: center;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    animation: fadeInUp 1s ease forwards;
    text-align: center; /* Aggiunto per centrare il testo */
}


.services-description {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #333;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 0.4s;
  margin-bottom: 40px; 
}

/* Singolo card servizio */
.service-card {
    background-color: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 191, 174, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 191, 174, 0.3);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-secondary);
}

.service-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

/* FOOTER */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 0;
    text-align: left; /* tutto allineato a sinistra */
}

.footer .container {
    text-align: left; /* assicurati che il container sia left */
}

/* Se vuoi che tutti i testi dentro footer siano left, puoi aggiungere: */
.footer * {
    text-align: left;
}

/* Ma per la parte in basso, centrala di nuovo */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-logo .logo-highlight {
    color: var(--primary);
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer li i {
    margin-right: 10px;
    color: var(--primary);
}

/* Qui centro la scritta "Scorri per scoprire" con animazione */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white; /* Se vuoi testo visibile */
    font-weight: 500;
    font-size: 1.1rem;
}

/* Se vuoi regolare la dimensione o animazione dello scroll icon */
.scroll-icon {
    margin-top: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid #11633d;
    border-radius: 50%;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}


.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.newsletter {
    display: flex;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.newsletter button {
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 100px 30px;
    }
    
    .nav li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 5px;
    }
    
    .newsletter button {
        border-radius: 4px;
    }
}


/* Animazioni */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Transizione tra pagine --- */
body.page-transition {
opacity: 1;
transition: opacity 0.5s ease;
}

body.fade-out {
 opacity: 0;
}

.service-card {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .btn {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  border-radius: 8px; /* angoli più morbidi */
  transition: background-color 0.2s;
}

.service-card .btn:hover {
  background-color: #0056b3;
}

/* Per bottoni a pillola: */
.service-card .btn-pill {
  border-radius: 25px; /* estremamente arrotondato */
}
.video-box {
  max-width: 600px;    /* larghezza massima del box */
  margin: 0 auto;      /* centra il box */
  border: 2px solid #ccc; /* bordo opzionale */
  padding: 10px;       /* padding interno */
  border-radius: 10px; /* angoli arrotondati */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* ombra leggera */
}

.video-text-container {
  display: flex;
  align-items: center; /* allinea verticalmente video e testo */
  gap: 30px;           /* spazio tra video e testo */
  flex-wrap: wrap;     /* permette di andare a capo su schermi piccoli */
    margin-bottom: 40px;
}

.video-box video {
  width: 400px;  /* dimensione fissa o cambia come vuoi */
  height: auto;
  border-radius: 10px;
}

.text-box {
  flex: 1; /* occupa lo spazio restante */
  min-width: 250px; /* evita che sia troppo stretto */
}
.narrow-video {
  max-width: 340px;
  margin: 0 auto;
  flex-shrink: 0;
}

.narrow-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



.tabella-numeri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  text-align: center;
  margin-top: 40px;
  position: relative;
}

.tabella-numeri div {
  font-size: 1.1rem;
  line-height: 1.4;
  position: relative;
  padding: 20px 10px;
}

/* Linea orizzontale sfumata tra le righe */
.tabella-numeri div::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #000, #2dbcb6);
  opacity: 0.4;
}

/* Rimuovi la linea per l'ultima riga */
.tabella-numeri div:nth-last-child(-n+3)::after {
  display: none;
}

.counter {
  display: block;
  font-size: 2.4rem;
  font-weight: bold;
  color: #2dbcb6; /* Verde acqua */
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive per schermi piccoli */
@media (max-width: 768px) {
  .tabella-numeri {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .tabella-numeri {
    grid-template-columns: 1fr;
  }
}
/* Animazione */
@keyframes lineaOrizzontale {
  to {
    transform: scaleX(1);
  }
}
.producer-logo {
  max-height: 60px;      /* altezza massima */
  max-width: 60px;      /* larghezza massima */
  width: auto;
  height: auto;
  display: inline-block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.producer-logo:hover {
  transform: scale(1.1);
}