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

/* Font Caviar Dreams */
@font-face {
  font-family: 'Caviar Dreams';
  src: url('../fonts/CaviarDreams.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Caviar Dreams';
  src: url('../fonts/CaviarDreams_Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Corpo generale */
body {
  font-family: 'Caviar Dreams', Arial, sans-serif;
  font-size: 25px;
  letter-spacing: 0.3px;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

h1 {
  font-size: 48px;
  font-weight: bold;
}

h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

p {
  font-size: 25px;
}

p1 {
  font-size: 15px;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  text-align: left;
}

/* Sezione Hero */
.hero {
  position: relative;
  height: 100vh;
  background: url('../images/estia_home.JPEG') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.hero .content {
  position: relative;
  z-index: 2;
}

.logo {
  max-width: 300px;
  width: 80%;
  height: auto;
  margin-bottom: 5px;
}

/* Pulsanti */
.btn {
  display: inline-block;
  background: #3b3b3b;
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #d9d9d9;
}

/* Sezioni generali */
.section {
  padding: 80px 0;
}

.section.light {
  background: #f9f9f9;
}

.section h2 {
  margin-bottom: 1em;
  color: #222;
}

/* Immagini prodotto */
.image-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.image-box {
  width: 45%;
  text-align: center;
}

.image-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-box figcaption {
  margin-top: 8px;
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

/* Immagine singola grande centrata */
.single-image {
  text-align: center;
  margin-top: 40px;
}

.single-image img {
  max-width: 800px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.single-image figcaption {
  margin-top: 8px;
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

/* Form contatti */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 30px auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  cursor: pointer;
}

/* Footer */
footer {
  background: #eee;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

footer p {
  margin: 0;
  font-size: 15px;
}

.footer-links {
  margin-top: 6px;
}

.footer-links a {
  color: #6f4e2d;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Lightbox a tutto schermo */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .image-box {
    width: 100%;
  }

  .image-box img {
    height: 260px;
  }

  .single-image img {
    max-width: 100%;
  }
}
/* SEZIONE LINEE ESTIA */
.linee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin: 60px auto;
}

.linea {
  text-align: center;
}

/* Contenitore logo + testo */
.titolo-linea {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;

}

.titolo-linea img {
  height: 50px;
  width: auto;
  vertical-align: middle;
}

/* Testo titolo */
.linea h2 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 2px;
}

/* Stile specifico per ogni linea */
.linea.area h2 {
  font-family: 'Caviar Dreams', sans-serif;
  color: #4a6d89;
  font-weight: bold;
  text-transform: uppercase;
}

.linea.classica h2 {
  font-family: 'Great Vibes', cursive;
  color: #b02a2a;
  font-size: 46px;
}

.linea.epoca h2 {
  font-family: 'Dancing Script', cursive;
  color: #4b5733;
  font-size: 44px;
}

.linea.opera h2 {
  font-family: 'Alex Brush', cursive;
  color: #666;
  font-size: 44px;
}

/* Immagini */
.linea img {
  width: 90%;
  border-radius: 8px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.linea img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 768px) {
  .titolo-linea {
    flex-direction: column;
  }

  .titolo-linea img {
    height: 40px;
  }

  .linea h2 {
    font-size: 32px;
  }

  .linea img {
    max-width: 90%;
  }
}
.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.linee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.linea-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linea-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.linea-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.linea-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.linea-card p {
  font-size: 22px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
}

.linea-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* 🔹 Aggiunte per allineamento del bottone */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.linea-card .btn:hover {
  background-color: var(--estia-button-hover);
}

/* 📱 Responsivo per mobile */
@media (max-width: 768px) {
  .linee-grid {
    grid-template-columns: 1fr;
  }
}

/* 📱 Ridimensionamento generale per smartphone */
@media (max-width: 600px) {

  /* ---- TESTI ---- */
  body {
    font-size: 18px;    /* Era 25px */
  }

  h1 {
    font-size: 32px;    /* Era 48px */
  }

  h2 {
    font-size: 24px;    /* Era 32px */
  }

  p {
    font-size: 18px;    /* Era 25px */
  }

  /* Testi speciali */
  .linea h2 {
    font-size: 26px !important; /* Per titoli AREA, CLASSICA, EPOCA, OPERA */
  }

  /* ---- BOTTONE ---- */
  .btn {
    padding: 8px 14px;   /* Era 10px 20px */
    font-size: 16px;     /* Aggiunto, controlla dimensioni */
    border-radius: 4px;
  }

  /* ---- HERO / LOGO ---- */
  .hero {
    height: 70vh; /* Riduce altezza immagine principale */
  }

  .logo {
    max-width: 200px; /* Prima 300px */
  }

  /* ---- IMMAGINI ---- */
  .image-box img {
    height: 200px; /* Era 260 su mobile, 380 su desktop */
  }

  .single-image img {
    max-width: 100%;
  }

  /* ---- CARD LINEE ---- */
  .linea-card h3 {
    font-size: 20px;
  }

  .linea-card p {
    font-size: 16px;  /* Era 22px */
  }

  .linea-card img {
    height: 160px; /* Era 200px */
  }
}
/* 📱 HERO sistemato per smartphone */
@media (max-width: 600px) {

  .hero {
    height: 85vh;              /* Prima 100vh → troppo alta su smartphone */
    padding: 40px 10px 20px;   /* Aggiunto spazio per far respirare il logo */
    background-position: center top; /* Evita che lo sfondo tagli la parte utile */
  }

  .hero .content {
    width: 100%;
    margin-top: 20px;
  }

  .logo {
    max-width: 170px;          /* Prima molto più grande */
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 16px !important;
    line-height: 1.3;
    padding: 0 10px;
  }

  /* Pulsanti più compatti */
  .btn {
    font-size: 15px;
    padding: 8px 14px;
    margin-top: 12px;
  }
}

/* Modernizzazione Estia 2026 */
:root {
  --estia-ink: #202020;
  --estia-muted: #5c5b56;
  --estia-surface: #f6f5f1;
  --estia-gold: #3b3b3b;
  --estia-wood: #111111;
  --estia-border: rgba(0, 0, 0, .08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-size: 20px;
  letter-spacing: 0;
  color: var(--estia-ink);
  overflow-x: hidden;
}

body,
input,
select,
textarea,
button {
  font-family: 'Caviar Dreams', Arial, sans-serif;
}

p {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.65;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--estia-border);
}

.site-brand img {
  display: block;
  width: 112px;
  height: auto;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 16px;
}

.site-nav-links a {
  color: var(--estia-ink);
  text-decoration: none;
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--estia-border);
  border-radius: 6px;
  background: #fff;
  color: var(--estia-ink);
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.site-nav-toggle:focus-visible {
  outline: 3px solid var(--estia-gold);
  outline-offset: 2px;
}

.site-nav.is-open .site-nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  padding: 7px 12px;
  border: 1px solid var(--estia-gold);
  border-radius: 6px;
}

.wide-container {
  max-width: 1180px;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section.light {
  background: var(--estia-surface);
}

.modern-hero {
  min-height: 92vh;
  height: auto;
  padding: 96px 20px 64px;
}

.hero .overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .24));
}

.hero-content {
  max-width: 780px;
  padding: 0 18px;
}

.hero-content h1 {
  font-size: clamp(34px, 6vw, 76px);
  font-weight: normal;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.hero-content p {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  background: var(--estia-button-dark);
  border-radius: 6px;
}

.btn:hover {
  background: var(--estia-button-hover);
}

.btn-secondary {
  background: var(--estia-button-dark);
}

.btn-secondary:hover {
  background: var(--estia-button-hover);
}

.btn-light {
  background: #fff;
  color: var(--estia-ink);
}

.btn-light:hover {
  background: var(--estia-surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p,
.line-hero-copy p,
.line-card-body p,
.realization-body p,
.feature-card p {
  color: var(--estia-muted);
}

.split-section,
.line-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.intro-photo img,
.technical-figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.modern-line-grid,
.realizations-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.modern-card,
.realization-card,
.feature-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--estia-border);
  border-radius: 8px;
}

.linea-card.modern-card {
  padding: 0;
  text-align: left;
  box-shadow: none;
}

.linea-card.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.modern-card img,
.realization-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0;
}

.line-card-body,
.realization-body,
.feature-card {
  padding: 22px;
}

.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.realizations-carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.realizations-carousel-head .section-heading {
  margin-bottom: 0;
}

.realizations-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.realizations-carousel.no-horizontal-scroll .realizations-nav {
  display: none;
}

.realizations-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(168, 121, 63, .38);
  border-radius: 999px;
  background: #fff;
  color: var(--estia-wood);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.realizations-arrow:hover {
  border-color: var(--estia-gold);
  background: var(--estia-gold);
  color: #fff;
  transform: translateY(-1px);
}

.realizations-arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.realizations-arrow:disabled:hover {
  border-color: rgba(168, 121, 63, .38);
  background: #fff;
  color: var(--estia-wood);
}

.realizations-viewport {
  position: relative;
  overflow: hidden;
}

.realizations-rail {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: clamp(270px, 30vw, 340px);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.realizations-rail::-webkit-scrollbar {
  display: none;
}

.realizations-rail .rail-card {
  min-width: 0;
  scroll-snap-align: start;
}

.line-realizations-rail {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-template-rows: none;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.line-realizations-rail .rail-card {
  scroll-snap-align: start;
}

.line-selection-rail {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-template-rows: none;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.line-selection-rail .rail-card {
  scroll-snap-align: start;
}

.line-card-body span,
.realization-body > span,
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--estia-gold);
  font-size: 15px;
  font-weight: bold;
}

.line-card-body h3,
.realization-body h3,
.feature-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.line-card-body p,
.realization-body p,
.feature-card p {
  font-size: 18px;
}

.realization-body a {
  color: var(--estia-wood);
  font-size: 17px;
  font-weight: bold;
}

.realization-more {
  display: inline-flex;
  min-height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--estia-wood);
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: bold;
  align-items: center;
  text-decoration: underline;
  vertical-align: middle;
  white-space: nowrap;
}

.realization-more:focus-visible {
  outline: 3px solid var(--estia-gold);
  outline-offset: 3px;
}

.realization-description-full {
  white-space: pre-line;
}

.realization-description [hidden] {
  display: none !important;
}

.realization-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 14px;
}

.realization-links a {
  line-height: 1.3;
}

.realization-external {
  text-decoration-style: dotted;
}

.line-hero {
  padding: clamp(34px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background: var(--estia-surface);
}

.line-hero-media img {
  display: block;
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-hero {
  background: var(--estia-surface);
  padding: clamp(42px, 7vw, 92px) 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.detail-hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: normal;
  line-height: 1.04;
  letter-spacing: 0;
}

.detail-hero-copy p {
  max-width: 680px;
  color: var(--estia-muted);
}

.back-link {
  color: var(--estia-wood);
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-actions {
  justify-content: flex-start;
}

.detail-hero-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.technical-render img {
  padding: clamp(12px, 2vw, 24px);
}

.detail-content {
  max-width: 920px;
}

.detail-content h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-content p {
  max-width: 76ch;
}

.detail-points,
.technical-specs,
.render-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.render-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 28px;
}

.detail-points article,
.technical-specs article,
.render-grid figure {
  background: #fff;
  border: 1px solid var(--estia-border);
  border-radius: 8px;
}

.detail-points article {
  padding: 22px;
}

.detail-points h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.detail-points p {
  font-size: 18px;
  color: var(--estia-muted);
}

.render-grid figure {
  overflow: hidden;
}

.render-grid img {
  display: block;
  width: 100%;
  height: clamp(320px, 28vw, 420px);
  object-fit: contain;
  padding: clamp(12px, 2vw, 22px);
  background: #fff;
}

.render-grid figcaption {
  padding: 0 18px 18px;
  color: var(--estia-muted);
  font-size: 17px;
}

.technical-specs article {
  padding: 22px;
}

.technical-specs span {
  display: block;
  margin-bottom: 8px;
  color: var(--estia-muted);
  font-size: 17px;
}

.technical-specs strong {
  color: var(--estia-wood);
  font-size: 28px;
  font-weight: bold;
}

.privacy-page {
  background: #fff;
}

.privacy-hero .detail-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.privacy-hero .detail-hero-copy p {
  max-width: 860px;
}

.privacy-content {
  max-width: 980px;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.privacy-summary article,
.privacy-choice-box {
  padding: 22px;
  border: 1px solid var(--estia-border);
  border-radius: 8px;
  background: #fff;
}

.privacy-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--estia-gold);
  font-size: 15px;
  font-weight: bold;
}

.privacy-summary p,
.privacy-section li,
.privacy-details dd,
.cookie-table td,
.privacy-note {
  color: var(--estia-muted);
  font-size: 18px;
}

.privacy-section + .privacy-section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--estia-border);
}

.privacy-section h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.privacy-section h3 {
  margin: 26px 0 8px;
  font-size: 24px;
}

.privacy-list {
  padding-left: 22px;
}

.privacy-list li {
  margin-bottom: 10px;
}

.privacy-details {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.privacy-details div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--estia-border);
}

.privacy-details dt {
  color: var(--estia-wood);
  font-size: 18px;
  font-weight: bold;
}

.privacy-details dd {
  margin: 0;
}

.privacy-content a,
.cookie-copy a {
  color: var(--estia-wood);
  font-weight: bold;
}

.cookie-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.cookie-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--estia-border);
  border-radius: 8px;
}

.cookie-table th,
.cookie-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--estia-border);
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  color: var(--estia-ink);
  font-size: 18px;
}

.cookie-table tr:last-child th,
.cookie-table tr:last-child td {
  border-bottom: 0;
}

.privacy-choice-box {
  margin-top: 28px;
  background: var(--estia-surface);
}

.privacy-choice-box .btn {
  border: 0;
  cursor: pointer;
}

.privacy-note {
  margin-top: 12px;
}

.privacy-note[hidden] {
  display: none;
}

.line-hero-copy h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.technical-figure img {
  background: #fff;
}

.cta-band {
  text-align: center;
  background: var(--estia-surface);
}

.dealer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.dealer-controls select,
.contact-form input,
.contact-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 16px;
}

.dealer-list {
  margin-bottom: 16px;
}

#map.map-container {
  height: 500px;
  max-width: none;
  border-radius: 8px;
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  left: clamp(14px, 3vw, 34px);
  z-index: 1800;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  width: min(960px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(168, 121, 63, .26);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
  pointer-events: auto;
}

.cookie-copy h2 {
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: normal;
}

.cookie-copy p {
  max-width: 66ch;
  color: var(--estia-muted);
  font-size: 16px;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-actions .btn,
.cookie-secondary {
  min-height: 42px;
  margin-top: 0;
  border-radius: 6px;
  font-size: 16px;
  white-space: nowrap;
}

.cookie-secondary {
  padding: 10px 16px;
  border: 1px solid rgba(111, 78, 45, .32);
  background: #fff;
  color: var(--estia-wood);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.cookie-secondary:hover {
  border-color: var(--estia-wood);
  background: var(--estia-surface);
}

@media (max-width: 760px) {
  body {
    font-size: 18px;
  }

  .site-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 8px;
  }

  .site-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav-links {
    display: none;
    flex-basis: 100%;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    padding-top: 4px;
    font-size: 16px;
  }

  .site-nav.is-open .site-nav-links {
    display: grid;
  }

  .site-nav-links a {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .split-section,
  .line-hero,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .line-hero-media img {
    min-height: 280px;
  }

  .detail-hero {
    padding-top: 34px;
  }

  .modern-card img,
  .realization-card img {
    height: 220px;
  }

  .realizations-carousel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .realizations-rail {
    grid-template-rows: minmax(0, 1fr);
    grid-auto-columns: min(82vw, 320px);
    gap: 18px;
  }

  .render-grid {
    grid-template-columns: 1fr;
  }

  .privacy-summary,
  .privacy-details div {
    grid-template-columns: 1fr;
  }

  .cookie-card {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn,
  .cookie-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Ritocco Estia: spigoli netti, nero grafico e hero in bianco/nero */
:root {
  --estia-black: #111111;
  --estia-black-soft: #2a2a2a;
  --estia-button-dark: #3b3b3b;
  --estia-button-hover: #d9d9d9;
  --estia-border: rgba(0, 0, 0, .16);
  --estia-wood: #111111;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

.hero {
  overflow: hidden;
  background: var(--estia-black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/estia_home.JPEG') center/cover no-repeat;
  filter: sepia(72%) saturate(68%) hue-rotate(335deg) contrast(1.05);
  transform: scale(1.02);
}

.hero .overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .70), rgba(0, 0, 0, .34));
}

.hero .content {
  z-index: 2;
}

@media (min-width: 761px) {
  .modern-hero .hero-content {
    transform: translateY(-12vh);
  }
}

.btn,
.cookie-actions .btn,
.cookie-secondary {
  background: var(--estia-button-dark);
  border: 1px solid var(--estia-button-dark);
  color: #fff;
  box-shadow: none;
}

.btn:hover,
.cookie-actions .btn:hover,
.cookie-secondary:hover {
  background: var(--estia-button-hover);
  border-color: var(--estia-button-hover);
  color: var(--estia-black);
}

.btn-secondary,
.btn-light,
.privacy-choice-box .btn.btn-secondary {
  background: transparent;
  border: 1px solid var(--estia-black);
  color: var(--estia-black);
}

.btn-secondary:hover,
.btn-light:hover,
.privacy-choice-box .btn.btn-secondary:hover {
  background: var(--estia-button-hover);
  border-color: var(--estia-button-hover);
  color: var(--estia-black);
}

.hero .btn-secondary,
.hero .btn-light {
  background: var(--estia-button-dark);
  border-color: var(--estia-button-dark);
  color: #fff;
}

.hero .btn-secondary:hover,
.hero .btn-light:hover {
  background: var(--estia-button-hover);
  border-color: var(--estia-button-hover);
  color: var(--estia-black);
}

.nav-cta {
  background: var(--estia-button-dark);
  border-color: var(--estia-button-dark);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--estia-button-hover);
  border-color: var(--estia-button-hover);
  color: var(--estia-black) !important;
}

.realizations-arrow {
  border-color: var(--estia-black);
  color: var(--estia-black);
}

.realizations-arrow:hover {
  border-color: var(--estia-button-hover);
  background: var(--estia-button-hover);
  color: var(--estia-black);
}

.realizations-arrow:disabled:hover {
  border-color: var(--estia-black);
}

@media (max-width: 760px) {
  .line-realizations-rail {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 320px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
  }

  .line-realizations-rail .rail-card {
    scroll-snap-stop: always;
  }

  .line-selection-rail {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 320px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
  }

  .line-selection-rail .rail-card {
    scroll-snap-stop: always;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 12px;
  }

  main > section#linee,
  main > section#realizzazioni,
  main > section#tecnical-data,
  main > section#realizzazioni-linea {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 12px;
  }
}

.modern-card,
.realization-card,
.feature-card,
.detail-points article,
.technical-specs article,
.render-grid figure,
.privacy-summary article,
.privacy-choice-box,
.cookie-card {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-toggle span {
    transition: none;
  }
}

@media (max-width: 600px) {
  .hero::before {
    background-position: center top;
  }

  .hero-content {
    padding: 0 14px;
    transform: translateY(-10vh);
  }

  .hero-content h1 {
    width: min(100%, 330px);
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.14;
  }

  .hero-content p {
    width: min(100%, 300px);
  }

  .cookie-copy a {
    overflow-wrap: anywhere;
  }
}

/* Contatto WhatsApp flottante */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 1700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0b6b3a;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .22);
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}

.whatsapp-float:hover {
  background: #07572f;
  color: #fff;
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--estia-black);
  outline-offset: 3px;
}

.whatsapp-float-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 56px;
    padding: 0;
  }

  .whatsapp-float-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}
