/* ======================================================================
   CoperniKo – foglio di stile unico
   Valori misurati sul tema originale (Quart / Mikado + WPBakery), vedi
   docs/analisi-sorgenti/stile-misure.md. Breakpoint del tema: 1024px (header mobile).
   ====================================================================== */

/* Font in locale (variabili: un file copre i pesi 300-500 come i Google Fonts dell'originale;
   i grassetti 600/700 restano "sintetici" come sul vecchio sito) */
@font-face { font-family: Roboto; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/roboto-var.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/roboto-italic-var.woff2) format("woff2"); }
@font-face { font-family: Heebo; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/heebo-var.woff2) format("woff2"); }

:root {
  --red: #e52520;           /* accento: voce di menu attiva, fascia footer */
  --text: #000;
  --muted: #707070;
  --grey-bg: #f6f6f6;
  --line: #333;
  --font: Roboto, Arial, sans-serif;
  --font-head: Heebo, Arial, sans-serif;
  --header-h: 94px;         /* desktop */
  --header-h-sticky: 58px;  /* desktop dopo lo scroll */
  --header-h-mobile: 70px;  /* ≤ 1024px, fisso (M1) */
  --grid: 1200px;           /* contenitore "mkdf-grid" */
  --ease: cubic-bezier(.4, 0, .2, 1);
}
@media (max-width: 1399px) { :root { --grid: 1100px; } }
@media (max-width: 1280px) { :root { --grid: 950px; } }
@media (max-width: 1024px) { :root { --grid: 768px; } }
@media (max-width: 768px)  { :root { --grid: 600px; } }
@media (max-width: 680px)  { :root { --grid: 420px; } }
@media (max-width: 480px)  { :root { --grid: 300px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-sticky) + 10px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 300 16px/1.43 var(--font); color: var(--text); background: #fff; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
picture { display: contents; }
source { display: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
p { margin: 0 0 14px; letter-spacing: .02em; }
strong, b { font-weight: bolder; }   /* come il browser e il tema Quart: un gradino più marcato del testo intorno (300→400, titoli 400→700) */
h1, h2, h3, h4, h5, h6 { margin: 0 0 14px; font-family: var(--font-head); font-weight: 400; color: #000; }
h1 { font-size: 60px; line-height: 1.033; }
h2 { font-size: 45px; line-height: 1.1; letter-spacing: .02em; }
h3 { font-size: 35px; line-height: 1.143; letter-spacing: .02em; }
h4 { font-size: 27px; line-height: 1.2; letter-spacing: .02em; }
h5 { font-size: 18px; line-height: 1.333; letter-spacing: .02em; }
h6 { font-size: 17px; line-height: 1.176; font-weight: 300; }
@media (max-width: 1024px) { h1 { font-size: 45px; line-height: 1.044; } h2 { font-size: 38px; } h3 { font-size: 30px; } }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
.grid { width: var(--grid); max-width: calc(100% - 40px); margin: 0 auto; }
.ta-center { text-align: center; }
@media (max-width: 1024px) { .hide-mobile { display: none !important; } }
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-button:hover { color: var(--red); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- Pulsanti (mkdf-btn) */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 34px; border: 1px solid #000;
  font: 400 12px/1.9 var(--font-head); letter-spacing: 2.4px; text-transform: uppercase;
  color: #000; background: transparent; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: #000; color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: #000; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------------------------------------------------------------- Header desktop (> 1024px)
   In cima: barra nera 94px nel flusso della pagina. Dopo data-sticky-offset px site.js aggiunge
   .is-sticky: la barra diventa fissa, alta 58px, e scende dall'alto (come il tema Quart). */
body { padding-top: var(--header-h); }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); background: #000; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 10px; }
.site-logo { display: block; line-height: 0; }
.site-logo__img { width: 60px; height: 50px; }
.site-header.is-sticky { position: fixed; height: var(--header-h-sticky); animation: header-down .4s var(--ease) both; }
@keyframes header-down { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-sticky { animation: none; } }

.main-nav { height: 100%; }
.main-nav__list { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.main-nav__item { position: relative; display: flex; align-items: stretch; }
.main-nav__item > a, .main-nav__parent {
  display: flex; align-items: center; padding: 0 24px; border: 0; background: none; cursor: pointer;
  font: 400 12px/23px var(--font-head); letter-spacing: 2.4px; color: #fff; white-space: nowrap;
}
.main-nav__item > a:hover, .main-nav__parent:hover, .main-nav__item:hover > .main-nav__parent,
.main-nav__item.is-active > a, .main-nav__item.is-active > .main-nav__parent { color: var(--red); }
.main-nav__arrow { display: none; }
.main-nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 10; width: 230px; margin: 0; padding: 23px 0; list-style: none;
  background: #000; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.main-nav__item:hover > .main-nav__sub, .main-nav__item:focus-within > .main-nav__sub, .main-nav__item.is-open > .main-nav__sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s;
}
.main-nav__sub a { display: block; padding: 4px 30px; font: 300 15px/30px var(--font); color: #fff; }
.main-nav__sub a:hover, .main-nav__sub a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- Header mobile (≤ 1024px), fisso (M1) */
@media (max-width: 1024px) {
  body { padding-top: var(--header-h-mobile); }
  .site-header, .site-header.is-sticky { position: fixed; height: var(--header-h-mobile); animation: none; border-bottom: 1px solid var(--line); }
  .site-header__inner { width: var(--grid); max-width: calc(100% - 40px); margin: 0 auto; padding: 0; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
    padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle__bars { position: relative; width: 28px; height: 10px; }
  .nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 8px; }
  .nav-open .nav-toggle__bars span:nth-child(1) { top: 4px; transform: rotate(45deg); }
  .nav-open .nav-toggle__bars span:nth-child(2) { top: 4px; transform: rotate(-45deg); }
  .main-nav {
    position: fixed; top: var(--header-h-mobile); left: 0; right: 0; height: auto;
    max-height: calc(100vh - var(--header-h-mobile)); max-height: calc(100dvh - var(--header-h-mobile));
    overflow-y: auto; background: #000; display: none; padding: 20px 0 50px;
  }
  .nav-open .main-nav { display: block; animation: menu-down .3s var(--ease) both; }
  .main-nav__list { display: block; width: var(--grid); max-width: calc(100% - 40px); height: auto; margin: 0 auto; }
  .main-nav__item { display: block; border-bottom: 1px solid var(--line); }
  .main-nav__item:last-child { border-bottom: 0; }
  .main-nav__item > a, .main-nav__parent {
    width: 100%; padding: 4px 0; justify-content: space-between; font-weight: 300; line-height: 31.92px; text-align: left;
  }
  .main-nav__item:hover > .main-nav__parent { color: #fff; }
  .main-nav__arrow { display: inline-flex; }
  .main-nav__arrow .icon { width: 14px; height: 14px; stroke-width: 2.5; transition: transform .2s; }
  .main-nav__parent[aria-expanded="true"] .main-nav__arrow .icon { transform: rotate(180deg); }
  .main-nav__sub, .main-nav__item:hover > .main-nav__sub, .main-nav__item:focus-within > .main-nav__sub {
    position: static; width: auto; padding: 0 0 10px 15px; opacity: 1; visibility: visible; transform: none; display: none; transition: none;
  }
  .main-nav__item.is-open > .main-nav__sub { display: block; }
  .main-nav__sub a { padding: 2px 0; font-size: 14px; line-height: 28px; }
}
@keyframes menu-down { from { transform: translateY(-10px); } to { transform: none; } }

/* ---------------------------------------------------------------- Testata pagine interne (title area) */
.title-area { position: relative; height: 350px; display: flex; align-items: center; overflow: hidden; background: #000; }
.title-area__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.title-area__inner { position: relative; }
.title-area__title { margin: 0; color: #fff; }
@media (max-width: 1024px) { .title-area { height: 136px; } }

/* ---------------------------------------------------------------- Footer */
.site-footer__top { background: var(--red); padding: 20px; }
.site-footer__social { display: flex; justify-content: center; gap: 0 92px; margin: 0; padding: 4px 0 3px; list-style: none; }
.site-footer__social a { display: block; width: 61px; height: 61px; color: #fff; transition: opacity .2s; }
.site-footer__social a:hover { opacity: .7; color: #fff; }
.site-footer__social svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.site-footer__bottom { background: #000; color: #fff; padding: 45px 40px 35px; text-align: center; font-size: 12px; line-height: 22.88px; }
.site-footer__logo { width: 240px; height: auto; margin: 0 auto; }
.site-footer__legal-line { margin: 18px 0 0; letter-spacing: 0; }
.site-footer__legal-line a:hover { color: #fff; text-decoration: underline; }
.site-footer__mepa { margin-top: 22px; }
.site-footer__mepa img { height: 24px; width: auto; margin: 0 auto; }
.site-footer__mepa p { margin: 3px 0 0; }
.site-footer__links { margin: 16px 0 0; font-size: 12px; color: #bbb; }
.site-footer__links a:hover, .site-footer__links .link-button:hover { color: #fff; text-decoration: underline; }
@media (max-width: 768px) {
  .site-footer__social { gap: 0 24px; }
  .site-footer__social a { width: 48px; height: 48px; }
  .site-footer__bottom { padding: 35px 20px 30px; }
  .site-footer__logo { width: 200px; }
}
.back-to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 45; width: 41px; height: 41px; display: flex;
  align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transition: opacity .3s; }
.back-to-top:hover { color: var(--red); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------------------------------------------------------------- Modulo (stile originale: campi sottolineati) */
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.field { margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 10px 0; margin: 2px 0 18px; border: 0; border-bottom: 1px solid #c8c8c8; border-radius: 0;
  background: transparent; font: 300 14px/1.4 var(--font); color: #000;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #000; outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c62828; }
.field__error { display: block; color: #c62828; font-size: 13px; margin: -14px 0 10px; }
.field__hint { display: block; font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check input { margin-top: 3px; }
.cform__submit { margin-top: 16px; }
.msg { margin: 16px 0 0; padding: 10px 14px; font-size: 14px; }
.msg--ok { background: #e8f5e9; border: 1px solid #2e7d32; color: #1b5e20; }
.msg--error { background: #fdecea; border: 1px solid #c62828; color: #8e1c1c; }
@media (max-width: 768px) { .cform__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Slider */
.slider { position: relative; overflow: hidden; touch-action: pan-y; background: #f2f2f2; }
.slider__track { display: flex; transition: transform .7s var(--ease); will-change: transform; }
.slider__slide { flex: 0 0 100%; }
.slider__slide img { width: 100%; aspect-ratio: 770 / 550; object-fit: cover; }
.slider__nav {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 10px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer;
  transition: background-color .2s;
}
.slider__nav:hover, .slider__nav:focus-visible { background: rgba(0, 0, 0, .6); }
.slider__nav--prev { left: 10px; }
.slider__nav--next { right: 10px; }
.slider .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- Animazioni all'ingresso nello schermo
   Riproducono le animazioni del tema (Jupiter "mk-animate-element", WPBakery "wpb_animate_when_almost_visible",
   Elementor "animated"): <div data-animate="flip-y|fade-in|bottom-to-top|left-to-right|right-to-left|scale-up">.
   site.js aggiunge .is-in quando l'elemento entra nello schermo. Senza JS o con "riduci movimento": tutto visibile. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate] { opacity: 0; }
  .js [data-animate].is-in { opacity: 1; }
  .js [data-animate="flip-y"].is-in { animation: anim-flip-y .6s cubic-bezier(.77, 0, .175, 1) both; }
  .js [data-animate="flip-x"].is-in { animation: anim-flip-x .6s cubic-bezier(.77, 0, .175, 1) both; }
  .js [data-animate="fade-in"].is-in { animation: anim-fade .7s cubic-bezier(.445, .05, .55, .95) both; }
  .js [data-animate="bottom-to-top"].is-in { animation: anim-btt .6s cubic-bezier(.77, 0, .175, 1) both; }
  .js [data-animate="left-to-right"].is-in { animation: anim-ltr .6s cubic-bezier(.77, 0, .175, 1) both; }
  .js [data-animate="right-to-left"].is-in { animation: anim-rtl .6s cubic-bezier(.77, 0, .175, 1) both; }
  .js [data-animate="scale-up"].is-in { animation: anim-scale .7s cubic-bezier(.445, .05, .55, .95) both; }
}
@keyframes anim-flip-y { from { transform: perspective(400px) rotateY(90deg); opacity: 0; } to { transform: perspective(400px) rotateY(0); opacity: 1; } }
@keyframes anim-flip-x { from { transform: perspective(400px) rotateX(90deg); opacity: 0; } to { transform: perspective(400px) rotateX(0); opacity: 1; } }
@keyframes anim-fade { from { opacity: .1; } to { opacity: 1; } }
@keyframes anim-btt { from { transform: translateY(50%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes anim-ltr { from { transform: translateX(-50%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes anim-rtl { from { transform: translateX(50%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes anim-scale { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- Pagine semplici */
.prose { font-size: 16px; line-height: 1.66; }
.prose h2 { font-size: 20px; color: var(--red); margin: 30px 0 10px; text-transform: none; }
.prose h3 { font-size: 17px; margin: 20px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.prose th, .prose td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.prose th { background: var(--grey-bg); }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- Banner cookie */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #000; color: #fff; border-top: 3px solid var(--red);
  padding: 18px max(20px, calc((100% - 1200px) / 2));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .25);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 30px; align-items: center;
}
.cookie[hidden] { display: none; }
.cookie { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.cookie__title { grid-column: 1; margin: 0; font-weight: 700; font-size: 15px; padding-right: 30px; }
.cookie__text { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.5; }
.cookie__text a { color: #fff; text-decoration: underline; }
.cookie__prefs { grid-column: 1 / -1; display: grid; gap: 8px; margin: 8px 0; font-size: 13px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookie__opt input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--red); }
.cookie__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie__prefs:not([hidden]) ~ .cookie__actions { grid-column: 1 / -1; grid-row: auto; }
.cookie .btn { padding: 11px 18px; }
.cookie .btn[hidden] { display: none; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--outline:hover, .btn--outline:focus-visible { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; }
.cookie__close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cookie__close .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
@media (max-width: 899px) {
  .cookie { grid-template-columns: 1fr; padding: 16px 20px; }
  .cookie__actions { grid-column: 1; grid-row: auto; justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- Iframe di terze parti e mappe */
.embed { line-height: 0; }
.embed iframe { display: block; width: 100%; border: 0; }
.gmap { min-height: 450px; background: #e5e3df; }
.addr { font-size: 14px; line-height: 1.66; margin: 0 0 20px; }
.addr a { color: inherit; }

/* ======================================================================
   Articoli, elenchi News/Blog, portfolio (misure del tema Quart originale)
   ====================================================================== */

/* ---------------------------------------------------------------- Testo Markdown (articoli e progetti) */
.post__text p { margin: 20px 0; }
.post__text h2 { font-size: 38px; line-height: 1.156; margin: 25px 0; }
.post__text h3 { margin: 25px 0; }
.post__text h4 { margin: 20px 0; }
.post__text ul, .post__text ol { margin: 20px 0; padding-left: 22px; letter-spacing: .02em; }
.post__text li { margin: 4px 0; }
.post__text a:hover, .ps__text a:hover { color: var(--red); }   /* link non sottolineati, come l'originale */
u { text-decoration: underline; text-underline-offset: auto; }
.post__text blockquote { margin: 25px 0; padding: 5px 0 5px 25px; border-left: 3px solid var(--red); font-style: italic; }
.post__text table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.post__text th, .post__text td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
.post__text th { background: var(--grey-bg); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.md-figure { margin: 25px 0; }
.md-figure img, .post__text img { width: auto; max-width: 100%; }

/* video YouTube caricato solo al clic */
.yt { position: relative; max-width: 800px; margin: 25px 0; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- Articolo singolo */
.post { padding: 20px 30px 90px 0; }
.post__img { margin: 0 0 30px; }
.post__img img { width: 100%; }
.post__cat { margin-bottom: 8px; font: italic 300 17px/22.88px var(--font-head); }
.post__title { max-width: 90%; margin: 0; font-size: 45px; line-height: 1.156; letter-spacing: 0; }
.post__source { margin-top: 30px; font-style: italic; }
.post__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 7px; padding-top: 50px; font-size: 16px; }
.post__label { font-size: 18px; font-weight: 400; }
.post__label:not(:first-child) { margin-left: 33px; }
.share { display: flex; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.share a { display: block; width: 20px; height: 20px; }
.share svg { width: 100%; height: 100%; fill: currentColor; }
@media (max-width: 1024px) {
  .post { padding-right: 0; padding-bottom: 60px; }
  .post__title { max-width: none; font-size: 32px; line-height: 1.2; }     /* M2: piu piccolo su mobile */
  .post__text h2 { font-size: 28px; }
  .post__text h3 { font-size: 24px; }
  .post__label:not(:first-child) { margin-left: 15px; }
}

/* ---------------------------------------------------------------- Elenchi News / Blog */
.list-head { padding: 44px 0 64px; }
.list-head h1 { margin: 0; }
.posts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; margin: 0 30px 40px 0; }   /* 3 x 370px come il tema */
.posts.is-masonry { display: block; }
.posts.is-masonry > .post-card { position: absolute; }
.post-card { min-width: 0; }
.post-card__img { display: block; margin-bottom: 30px; }
.post-card__img img { width: 100%; }
.post-card__info { display: flex; gap: 0 12px; margin-bottom: 8px; font: italic 300 17px/22.88px var(--font-head); }
.post-card__info span + span::before { content: "/"; margin-right: 12px; }
.post-card__title { margin: 0 0 28px; font-size: 38px; line-height: 1.156; letter-spacing: 0; }
.post-card__excerpt { margin: 0 0 30px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/24px var(--font-head); letter-spacing: 2.4px; text-transform: uppercase; }
.read-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 90px; padding: 0; list-style: none; }
.pagination a, .pagination span { display: inline-flex; align-items: center; min-width: 16px; font-size: 16px; }
.pagination span[aria-current] { font-weight: 500; border-bottom: 1px solid #000; }
.pagination svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 1024px) {
  .posts { grid-template-columns: repeat(2, 1fr); margin-right: 0; }
  .list-head { padding: 30px 0 40px; }
  .post-card__title { font-size: 28px; }
}
@media (max-width: 680px) { .posts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Griglia portfolio con filtro */
.section-pf { padding: 30px 0 60px; }
.pf__filter { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 0 23px; padding: 0; list-style: none; }
.pf__filter li { margin: 0 0 10px; padding: 0 16px; }
.pf__filter button {
  padding: 0 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer;
  font: 400 12px/22px var(--font-head); letter-spacing: 2.4px; text-transform: uppercase; color: #000;
}
.pf__filter button:hover { color: var(--red); }
.pf__filter button.is-current { border-bottom-color: #000; }
.pf__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.pf__item[hidden] { display: none; }
.pf__item a { position: relative; display: block; overflow: hidden; color: #fff; }
.pf__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* categoria e titolo restano nella scheda per lettori di schermo e motori di ricerca;
   a video compaiono nell'etichetta che segue il puntatore (come il tema Quart "gallery overlay") */
.pf__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf__title { margin: 0; font-size: inherit; }
.pf-follow {
  position: fixed; z-index: 9999; margin-top: 20px; pointer-events: none;
  clip-path: inset(0 100% 0 0);
}
.pf-follow.is-active { clip-path: inset(0); transition: clip-path .5s cubic-bezier(.165, .84, .44, 1); }
.pf-follow__in { padding: 20px; }
.pf-follow__cat {
  display: inline-block; margin-bottom: 6px; padding: 3px 15px; background: #000; color: #fff;
  font: italic 300 17px/22px var(--font-head);
}
.pf-follow__title {
  display: block; margin-top: -4px; padding: 3px 15px 6px; background: #000; color: #fff;
  font: 400 27px/32px var(--font); letter-spacing: .54px; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { .pf-follow.is-active { transition: none; } }
/* dispositivi touch (telefoni, tablet): niente mouse, categoria e titolo sotto la foto */
@media (hover: none), (pointer: coarse) {
  .pf__item a { color: #000; }
  .pf__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; padding-top: 14px; }
  .pf__cat { display: block; margin-bottom: 4px; font: italic 300 15px/20px var(--font-head); }
  .pf__title { font: 400 22px/1.2 var(--font-head); letter-spacing: .02em; }
}
@media (max-width: 1024px) { .pf__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .pf__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Scheda progetto */
.ps { display: grid; grid-template-columns: 790fr 380fr; gap: 30px; padding: 20px 0 70px; align-items: start; }
.ps__media { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: var(--ps-row, 243px); grid-auto-flow: dense; gap: 30px; }
.ps__img { display: block; overflow: hidden; background: #eee; }
.ps__img img, .ps__img video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ps__img:hover img { transform: scale(1.03); }
.ps__img--wide { grid-column: span 2; }
.ps__video video { background: #000; }
.ps__info { padding-top: 4px; min-width: 0; }
.ps__media { min-width: 0; }
.ps__title { margin: 0 0 15px; font-size: 28px; line-height: 1.156; }
.ps__text { margin-bottom: 50px; }
.ps__text p { margin: 0 0 14px; }
.ps__prop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 13px; margin-bottom: 12px; }
.ps__label { margin: 0; font: 400 18px/24px var(--font-head); letter-spacing: .02em; }
.ps__prop p { margin: 0; }
@media (max-width: 1399px) { .ps__media { --ps-row: 222px; } }
@media (max-width: 1280px) { .ps__media { --ps-row: 190px; } }
@media (max-width: 1024px) {
  .ps { grid-template-columns: 1fr; }
  .ps__media { --ps-row: calc((min(var(--grid), 100vw - 40px) - 60px) / 3); }
  .ps__text { padding-right: 0; }
}
@media (max-width: 680px) { .ps__media { grid-template-columns: repeat(2, 1fr); gap: 15px; --ps-row: calc((min(var(--grid), 100vw - 40px) - 15px) / 2); } }

/* ---------------------------------------------------------------- Lightbox (galleria del portfolio) */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; }
.lightbox__caption { margin-top: 10px; font-size: 13px; opacity: .85; }
.lightbox__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0; color: #fff; background: rgba(255, 255, 255, .08); cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn .icon { width: 28px; height: 28px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 10px; top: 10px; }
.lightbox__count { position: absolute; left: 16px; top: 22px; font-size: 13px; opacity: .8; }

/* ======================================================================
   Homepage (misure dell'originale a 1440px)
   ====================================================================== */
.hp-hero { background: #000; padding: 185px 0 176px; text-align: center; }
.hp-hero { position: relative; overflow: hidden; }
.hp-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-hero__title { position: relative; margin: 0; }
.hp-hero__title img { width: 75%; height: auto; margin: 0 auto; }
@media (max-width: 1024px) { .hp-hero { padding: 70px 0 80px; } }

.hp-intro { display: grid; grid-template-columns: 5fr 7fr; background: #000; color: #fff; }
.hp-intro__img { position: relative; }
.hp-intro__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-intro__text { padding: 60px 0 70px; }
.hp-intro__p { margin: 0; padding: 20px 10%; color: #fff; }
.hp-intro__p + .hp-counters { margin-top: 21px; }
.hp-counters + .hp-intro__p { margin-top: 29px; }
.hp-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px 10%; }
.counter { display: flex; flex-direction: column; align-items: center; text-align: center; }
.counter__num { font: 400 48px/48px var(--font); color: #fff; }
.counter__title { margin-top: 20px; font: 600 16px/18.8px var(--font-head); color: #fff; }
@media (max-width: 1024px) {
  .hp-intro { grid-template-columns: 1fr; }
  .hp-intro__text { padding: 30px 0 40px; }
  .hp-intro__p, .hp-counters { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 680px) { .hp-counters { grid-template-columns: 1fr; gap: 25px; } }

.hp-heading { padding: 60px 0 0 9.2%; }
.hp-heading h2 { margin: 0; }
.hp-heading--news { padding-top: 65px; }
@media (max-width: 1024px) { .hp-heading { padding-left: 20px; } }

/* pannelli dei servizi: in scala di grigi, si allargano e tornano a colori al passaggio del mouse */
.svc-panels { display: flex; height: 500px; margin: 20px 0; gap: 1px; }
.svc-panel { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; filter: grayscale(100%); transition: flex .5s ease, filter .5s ease; }
.svc-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-panel span {
  position: relative; padding: 10px; background: #000; color: #fff; font: 400 28px/1.2 var(--font-head); text-align: center;
  opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease;
}
.svc-panel:hover, .svc-panel:focus-visible { flex: 3; filter: grayscale(0%); }
.svc-panel:hover span, .svc-panel:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .svc-panels { flex-direction: column; height: auto; gap: 10px; }
  .svc-panel { flex: none; height: 150px; filter: none; transition: none; }
  .svc-panel span { opacity: 1; transform: none; background: rgba(0, 0, 0, .7); }
  .svc-panel:hover { flex: none; }
}

/* riquadro con immagine che scorre verso l'alto al passaggio del mouse e titolo con "tendina" bianca */
.hp-portfolio { padding-top: 20px; }
.parallax-box { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; overflow: hidden; }
.parallax-box__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transition: object-position 3s cubic-bezier(.1, .85, .2, 1); }
.parallax-box:hover .parallax-box__img { object-position: center top; }
.title-bg {
  position: relative; z-index: 1; display: inline-block; padding: 8px 16px; overflow: hidden;
  background: #000; color: #fff; font: 400 35px/40px var(--font-head); letter-spacing: .02em; transition: color .4s ease;
}
.title-bg::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: -1; width: 0; height: 100%; background: #fff;
  transition: width .5s cubic-bezier(.7, 0, .2, 1);
}
.parallax-box:hover .title-bg { color: #000; }
.parallax-box:hover .title-bg::before { width: 100%; left: 0; right: auto; }

/* carosello news: 4 visibili, si trascina (come lo slider del tema senza frecce) */
.hp-news { padding: 20px 0 55px; }
.news-slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 45px) / 4); gap: 15px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.news-slider::-webkit-scrollbar { display: none; }
.news-slider.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.news-slider.is-dragging a { pointer-events: none; }
.news-slide { display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
.news-slide__img { display: block; }
.news-slide__img img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-user-drag: none; }
.news-slide__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding-top: 31px; }   /* come l'originale: testo in alto, sotto la foto */
.news-slide__date { padding-bottom: 5px; font: italic 300 17px/20.4px var(--font-head); }
.news-slide__title { width: 75%; margin: 4px 0 31px; font-size: 18px; line-height: 25.2px; letter-spacing: .02em; }
.read-more--small { font-size: 11px; line-height: 22px; letter-spacing: 2.2px; font-weight: 400; }
@media (max-width: 1024px) { .news-slider { grid-auto-columns: calc((100% - 15px) / 2); } }
@media (max-width: 680px) { .news-slider { grid-auto-columns: 85%; } }

/* nastro dei loghi dei clienti (2 righe che scorrono; si ferma al passaggio del mouse) */
.logo-slider { overflow: hidden; padding: 30px 0; background: #fff; }
.logo-track {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 70px); gap: 30px;
  grid-auto-columns: calc((100vw - 60px - 210px) / 8); width: max-content; padding: 0 15px;
  animation: logo-scroll 40s linear infinite;
}
.logo-slider:hover .logo-track { animation-play-state: paused; }
.logo-box { display: flex; align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 12px; background: #fff; }
.logo-box img { max-width: 110px; max-height: 50px; width: auto; height: auto; object-fit: contain; opacity: .8; transition: opacity .3s, transform .3s; }
.logo-box img:hover { opacity: 1; transform: scale(1.05); }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 15px)); } }
@media (max-width: 768px) {
  .logo-track { grid-template-rows: repeat(2, 60px); gap: 20px; grid-auto-columns: calc((100vw - 50px) / 2); }
  .logo-box img { max-width: 90px; }
}
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } .logo-slider { overflow-x: auto; } }
.logo-tip { position: fixed; z-index: 1000; padding: 5px 10px; border-radius: 6px; background: #111; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.logo-tip.is-on { opacity: 1; }

/* fascia CONTATTACI */
.hp-cta { position: relative; display: flex; justify-content: center; padding: 35px 20px 40px; overflow: hidden; }
.hp-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn--outline-dark { position: relative; padding: 15px 28px; border-width: .8px; font-size: 12px; line-height: 24px; letter-spacing: 2.4px; }
.btn--outline-dark svg, .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--outline-dark:hover { background: #fff; color: #000; }

/* ======================================================================
   Pagine interne generate da WPBakery (tools/coperniko_pagine.py)
   Riproduce la griglia di WPBakery (righe, colonne a 12, breakpoint sm 768 / md 992 / lg 1200)
   e gli elementi del tema Quart usati nelle pagine.
   ====================================================================== */
.r { position: relative; }
.r > .r__in { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.r--grid > .r__in { width: calc(var(--grid) + 30px); max-width: calc(100% - 10px); margin: 0 auto; }
.r--inner > .r__in { margin: 0 -15px; }
.r--inner.r--grid > .r__in { width: calc(var(--grid) + 30px); max-width: calc(100% - 10px); margin: 0 auto; }
.r--eq > .r__in > .c > .c__in { height: 100%; }
/* spaziatura tra colonne di WPBakery (gap): ogni colonna ha metà spazio su tutti i lati */
.r--gap30 > .r__in { margin: 0 -30px; }
.r--gap30 > .r__in > .c { padding: 15px; }
.r--gap20 > .r__in { margin: 0 -25px; }
.r--gap20 > .r__in > .c { padding: 10px; }
.r--grid.r--gap30 > .r__in { width: calc(var(--grid) + 60px); max-width: calc(100% + 20px); margin: 0 auto; }
.r--grid.r--gap20 > .r__in { width: calc(var(--grid) + 50px); max-width: calc(100% + 10px); margin: 0 auto; }
.c { position: relative; width: 100%; min-width: 0; }
.c__in { padding: 0 15px; }
.r.has-fill > .r__in > .c > .c__in, .c.has-fill > .c__in { padding-top: 35px; }
/* regola di WPBakery: anche la riga che segue una riga con sfondo ha 35px sopra nelle colonne */
.r.has-fill:not(.r--grid) + .r:not(.r--grid) > .r__in > .c > .c__in { padding-top: 35px; }   /* il tema avvolge le fasce "a contenitore": la regola vale solo tra fasce a tutta larghezza */
@media (min-width: 768px) {
  .w-1 { width: 8.333%; } .w-2 { width: 16.667%; } .w-3 { width: 25%; } .w-4 { width: 33.333%; } .w-5 { width: 41.667%; }
  .w-6 { width: 50%; } .w-7 { width: 58.333%; } .w-8 { width: 66.667%; } .w-9 { width: 75%; } .w-10 { width: 83.333%; }
  .w-11 { width: 91.667%; } .w-12 { width: 100%; } .w-1-5 { width: 20%; }
  .sm-12 { width: 100%; }
  .hidden-sm { display: none; }
}
@media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none; } }
@media (min-width: 992px) and (max-width: 1199px) { .md-12 { width: 100%; } .hidden-md { display: none; } }
@media (min-width: 992px) { .md-6 { width: 50%; } }
@media (min-width: 1200px) {
  .lg-3 { width: 25%; } .lg-4 { width: 33.333%; } .lg-5 { width: 41.667%; } .lg-6 { width: 50%; } .lg-7 { width: 58.333%; }
  .hidden-lg { display: none; }
}
@media (min-width: 992px) and (max-width: 1199px) { .lg-3.md-12, .lg-4.md-12, .lg-6.md-12 { width: 100%; } }
@media (max-width: 767px) { .hidden-xs { display: none; } }
@media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } }
@media (min-width: 768px) { .hidden-sm.hidden-md.hidden-lg { display: none; } }

/* contenitore elementi (mkdf_elements_holder) con padding diversi per larghezza */
.eh__item { padding: var(--p, 0); }
@media (min-width: 1367px) and (max-width: 1600px) { .eh__item { padding: var(--p1600, var(--p, 0)); } }
@media (min-width: 1025px) and (max-width: 1366px) { .eh__item { padding: var(--p1366, var(--p, 0)); } }
@media (min-width: 769px) and (max-width: 1024px) { .eh__item { padding: var(--p1024, var(--p, 0)); } }
@media (min-width: 681px) and (max-width: 768px) { .eh__item { padding: var(--p768, var(--p, 0)); } }
@media (max-width: 680px) { .eh__item { padding: var(--p680, var(--p, 0)); } }
.ta-center { text-align: center; }
.ta-right { text-align: right; }

/* testo, spazi, titoli di sezione, immagini singole */
.txt { margin-bottom: 0; }   /* il tema Quart azzera il margine di WPBakery */
.txt > :last-child { margin-bottom: 0; }
.txt p { margin: 10px 0 0; }
.txt ul, .txt ol { margin: 10px 0 0; padding-left: 22px; letter-spacing: .02em; }
.txt h2, .txt h3, .txt h4, .txt h5, .txt h6 { margin: 25px 0; }   /* tema Quart: titoli 25px sopra e sotto (l'ultimo elemento del blocco a 0) */
.txt a:hover { color: var(--red); }
.sp { display: block; }
.st { margin: 0; }
.st--center { text-align: center; }
.st--right { text-align: right; }
.st__title { margin: 0; }
.si { margin: 0; line-height: 0; }
.si img { max-width: 100%; height: auto; }
.si img:not([width]) { width: auto; }

.si--center img { margin: 0 auto; }
.si--right img { margin-left: auto; }
.img-60 { width: 60px; height: 60px; object-fit: cover; }

/* icona con testo (mkdf_icon_with_text, icona sopra) */
.iwt { display: block; text-align: left; }
.iwt__icon img { display: inline-block; max-width: 100%; height: auto; }   /* dimensioni dagli attributi (es. 60×60), come l'originale */
/* come Quart: nell'elemento centrato icona+titolo e testo formano blocchi centrati ma allineati a sinistra */
.eh__item.ta-center .iwt, .eh__item.ta-center > .txt { text-align: left; }
.iwt__content { padding-top: 26px; }
.iwt__title { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: .02em; }
.iwt__title span { position: relative; display: inline-block; }
.iwt__title span::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: #000; transition: width .4s var(--ease); }
.iwt:hover .iwt__title span::after, .eh__item:hover .iwt__title span::after { width: 100%; }
.iwt + .txt { margin-top: 0; }

/* animazione "grow-in" del tema per gli elementi */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate="grow-in"] { opacity: 0; transform: scale(.6); }
  .js [data-animate="grow-in"].is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.18, .89, .32, 1.28); transition-delay: var(--d, 0ms); }
  .js .r[data-animate="fade-in"] { opacity: 0; }
  .js .r[data-animate="fade-in"].is-in { opacity: 1; transition: opacity 1s ease; animation: none; }
}

/* pulsanti del tema con colori dal contenuto */
.btn--mkdf {
  padding: 15px 28px; border: .8px solid var(--b-bc, #000); background: var(--b-bg, transparent); color: var(--b-c, #000);
  font: 400 12px/24px var(--font-head); letter-spacing: 2.4px; text-transform: uppercase;
}
.btn--mkdf:hover, .btn--mkdf:focus-visible { background: var(--b-hbg, #000); color: var(--b-hc, #fff); border-color: var(--b-hbc, var(--b-bc, #000)); }
.btn--small { padding: 10px 22px; }
.btn--mkdf svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* galleria di immagini con lightbox */
.gal { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 50px; }
.gal--2 { --cols: 2; } .gal--3 { --cols: 3; } .gal--4 { --cols: 4; } .gal--5 { --cols: 5; } .gal--6 { --cols: 6; }
.gal__item { display: block; overflow: hidden; }
.gal__item img { width: 100%; transition: transform .4s; }
.gal--square .gal__item img { aspect-ratio: 1; object-fit: cover; }
.gal__item:hover img { transform: scale(1.04); }
/* colonne come la griglia del tema Quart: 6 → 5 fino a 1440px, → 4 fino a 1280px */
@media (max-width: 1440px) { .gal--6 { --cols: 5; } }
@media (max-width: 1280px) { .gal--6, .gal--5 { --cols: 4; } }
@media (max-width: 1024px) { .gal { gap: 30px; } .gal--4, .gal--5, .gal--6 { --cols: 3; } }
@media (max-width: 680px) { .gal { gap: 15px; } .gal--3, .gal--4, .gal--5, .gal--6 { --cols: 2; } }

/* carosello immagini (solo mobile nell'originale) */
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__slide img { width: 100%; }

/* pulsante video (apre il video in sovrimpressione) */
.video-btn { display: inline-flex; align-items: center; height: 63px; color: #fff; transition: transform .3s, color .3s; }
.video-btn svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.video-btn svg path { fill: currentColor; stroke: none; }
.video-btn:hover { color: var(--red); transform: scale(1.08); }
.c__in:has(> .video-btn) { display: flex; align-items: center; justify-content: center; }
.video-dialog { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: #000; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .9); }
.video-dialog video { display: block; width: 100%; max-height: 85vh; }
.video-dialog__close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; }
.video-dialog__close svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.video-dialog[open] { overflow: visible; }

/* scheda con icona "vuota" (icona dripicons non scelta): l'originale lascia comunque 23px */
.iwt__icon:empty { display: block; height: 23px; }

/* fisarmonica (mkdf_accordion, stile "boxed" numerato; misure dall'originale) */
.acc { counter-reset: acc; }
.acc--white { color: #fff; }
.acc__item { counter-increment: acc; }
.acc__item + .acc__item { margin-top: 35px; }
.acc__item summary { list-style: none; cursor: pointer; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__title {
  position: relative; margin: 0 0 0 70px; padding: 7px 50px 7px 0; border-bottom: 1px solid currentColor;
  font: 400 27px/1.185 var(--font-head); letter-spacing: .02em; color: inherit;
}
.acc__title::before {
  content: counter(acc, decimal-leading-zero); position: absolute; left: -70px; top: 50%; transform: translateY(-50%);
  font-size: 25px;
}
.acc__title::after {                       /* + / – sottili come l'icona ElegantIcons */
  content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.acc__item[open] .acc__title::after { background-size: 100% 1.5px, 0 0; }
.acc__body { margin: 0 96px 0 70px; padding: 21px 0 6px; font-size: 16px; line-height: 1.43; font-weight: 300; }
.acc__body .txt p { margin: 0; }
@media (max-width: 768px) {
  .acc__title { font-size: 20px; margin-left: 45px; }
  .acc__title::before { left: -45px; font-size: 18px; }
  .acc__body { margin: 0 0 0 45px; }
}

/* testata pagine interne: titolo centrato (tema "centered type") */
.title-area__inner { text-align: center; }
.list-head--privacy { padding: 44px 0 44px; }   /* testata alta 150px come l'originale */
/* pagine senza WPBakery (privacy VTO): margini del tema per titoli e paragrafi */
.wpc > h1, .wpc > h2, .wpc > h3, .wpc > h4, .wpc > h5, .wpc > h6 { margin: 25px auto; }
.wpc > p { margin: 10px auto; }
.wpc > h1, .wpc > h2, .wpc > h3, .wpc > h4, .wpc > h5, .wpc > h6, .wpc > p { width: var(--grid); max-width: calc(100% - 40px); }

.wpc { padding: 20px 0; }   /* come il CSS aggiuntivo dell'originale: 20px sopra e sotto il contenuto… */
.wpc--nob { padding-bottom: 0; }   /* …tranne nelle pagine dove uno script dell'originale li toglieva */

/* modulo contatti come il CF7 dell'originale: campi uno sotto l'altro, sottolineati, segnaposto in maiuscolo */
.cform--cpk .field input[type="text"], .cform--cpk .field input[type="tel"], .cform--cpk .field input[type="email"], .cform--cpk .field textarea {
  margin: 0 0 25px; padding: 15px 0 5px; border: 0; border-bottom: .8px solid #c2c2c2; font: 300 15px/30px var(--font);   /* campi alti 51px come CF7 */
}
.cform--cpk .field textarea { display: block; min-height: 51px; height: 51px; resize: vertical; }
.cform--cpk ::placeholder { color: #000; font-style: italic; opacity: 1; }
.cform--cpk .check { font-size: 16px; align-items: center; }
.cform--cpk .check a { text-decoration: none; }
.cform--cpk .check a:hover { text-decoration: underline; }
.cform--cpk .field__error { margin: -20px 0 12px; }
.cform--cpk .cform__privacy .field__error { margin: 6px 0 12px; }   /* la casella privacy non ha il margine sotto dei campi: niente margine negativo */
.cform__btn { margin-top: 45px; padding: 16px 42px 16px 53px; }
.cform--cpk .cform__submit { margin-top: 23px; }   /* l'originale ha un paragrafo vuoto (23px) prima del pulsante */

/* le righe a tutta larghezza di WPBakery sporgono di 15px: nessuno scorrimento orizzontale */
main { overflow-x: clip; }

/* elenchi nei testi delle pagine (privacy policy): come il tema, numeri e punti "dentro" il testo */
.wpc .txt ol, .wpc .txt ul { list-style-position: inside; padding-left: 0; margin: 15px 0 0; letter-spacing: normal; }
.wpc .txt li ol, .wpc .txt li ul { padding-left: 15px; margin: 0; }
.wpc .txt li ol { list-style-type: lower-alpha; }
.wpc .txt ul { list-style-type: square; }
.wpc .txt li > p { margin: 10px 0; }
.wpc .txt li > p:last-child { margin-bottom: 0; }
.wpc--grid { width: var(--grid); max-width: calc(100% - 40px); margin: 0 auto; }
