/* ==========================================================================
   Arcadia Ceramiche — foglio di stile unico
   Valori ripresi dal kit Elementor (post-6477) e dalle misure del sito originale.
   Breakpoint: tablet ≤1024px, mobile ≤767px (come Elementor).
   ========================================================================== */

/* ---------- Font locali ---------- */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost-latin-var-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); }

/* ---------- Variabili ---------- */
:root {
  /* colori */
  --c-wine: #72243F;
  --c-text: #868686;
  --c-dark: #292929;
  --c-white: #FFFFFF;
  --c-white-17: #FFFFFF2B;
  --c-line: #DCDCDE;
  --c-light: #FAF9FD;
  --c-footer: #2D322D;
  --c-green: #3F4B3F;
  --c-card-text: #3F444B;

  /* font */
  --f-main: "Jost", sans-serif;
  --f-outline: "Poppins", sans-serif;
  --f-form: "Inter", sans-serif;

  /* tipografia (desktop) */
  --fs-body: 18px;
  --fs-h1: 58.92px;
  --fs-h2: 44.2px;
  --fs-h3: 33.16px;
  --fs-h4: 24.88px;
  --fs-h5: 18.66px;
  --fs-h6: 18px;
  --fs-nav: 18px;
  --fs-small: 13px;
  --fs-outline: 149px;

  /* layout */
  --container: 1280px;
  --gap: 10px;          /* padding colonne Elementor */
  --widget-gap: 20px;   /* spazio tra widget */
  --section-pad: 7em;
  --radius: 0;

  --t-fast: .3s;
}
@media (max-width: 1024px) {
  :root {
    --fs-body: 15px; --fs-h1: 42.72px; --fs-h2: 34.18px; --fs-h3: 27.34px; --fs-h4: 21.88px;
    --fs-h5: 17.5px; --fs-h6: 14px; --fs-nav: 15px; --fs-small: 12px; --fs-outline: 129px;
    --container: 1024px;
  }
}
@media (max-width: 767px) {
  :root {
    --fs-body: 14px; --fs-h1: 32.35px; --fs-h2: 26.96px; --fs-h3: 22.46px; --fs-h4: 18.72px;
    --fs-h5: 15.6px; --fs-h6: 13px; --fs-nav: 14px; --fs-small: 11px; --fs-outline: 89px;
    --container: 767px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--f-main);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5em; /* ereditato come valore calcolato, come in Elementor */
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
/* footer sempre in fondo anche nelle pagine corte */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-wine); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-dark); }
p { margin: 0 0 .9rem; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
blockquote, figure { margin: 0; }
cite { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-wine); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--c-wine); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

.icon { width: 1em; height: 1em; fill: currentColor; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; }

/* Blocchi di testo: come i widget Elementor (elementi flex), il margine
   del paragrafo non collassa con lo spazio tra i widget. */
.hero__text, .hero__cta, .about__body, .section-head__text, .cta-dream__text, .site-footer__col,
.split__body, .quality__text { display: flow-root; }

/* ---------- Tipografia ---------- */
.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -2px; color: var(--c-wine); }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -2px; color: var(--c-wine); }
.h4 { font-size: var(--fs-h4); line-height: 1.3; color: var(--c-wine); }
.eyebrow {
  margin: 0;
  font-size: var(--fs-h6); font-weight: 500; line-height: 1.5;
  letter-spacing: 2px; text-transform: uppercase; color: var(--c-wine);
}
.eyebrow--light { color: var(--c-white); }

/* Testo gigante a contorno ("Arcadia", "Brand", …) */
.outline-text {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 0;
  font-family: var(--f-outline); font-size: var(--fs-outline); font-weight: 600;
  line-height: 1; letter-spacing: -2px; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--c-line);
  pointer-events: none; user-select: none; white-space: nowrap;
  /* flex: resta centrata anche quando la parola è più larga dello schermo */
  display: flex; justify-content: center;
}
.outline-text--start { text-align: start; justify-content: flex-start; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--c-wine); color: var(--c-white);
  font-family: var(--f-main); font-size: 16px; font-weight: 400; line-height: 1;
  text-align: center; border: 0; border-radius: var(--radius);
  transition: all var(--t-fast); cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--c-dark); color: var(--c-white); }
.btn--lg { font-size: 18px; padding: 20px 40px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: relative; z-index: 999; margin-bottom: -7%; }
.site-header__inner { display: flex; max-width: 1280px; margin-inline: auto; }
.site-header__main { width: 85%; padding: var(--gap); border-bottom: 1px solid var(--c-white-17); }
.site-header__row { display: flex; align-items: center; }
.site-header__logo { width: 20%; padding: var(--gap); }
.site-header__logo img { width: 100%; }
.nav { width: 80%; padding: var(--gap); display: flex; justify-content: flex-end; }
.site-header__social {
  width: 15%; padding: var(--gap); border-bottom: 1px solid var(--c-white-17);
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
}

.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-size: 14px;
  background: var(--c-white-17); color: var(--c-white);
  border-radius: var(--radius); transition: background-color var(--t-fast), transform var(--t-fast) ease-out;
}
.social-icon:hover { color: var(--c-white); }

/* menu orizzontale */
.nav__toggle { display: none; }
.nav__list { display: flex; }
.nav__list li { display: flex; align-items: center; }
.nav__link {
  display: block; padding: 16px 0;
  font-size: var(--fs-nav); font-weight: 600; line-height: 1.5;
  color: var(--c-white); transition: color .4s;
}
.nav__list li:not(:last-child) .nav__link { margin-inline-end: 17.5px; }
.nav__list li:not(:first-child) .nav__link { margin-inline-start: 17.5px; }
.nav__list li:not(:last-child)::after { content: ""; width: 5px; height: 3px; background: var(--c-wine); }
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current="page"] { color: var(--c-wine); }

/* tablet + mobile: hamburger, colonne invertite */
@media (max-width: 1024px) {
  .site-header { margin-bottom: -7em; }
  .site-header__main { width: 75%; }
  .site-header__social { width: 25%; }
  .site-header__row { flex-direction: row-reverse; }
  .site-header__logo { width: 85%; }
  .site-header__logo img { width: auto; } /* dimensione naturale 325px, come l'originale */
  .nav { width: 15%; position: static; justify-content: center; }
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    padding: .25em; margin: 0 auto; border: 0; background: transparent; cursor: pointer;
    font-size: 28px; color: var(--c-white);
  }
  .nav__toggle:hover, .nav__toggle:focus-visible, .nav__toggle[aria-expanded="true"] { color: var(--c-wine); }
  .nav__icon-close, .nav__toggle[aria-expanded="true"] .nav__icon-open { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__icon-close { display: block; }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 96px; /* 8px sotto l'hamburger, come l'originale */
    flex-direction: column; background: var(--c-white);
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
  }
  .nav__list.is-open { display: flex; }
  .nav__list li::after { display: none; }
  .nav__list li:not(:first-child) .nav__link,
  .nav__list li:not(:last-child) .nav__link { margin: 0; }
  .nav__list .nav__link { width: 100%; padding: 10px 20px; color: var(--c-dark); transition: none; }
  .nav__list .nav__link:hover, .nav__list .nav__link:focus-visible, .nav__list .nav__link[aria-current="page"] { background: var(--c-wine); color: var(--c-white); }
}
@media (max-width: 767px) {
  .site-header__main { width: 100%; padding: 0; }
  .site-header__social { display: none; }
  .site-header__logo { width: 80%; text-align: center; }
  .site-header__logo img { width: 66%; margin-inline: auto; }
  .nav { width: 20%; }
  .nav__list { top: 68px; }
}

/* ==========================================================================
   HOME — HERO
   ========================================================================== */
.hero { position: relative; padding-top: 7%; margin-bottom: 7em; color: var(--c-white); overflow: hidden; }
.hero__slides, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.hero__slide.is-active { opacity: 1; }
.hero__overlay { background: var(--c-green) url("/assets/img/pattern-linee-verticali-1281.webp") center center; opacity: .4; }
.hero__inner { position: relative; padding: 7em 0 3em; }
.hero__content { width: 50%; padding: 2em; }
.hero__content > :not(:last-child) { margin-bottom: var(--widget-gap); }
.hero__title { color: var(--c-white); }
.hero__text { font-size: 22px; }
.hero__cta { width: 79.208%; }
.hero__cta .btn { display: block; margin: 5px; }

@media (max-width: 1024px) {
  .hero { margin-bottom: 0; padding-top: 7em; }
  .hero__inner { padding: 3em 0 0; }
  .hero__cta { width: 100%; }
}
@media (max-width: 767px) {
  .hero__inner { padding-top: 2em; }
  .hero__content { width: 100%; text-align: center; }
  .hero__text { font-size: 20px; }
}

/* ==========================================================================
   HOME — CHI SIAMO
   ========================================================================== */
.about { padding: 7em 0 5em; }
.about__inner { display: flex; align-items: center; }
.about__text { position: relative; width: 50%; padding: 3em 6em 3em 1em; }
.about__text > :not(.outline-text) { position: relative; z-index: 2; }
.about__text > :not(:last-child):not(.outline-text) { margin-bottom: var(--widget-gap); }
.about__title { font-size: 56px; }
.about__body { text-align: justify; font-size: 18px; }
.about__media { width: 50%; display: flex; align-items: center; }
.about__col { width: 50%; padding: var(--gap); }
.about__col > :not(:last-child) { margin-bottom: var(--widget-gap); }
.about__img { width: 100%; object-fit: cover; object-position: center; }
.about__img--short { height: 275px; }
.about__img--tall { height: 350px; }

.counter { background: var(--c-light); padding: 2em; text-align: center; }
.counter__number {
  display: flex; justify-content: center; margin: 0;
  font-size: var(--fs-h1); font-weight: 600; line-height: 1; letter-spacing: -2px; color: var(--c-wine);
}
.counter__title { margin: 0; font-size: var(--fs-h5); font-weight: 600; line-height: 1.4; }

@media (max-width: 1024px) {
  .about { padding: 3em 1em; }
  .about__inner { flex-wrap: wrap; }
  .about__text { width: 100%; padding: 3em; z-index: 0; }
  .about__media { width: 100%; }
}
@media (max-width: 767px) {
  .about { padding: 2em 0; }
  .about__text { padding: 2em; text-align: center; }
  .about__text .outline-text { text-align: center; justify-content: center; }
  .about__body { text-align: center; }
  .about__media { flex-wrap: wrap; }
  .about__col { width: 100%; }
}

/* ==========================================================================
   Intestazioni di sezione centrate (Brand, Prodotti, Servizi, Recensioni)
   ========================================================================== */
.section-head { position: relative; max-width: 720px; margin-inline: auto; padding: 2em; text-align: center; }
.section-head > :not(.outline-text) { position: relative; z-index: 2; }
.section-head > :not(:last-child):not(.outline-text):not(.section-head__title) { margin-bottom: var(--widget-gap); }
/* Stessa larghezza dell'originale (112,8%: stessi a capo) ma centrata sulla parola in sottofondo */
.section-head__title { width: 112.805%; max-width: 112.805%; margin-inline: -6.4025%; }
.section-head__text { text-align: center; }
@media (max-width: 767px) {
  .section-head__text { font-size: 18px; }
  .section-head--services { margin-inline: var(--gap); }
  .section-head__title { width: 100%; max-width: 100%; margin-inline: 0; font-size: 30px; margin-bottom: 20px; }
  .section-head > .section-head__title:last-child { margin-bottom: 20px; }
}

/* ==========================================================================
   HOME — BRAND
   ========================================================================== */
.brands { padding-bottom: 7em; overflow-x: clip; }
.brands__grid { display: flex; flex-wrap: wrap; }
.brands__item { width: 25%; padding: 10px; }
.brands__box { padding: 2em; border: 1px solid var(--c-line); }
.brands__box img {
  width: var(--logo-w, auto); max-width: 100%; height: 49px;
  object-fit: contain; object-position: center; margin-inline: auto;
}
.brands__item--mute img { filter: contrast(50%) saturate(0%); }
.section-head--products { margin-top: 202px; } /* 100 + sezione vuota 1px + 100 + 1 */

@media (max-width: 1024px) { .brands { padding-bottom: 3em; } }
@media (max-width: 767px) {
  .brands { padding-bottom: 2em; }
  .brands__item { width: 50%; }
  .brands__box { padding: 2em 1em; }
  .brands__box img { height: 42px; }
  .section-head--products { margin-top: 60px; }
}

/* ==========================================================================
   HOME — PRODOTTI (card "cover")
   ========================================================================== */
.products { margin-top: -65px; padding-bottom: 7em; }
.products__grid { display: flex; }
.products__grid > * { width: 33.333%; margin: var(--gap); }
.cover-card { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 500px; }
.cover-card__bg { position: absolute; inset: 0; overflow: hidden; }
.cover-card__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.cover-card__bg::after { content: ""; position: absolute; inset: 0; background: #29292980; transition: background-color .8s; }
.cover-card__content { position: relative; z-index: 1; width: 100%; padding: 3em; color: var(--c-white); }
.cover-card__title { margin: 0 0 7px; font-size: var(--fs-h4); line-height: 1.3; color: var(--c-white); }
.cover-card__text { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .cover-card:hover .cover-card__bg img { transform: scale(1.2); }
  .cover-card:hover .cover-card__bg::after { background-color: #292929CC; }
}
@media (max-width: 1024px) {
  .products { padding-bottom: 3em; }
  .cover-card { min-height: 350px; }
  .cover-card__content { padding: 2em; }
}
@media (max-width: 767px) {
  .products { padding-bottom: 2em; }
  .products__grid { flex-wrap: wrap; }
  .products__grid > * { width: 100%; }
  .cover-card__text { font-size: 18px; }
}

/* Variante pagina Prodotti: nessuna sovrapposizione, griglia nella colonna (1260px) */
.products.products--page { margin-top: 0; padding: var(--gap) 0 calc(7em + var(--gap)); }
@media (max-width: 1024px) { .products.products--page { padding-bottom: calc(3em + var(--gap)); } }
@media (max-width: 767px) { .products.products--page { padding-bottom: calc(2em + var(--gap)); } }
.products--page .products__grid { padding-inline: var(--gap); }

/* ==========================================================================
   PRODOTTI — introduzione (titolo a sinistra, testo a destra)
   ========================================================================== */
.intro { padding: 5em 0 7em; }
.intro__inner { display: flex; }
.intro__head { width: 50%; padding: 3em 3em 3em 1em; }
.intro__head .eyebrow { margin-bottom: var(--widget-gap); }
/* larghezza dell'originale (stessi a capo), allineato a sinistra con l'occhiello */
.intro__title { width: 112.805%; max-width: 112.805%; }
.intro__text { width: 50%; padding: 3em 1em 3em 3em; display: flow-root; }
@media (max-width: 1024px) {
  .intro { padding: 1em 0 3em; }
  .intro__head, .intro__text { padding: 2em; }
}
@media (max-width: 767px) {
  .intro { padding: 0 0 2em; }
  .intro__inner { flex-wrap: wrap; }
  .intro__head, .intro__text { width: 100%; text-align: center; }
  .intro__title { width: 100%; max-width: 100%; font-size: 30px; margin-bottom: 20px; }
  .intro__text { padding: 0 2em 2em; }
  .intro__text p { font-size: 18px; }
}

/* ==========================================================================
   SERVIZI (card immagine a sinistra)
   ========================================================================== */
.services { padding: var(--gap) 0 calc(7em + var(--gap)); overflow-x: clip; }
.services--page { padding-top: calc(5em + var(--gap)); }
/* Griglia 2×2 a righe uguali: tutte le card (e quindi tutte le foto) hanno la stessa
   altezza, quella della card più alta. Le colonne restano due blocchi (animazioni
   fadeInLeft/fadeInRight) e condividono le righe con subgrid. */
.services__grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  width: calc(100% - 2 * var(--gap)); max-width: calc(var(--container) - 2 * var(--gap));
  background: var(--c-white);
}
.services__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.side-card { display: flex; }
.side-card__media { position: relative; overflow: hidden; min-width: 50%; min-height: 300px; }
.side-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-card__media::after { content: ""; position: absolute; inset: 0; background: transparent; transition: background-color 1.5s; }
.side-card__content {
  flex-grow: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 2em; background: var(--c-white); text-align: center; color: var(--c-card-text);
}
.side-card__title { margin: 0 0 15px; font-size: var(--fs-h4); line-height: 1.3; color: var(--c-card-text); }
.side-card__text { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .side-card:hover .side-card__media::after { background-color: rgba(0, 0, 0, .3); }
}
@media (max-width: 1024px) {
  .services { padding: calc(1em + var(--gap)) 0 calc(3em + var(--gap)); }
  .services__grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  /* su mobile le foto sono già tutte uguali (sopra il testo): altezze libere */
  .services__grid { display: block; }
  .services__col { display: block; }
  .side-card { flex-direction: column; }
  .side-card__media { width: 100%; }
  .side-card__text { font-size: 18px; }
}

/* ==========================================================================
   CTA scura "Realizziamo insieme…"
   ========================================================================== */
.cta-dream {
  padding: 7em 0;
  background: var(--c-footer) url("/assets/img/showroom-arcadia-rubinetteria-2560.webp") center center no-repeat;
  color: var(--c-white);
}
.cta-dream__content { width: 50%; padding: 2em; }
.cta-dream__title { width: 112.805%; max-width: 112.805%; color: var(--c-white); text-shadow: 0 0 10px rgba(0, 0, 0, .86); }
.cta-dream__text { font-weight: 600; text-shadow: 0 0 10px #221D1D; }
.cta-dream__content > .cta-dream__text { margin-bottom: var(--widget-gap); }
/* Variante pagina Prodotti: altra foto (coperta, in basso), testo normale con ombra più leggera */
.cta-dream--prodotti { background: var(--c-footer) url("/assets/img/testata-bagno-sanitari-rosa-908.webp") bottom center / cover no-repeat; }
.cta-dream--prodotti .cta-dream__title { text-shadow: none; }
.cta-dream--prodotti .cta-dream__text { font-weight: 400; text-shadow: 0 0 10px rgba(0, 0, 0, .77); }
@media (max-width: 1024px) {
  .cta-dream { padding: 3em 0; }
  .cta-dream__content { width: 60%; }
}
@media (max-width: 767px) {
  .cta-dream__content { width: 100%; }
  .cta-dream__title { width: 100%; max-width: 100%; font-size: 30px; margin-bottom: 20px; }
  .cta-dream__content { text-align: center; }
  .cta-dream__title { text-align: start; }
  .cta-dream__text { font-size: 18px; }
}

/* ==========================================================================
   PAGINE INTERNE — testata con H1
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; padding-top: 7%;
  background: var(--c-footer) url("/assets/img/pattern-linee-verticali-1281.webp") center center;
}
.page-hero__bg { position: absolute; inset: 0; opacity: .3; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center center); }
.page-hero__inner { position: relative; max-width: 720px; margin-inline: auto; padding: calc(7em + var(--gap)) var(--gap); }
.page-hero__title { color: var(--c-white); text-align: center; }
@media (max-width: 1024px) {
  .page-hero { padding-top: 7em; }
  .page-hero__inner { padding-block: calc(5em + var(--gap)); }
}
@media (max-width: 767px) {
  .page-hero__inner { padding: 5em 2em; } /* 3em sezione + 2em colonna */
}

/* ==========================================================================
   Blocchi testo + immagine affiancati (Chi Siamo)
   ========================================================================== */
.split { padding: 7em 0 5em; overflow: hidden; }
.split__inner { display: flex; align-items: center; }
.split__text { position: relative; width: 50%; padding: 3em 6em 3em 1em; }
.split__text > :not(.outline-text) { position: relative; z-index: 2; }
.split__text > :not(:last-child):not(.outline-text):not(.split__title) { margin-bottom: var(--widget-gap); }
/* stessa larghezza dell'originale (stessi a capo), allineato a sinistra come occhiello e testo */
.split__title { width: 112.805%; max-width: 112.805%; }
.split__media { width: 50%; }
.split__photo { padding: var(--gap); }
.split__photo-img { width: 106.774%; max-width: none; height: 500px; object-fit: cover; object-position: top center; }
.outline-text--md { font-size: 120px; }
.outline-text--showroom { top: -1px; }

@media (max-width: 1024px) {
  .split { padding: 3em 1em; }
  .split__inner { flex-wrap: wrap; }
  .split__text { width: 100%; padding: 3em; z-index: 0; }
  .split__media { width: 100%; }
  .outline-text--md { font-size: 129px; }
}
@media (max-width: 767px) {
  .split { padding: 2em 0; }
  .split__text { padding: 2em; text-align: center; }
  .split__text .outline-text { justify-content: center; font-size: 66px; }
  .split__text .outline-text--showroom { font-size: 60px; }
  .split__title { width: 100%; max-width: 100%; font-size: 30px; margin-bottom: 20px; }
  .split__body { font-size: 18px; }
  /* l'originale ritagliava a 500px di altezza tagliando fuori una persona: qui foto intera */
  .split__photo-img { width: 100%; height: auto; }
}

/* Fascia "Qualità e Passione" */
.quality { position: relative; overflow: hidden; padding: 7em 0 10em; background: var(--c-footer); color: var(--c-white); }
.quality__bg { position: absolute; inset: 0; opacity: .5; }
.quality__bg img { width: 100%; height: 100%; object-fit: cover; object-position: bottom center; }
.quality__inner { position: relative; max-width: 720px; margin-inline: auto; padding: 2em; text-align: center; }
.quality__title {
  position: relative; z-index: 2;
  width: 112.805%; max-width: 112.805%; margin-inline: -6.4025%;
  font-size: var(--fs-h1); font-weight: 600; line-height: 1; letter-spacing: -2px; color: var(--c-white);
}
@media (max-width: 767px) {
  .quality { padding: 3em 0 5em; }
  .quality__title { width: 100%; max-width: 100%; margin: 0 0 20px; }
  .quality__text { font-size: 18px; }
}

/* ==========================================================================
   PAGINE LEGALI (Privacy, Cookie): header su fondo scuro, titolo nel contenuto
   ========================================================================== */
.page-legal .site-header { margin-bottom: 0; background: var(--c-dark); }
.legal { padding: 1em 0 5em; }
.legal__inner { padding-inline: var(--gap); }
.legal__title { margin: 8px 0 16px; }
.legal__inner h2 { font-size: var(--fs-h6); font-weight: 500; line-height: 1.5; letter-spacing: 2px; text-transform: uppercase; color: var(--c-wine); margin: 2em 0 16px; }
@media (max-width: 767px) { .legal { padding: 1em 0 3em; } .legal__inner { padding-inline: 1.5em; } }
/* Testo delle pagine legali */
.legal__text { max-width: 960px; }
.legal__text p, .legal__text ul, .legal__text ol, .legal__text table { margin: 0 0 1em; }
.legal__text ul, .legal__text ol { padding-left: 1.5em; }
.legal__text li { margin-bottom: .4em; }
.legal__text li > ol { margin: .4em 0 0; }
.legal__text ul { list-style: circle; }
.legal__alpha { list-style: lower-alpha; }
.legal__text strong { font-weight: 600; color: var(--c-dark); }
.legal__text a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__text h3 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.3; color: var(--c-dark); margin: 1.5em 0 .6em; }
.legal__text table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.legal__text th, .legal__text td { border: 1px solid var(--c-line); padding: .5em .75em; text-align: left; vertical-align: top; }
.legal__updated { margin-top: 2em; font-style: italic; }
/* Cookie Policy generata da CookieYes: il titolo è già nell'H1 della pagina */
#cky-policy-container .cookie-policy-h1 { display: none; }
#cky-policy-container .cookie-policy-date-container p { margin: 0; }
#cky-policy-container table, #cky-policy-container table * { font-size: 14px !important; line-height: 1.5 !important; }
#cky-policy-container th { background: var(--c-light); color: var(--c-dark); font-weight: 600; }
#cky-policy-container .cky-banner-element { display: inline-block; margin-bottom: 1em; }

/* 404 */
.not-found__code { font-size: calc(var(--fs-h1) * 2); font-weight: 600; line-height: 1; letter-spacing: -4px; color: rgba(114, 36, 63, .14); margin: .3em 0 0; }
.not-found__links { list-style: none; padding: 0; margin: 1.5em 0 2em; display: flex; flex-wrap: wrap; gap: .5em 1.5em; }
.not-found__links a { font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contact { padding: 7em 0; }
.contact__inner { display: flex; align-items: stretch; } /* colonne della stessa altezza */
.contact__col { width: calc(50% - 2 * var(--gap)); margin: var(--gap); }
.contact__col--info { padding: 3em 6em 3em 1em; }
.contact__col--hours { padding: 3em; background: var(--c-light); }
.contact__title { margin-bottom: var(--widget-gap); }
.contact__intro { margin: 0 0 var(--widget-gap); }

.info-list > li + li { margin-top: var(--widget-gap); }
.info-box { display: flex; align-items: flex-start; gap: 16px; }
.info-box__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2em; height: 2em; font-size: 28px; background: var(--c-wine); color: var(--c-white);
}
.info-box__title {
  margin: 0 0 7px; font-size: var(--fs-h6); font-weight: 500; line-height: 1.5;
  letter-spacing: 2px; text-transform: uppercase; color: var(--c-wine);
}
.info-box__text { margin: 0; font-size: var(--fs-h5); font-weight: 400; line-height: 1.4; }
.info-box__text a { color: inherit; }
.info-box__text a:hover { color: var(--c-wine); }

.contact__divider { border: 0; border-top: 1px solid var(--c-line); margin: calc(var(--widget-gap) + 3px) 0; }
.contact__follow { display: flex; align-items: center; gap: 7px; }
.contact__follow-label { margin: 5px; font-size: var(--fs-h5); font-weight: 600; line-height: 1.4; color: var(--c-wine); }
.social-icon--light { width: 32px; height: 32px; font-size: 16px; margin: 5px 0; background: var(--c-light); color: var(--c-dark); }
.social-icon--light:hover, .social-icon--light:focus-visible { background: var(--c-wine); color: var(--c-white); }

/* Mappa: segnaposto finché l'utente non sceglie di caricarla */
.map__frame { position: relative; height: 313px; background: var(--c-footer); overflow: hidden; }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* foto dello showroom attenuata con il velo verde scuro delle fasce del sito */
.map__bg { position: absolute; inset: 0; }
.map__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map__bg::after { content: ""; position: absolute; inset: 0; background: rgba(45, 50, 45, .72); }
.map__consent {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 2em; text-align: center; color: var(--c-white);
}
.map__pin { font-size: 36px; color: var(--c-white); }
.map__text { margin: 0; max-width: 560px; text-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.map__text a { color: var(--c-white); text-decoration: underline; }
.map__text a:hover { color: var(--c-line); }
.map__consent .btn--outline { color: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-white); }
.map__consent .btn--outline:hover, .map__consent .btn--outline:focus-visible { background: var(--c-white); color: var(--c-wine); }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn--outline { background: transparent; color: var(--c-wine); box-shadow: inset 0 0 0 1px var(--c-wine); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--c-wine); color: var(--c-white); }

@media (max-width: 1024px) {
  .contact { padding: 3em 0; }
  .contact__col--info { padding: 2em; }
  .info-box__icon { font-size: 21px; }
}
@media (max-width: 767px) {
  .contact { padding: 0 0 2em; } /* stacca il riquadro Orari dalla mappa */
  .contact__inner { flex-wrap: wrap; }
  .contact__col { width: calc(100% - 2 * var(--gap)); }
  .contact__col--info, .contact__col--hours { padding: 2em; }
  .contact__title { text-align: center; font-size: 30px; }
  .contact__intro { text-align: center; font-size: 18px; }
  .contact__follow { justify-content: center; }
  .map__frame { height: 250px; }
  .map__consent { gap: 10px; padding: 1em; }
}

/* ==========================================================================
   RECENSIONI (carosello)
   ========================================================================== */
.reviews { padding: 7em 0; background: var(--c-light); }
.reviews__inner { padding: var(--gap); }
.section-head--reviews { max-width: 840px; }
.section-head--reviews .outline-text { top: 25px; }
@media (max-width: 767px) {
  /* "Recensioni" è lunga: rimpicciolita per non uscire dallo schermo */
  .section-head--reviews .outline-text { font-size: min(var(--fs-outline), 18vw); top: calc(25px + (var(--fs-outline) - min(var(--fs-outline), 18vw)) / 2); }
}
/* altezza come l'icona inline di Elementor: 50px + parte dell'interlinea (58px desktop, 56px mobile) */
.reviews__quote { height: calc(49px + var(--fs-body) / 2); color: var(--c-wine); font-size: 50px; }
.reviews__quote .icon { margin-inline: auto; }

.carousel { position: relative; padding-bottom: 40px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; will-change: transform; }
.carousel__slide { flex: 0 0 calc((100% - 2 * 10px) / 3); margin-right: 10px; padding: 2em; }
.review { text-align: center; }
.review__text { font-size: 1.3em; font-style: italic; line-height: 1.5; }
.review__footer { display: flex; align-items: center; justify-content: center; margin-top: 25px; min-height: calc(49px + var(--fs-body) / 2); }
.review__logo { width: 50px; height: 50px; }
.review__cite { display: flex; flex-direction: column; margin-left: 20px; text-align: start; }
.review__name { font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }
.review__source { font-size: var(--fs-h6); font-weight: 500; line-height: 1.5; letter-spacing: 2px; text-transform: uppercase; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 5px; height: 27px; display: flex; align-items: center; justify-content: center; }
.carousel__dot {
  width: 10px; height: 10px; margin: 0 6px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-line); cursor: pointer;
}
.carousel__dot[aria-selected="true"] { background: var(--c-wine); }

@media (max-width: 1024px) { .reviews { padding: 1em 0 3em; } }
@media (max-width: 767px) {
  .reviews { padding: 0 0 2em; }
  .reviews__inner { padding: 0; }
}
/* slide per vista: i breakpoint di Swiper in Elementor sono "min-width" (3 da 1024px, 2 da 767px) */
@media (max-width: 1023.98px) { .carousel__slide { flex-basis: calc((100% - 10px) / 2); } }
@media (max-width: 766.98px) { .carousel__slide { flex-basis: 100%; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--c-footer); color: var(--c-white); padding-top: 3em; }
.site-footer__top, .site-footer__bottom { display: flex; max-width: 1280px; margin-inline: auto; }
.site-footer__top { border-bottom: 1px solid var(--c-white-17); padding-bottom: 2em; }
.site-footer__col { width: 33.333%; padding: 1em; }
.site-footer__brand { padding-right: calc(8.333% + 1em); }
.site-footer__col > :not(:last-child) { margin-bottom: var(--widget-gap); }
.site-footer__logo { display: inline-block; vertical-align: top; } /* come l'originale: logo = 88% della larghezza del link */
.site-footer__logo img { width: 88%; }
.site-footer__title { margin: 0; font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; color: var(--c-white); }
.hours-list li:not(:last-child) { padding-bottom: 3.5px; }
.hours-list li:not(:first-child) { margin-top: 3.5px; }
.contact-list li:not(:last-child) { padding-bottom: 9px; }
.contact-list li:not(:first-child) { margin-top: 9px; }
.contact-list a { display: flex; align-items: center; color: var(--c-white); }
.contact-list .icon { flex: none; width: 16px; height: 16px; margin-right: 4px; color: var(--c-text); transition: color var(--t-fast); }
.contact-list span { padding-left: 5px; }
.contact-list a:hover .icon { color: var(--c-white); }

.site-footer__bottom { align-items: center; padding: 1em 0; }
.site-footer__legal { width: 70%; padding: var(--gap); margin: 0; }
.site-footer__legal::after { content: ""; display: block; height: 14.4px; }
.site-footer__legal a { color: var(--c-text); }
.site-footer__legal a:hover { color: var(--c-white); }
.site-footer__social { width: 30%; padding: var(--gap); display: flex; justify-content: flex-end; gap: 5px; }
.site-footer__social .social-icon:hover { background: var(--c-wine); }
@media (hover: hover) and (pointer: fine) {
  .social-icon--float:hover { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  .site-footer__brand { width: 40%; }
  .site-footer__col:not(.site-footer__brand) { width: 30%; }
}
@media (max-width: 767px) {
  .site-footer { padding-top: 2em; }
  .site-footer__top, .site-footer__bottom { flex-wrap: wrap; }
  .site-footer__col, .site-footer__brand, .site-footer__col:not(.site-footer__brand) { width: 100%; padding: 1em; }
  .site-footer__brand, .site-footer__title, .site-footer__legal, .hours-list { text-align: center; }
  .site-footer__logo img { margin-inline: auto; }
  .contact-list a { justify-content: center; }
  .site-footer__legal, .site-footer__social { width: 100%; }
  .site-footer__social { justify-content: center; }
  .site-footer__social .social-icon { width: 24px; height: 24px; font-size: 12px; }
}

/* Pulsante "torna su": fisso in basso a destra */
.back-to-top {
  position: fixed; z-index: 100; right: 24px; bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: var(--c-dark); color: var(--c-white); font-size: 20px;
  transition: background-color var(--t-fast);
}
.back-to-top:hover, .back-to-top:focus-visible { background: var(--c-wine); color: var(--c-white); }
@media (max-width: 767px) { .back-to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* ==========================================================================
   ANIMAZIONI D'INGRESSO (stessi keyframe e durate di Elementor)
   ========================================================================== */
.js .anim { visibility: hidden; }
.js .anim.is-in { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.js .anim.is-in[data-speed="fast"] { animation-duration: .75s; }
.anim.is-in[data-anim="fadeIn"] { animation-name: fadeIn; }
.anim.is-in[data-anim="fadeInUp"] { animation-name: fadeInUp; }
.anim.is-in[data-anim="fadeInDown"] { animation-name: fadeInDown; }
.anim.is-in[data-anim="fadeInLeft"] { animation-name: fadeInLeft; }
.anim.is-in[data-anim="fadeInRight"] { animation-name: fadeInRight; }
.anim.is-in[data-anim="slideInUp"] { animation-name: slideInUp; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .js .anim { visibility: visible; }
  .js .anim.is-in { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
