/* =====================================================
   Azienda Agricola Al Fienile — Stile condiviso
   Design rustico/naturale — Mobile-first responsive
   ===================================================== */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- Variabili colori --- */
:root {
  --verde:        #3d5a3e;
  --verde-scuro:  #2d4430;
  --verde-chiaro: #e8f0e8;
  --ambra:        #c17f24;
  --ambra-chiaro: #dba035;
  --crema:        #faf7f2;
  --beige:        #f0ebe0;
  --marrone:      #2c1e0f;
  --testo:        #3a3028;
  --testo-chiaro: #6b5d52;
  --bianco:       #ffffff;
  --ombra:        0 4px 24px rgba(44, 30, 15, 0.13);
  --ombra-soft:   0 2px 12px rgba(44, 30, 15, 0.08);
  --raggio:       6px;
  --trans:        0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  color: var(--testo);
  background: var(--crema);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans);
}

ul {
  list-style: none;
}

/* --- Tipografia --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--marrone);
}

h1 { font-size: clamp(2rem,   5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1rem,   2vw,  1.3rem); }

p  { margin-bottom: 1rem; color: var(--testo); }
p:last-child { margin-bottom: 0; }

/* --- Utilità --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ======================================================
   HEADER / NAV
   ====================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--trans), box-shadow var(--trans);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(44,30,15,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: opacity var(--trans);
}

.nav-logo .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bianco);
  line-height: 1.2;
  transition: color var(--trans);
}

.site-header.scrolled .nav-logo .logo-text {
  color: var(--marrone);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ambra-chiaro);
  border-bottom-color: var(--ambra-chiaro);
}

.site-header.scrolled .nav-links a {
  color: var(--testo);
}

.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active {
  color: var(--verde);
  border-bottom-color: var(--verde);
}

.nav-links .btn-eshop {
  background: var(--ambra);
  color: var(--bianco) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--raggio);
  border-bottom: none !important;
  letter-spacing: 0.05em;
  transition: background var(--trans), transform var(--trans);
}

.nav-links .btn-eshop:hover {
  background: var(--ambra-chiaro);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bianco);
  border-radius: 2px;
  transition: all var(--trans);
}

.site-header.scrolled .nav-toggle span {
  background: var(--marrone);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bianco);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, box-shadow 0.3s;
    box-shadow: none;
  }

  .nav-links.open {
    max-height: 400px;
    box-shadow: 0 8px 24px rgba(44,30,15,0.12);
  }

  .nav-links a {
    display: block;
    color: var(--testo) !important;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--beige) !important;
    font-size: 1rem;
    letter-spacing: 0.04em;
    border-left: none;
  }

  .nav-links a:last-child {
    border-bottom: none !important;
  }

  .nav-links .btn-eshop {
    margin: 1rem 1.5rem;
    text-align: center;
    border-radius: var(--raggio);
    border-bottom: none !important;
  }
}

/* ======================================================
   HERO (HOME) — SLIDESHOW
   ====================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,30,15,0.35) 0%,
    rgba(44,30,15,0.15) 50%,
    rgba(44,30,15,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--bianco);
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  color: var(--bianco);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 580px;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Indicatori slideshow */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  transition: background var(--trans), transform var(--trans);
}

.hero-dot.active {
  background: var(--bianco);
  transform: scale(1.3);
}

/* Hero pagina interna */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 340px;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,30,15,0.2) 0%, rgba(44,30,15,0.65) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  color: var(--bianco);
}

.page-hero-content h1 {
  color: var(--bianco);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.page-hero-content .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.page-hero-content .breadcrumb a:hover {
  color: var(--ambra-chiaro);
}

/* ======================================================
   BOTTONI
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--raggio);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--verde);
  color: var(--bianco);
  border-color: var(--verde);
}

.btn-primary:hover {
  background: var(--verde-scuro);
  border-color: var(--verde-scuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,90,62,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--bianco);
  border-color: rgba(255,255,255,0.75);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--bianco);
  transform: translateY(-2px);
}

.btn-ambra {
  background: var(--ambra);
  color: var(--bianco);
  border-color: var(--ambra);
}

.btn-ambra:hover {
  background: var(--ambra-chiaro);
  border-color: var(--ambra-chiaro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,127,36,0.35);
}

.btn-verde-outline {
  background: transparent;
  color: var(--verde);
  border-color: var(--verde);
}

.btn-verde-outline:hover {
  background: var(--verde);
  color: var(--bianco);
  transform: translateY(-2px);
}

/* ======================================================
   SEZIONI
   ====================================================== */
section {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ambra);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--ambra);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.section-header.centered .section-divider {
  margin: 1rem auto 1.5rem;
}

/* ======================================================
   SEZIONE CHI SIAMO (HOME)
   ====================================================== */
.about-section {
  background: var(--bianco);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .lead {
  font-size: 1.15rem;
  color: var(--verde);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--verde);
  color: var(--bianco);
  padding: 1.25rem 1.5rem;
  border-radius: var(--raggio);
  font-family: 'Playfair Display', serif;
  text-align: center;
  box-shadow: var(--ombra);
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.about-badge span {
  font-size: 0.8rem;
  opacity: 0.85;
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image img { height: 300px; }
  .about-badge { bottom: -1rem; left: 1rem; }
}

/* ======================================================
   PRODOTTI (HOME)
   ====================================================== */
.products-section {
  background: var(--crema);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bianco);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra-soft);
  transition: transform var(--trans), box-shadow var(--trans);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombra);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--marrone);
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--testo-chiaro);
  margin-bottom: 0;
}

/* ======================================================
   SEZIONI LINK STALLA / CASEIFICIO
   ====================================================== */
.sections-split {
  padding: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.split-item {
  position: relative;
  overflow: hidden;
}

.split-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-item:hover img {
  transform: scale(1.04);
}

.split-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,30,15,0.75) 0%, rgba(44,30,15,0.1) 60%);
  display: flex;
  align-items: flex-end;
}

.split-item-content {
  padding: 2.5rem 2rem;
  color: var(--bianco);
}

.split-item-content h3 {
  color: var(--bianco);
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.split-item-content p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .split-grid { grid-template-columns: 1fr; min-height: auto; }
  .split-item { height: 320px; }
}

/* ======================================================
   GALLERIA
   ====================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--raggio);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
}

/* ======================================================
   LIGHTBOX (galleria)
   ====================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--raggio);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  color: var(--bianco);
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--trans);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bianco);
  font-size: 2rem;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: var(--raggio);
  opacity: 0.8;
  transition: opacity var(--trans), background var(--trans);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ======================================================
   CONTENUTO PAGINE INTERNE
   ====================================================== */
.page-content {
  background: var(--bianco);
}

.page-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.page-text-col .lead {
  font-size: 1.1rem;
  color: var(--verde);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.highlight-box {
  background: var(--verde-chiaro);
  border-left: 4px solid var(--verde);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--raggio) var(--raggio) 0;
  margin: 1.5rem 0;
}

.highlight-box p {
  color: var(--verde-scuro);
  margin: 0;
  font-style: italic;
}

@media (max-width: 780px) {
  .page-text-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ======================================================
   PRODOTTI CASEIFICIO — GRID PICCOLA
   ====================================================== */
.prodotti-section {
  background: var(--beige);
}

.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.prodotto-item {
  background: var(--bianco);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra-soft);
  transition: transform var(--trans), box-shadow var(--trans);
}

.prodotto-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombra);
}

.prodotto-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.prodotto-item-body {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}

.prodotto-item-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--marrone);
}

.prodotto-item-body p {
  font-size: 0.85rem;
  color: var(--testo-chiaro);
  margin: 0;
}

/* ======================================================
   CARATTERISTICHE / ICON FEATURES
   ====================================================== */
.features-section {
  background: var(--verde);
  color: var(--bianco);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.feature-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-item h4 {
  color: var(--bianco);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* ======================================================
   CONTATTI / DOVE SIAMO
   ====================================================== */
.contact-section {
  background: var(--crema);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .ci-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item strong {
  display: block;
  color: var(--marrone);
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.2rem;
}

.contact-item a:hover {
  color: var(--verde);
}

.map-placeholder {
  background: var(--beige);
  border-radius: var(--raggio);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
  background: var(--marrone);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--bianco);
  font-size: 1rem;
  transition: background var(--trans);
}

.footer-social a:hover {
  background: var(--ambra);
}

.footer-col h5 {
  font-family: 'Playfair Display', serif;
  color: var(--bianco);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--trans);
}

.footer-col ul li a:hover {
  color: var(--ambra-chiaro);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
  color: var(--ambra-chiaro);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   ANIMAZIONI SCROLL (IntersectionObserver)
   ====================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ======================================================
   COOKIE BANNER
   ====================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--marrone);
  color: rgba(255,255,255,0.9);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9000;
  font-size: 0.88rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-banner a {
  color: var(--ambra-chiaro);
  text-decoration: underline;
}

.cookie-banner-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--raggio);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--bianco);
  transition: all var(--trans);
}

.cookie-btn.accept {
  background: var(--verde);
  border-color: var(--verde);
}

.cookie-btn:hover {
  border-color: var(--ambra);
  color: var(--ambra-chiaro);
}

.cookie-btn.accept:hover {
  background: var(--verde-scuro);
  border-color: var(--verde-scuro);
  color: var(--bianco);
}

/* ======================================================
   RESPONSIVE GENERALI
   ====================================================== */
@media (max-width: 960px) {
  section { padding: 3.5rem 0; }
  .features-section { padding: 3rem 0; }
}

@media (max-width: 640px) {
  section { padding: 2.75rem 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
}
