/* ============================================================================
   OUTLINE DIGITAL — FOGLIO DI STILE UNICO
   Sostituisce: outline-modern.css, outline-refine.css, outline-responsive.css,
   footer-mobile-fix.css, cookie-notice-css-front.min.css e i blocchi <style>
   duplicati dentro le pagine.

   Ordine del file:
     1. Font
     2. Token
     3. Base e accessibilita'
     4. Header e navigazione (ritocchi al tema)
     5. Hero della home (componente nuovo, autonomo)
     6. Hero delle pagine interne
     7. Blocchi servizio (.servizio-section)
     8. Componenti editoriali (.od-*)
     9. Footer
    10. Banner cookie
    11. Form
    12. Responsive e preferenze utente
   ========================================================================= */

/* ---------------------------------------------------------------- 1. FONT */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/od/pjs-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------- 2. TOKEN */

:root {
  /* Variabili del tema. Prima arrivavano da un blocco <style> ripetuto in
     ogni pagina e generato da WordPress: qui stanno in un posto solo. */
  --main-header-width-md: 1320px;
  --od-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
             system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-primary: var(--od-font);
  --font-heading: var(--od-font);

  /* Marchio */
  --od-green: #81d742;
  --od-green-hi: #b8ff0c;
  --od-green-deep: #5fa325;
  --od-ink: #050708;

  --od-grad-brand: linear-gradient(135deg, #81d742 0%, #b8ff0c 100%);

  /* Superfici: valori del tema scuro, ridefiniti sotto per il chiaro */
  --od-surface: rgba(255, 255, 255, .04);
  --od-surface-hi: rgba(255, 255, 255, .07);
  --od-border: rgba(255, 255, 255, .10);
  --od-border-hi: rgba(255, 255, 255, .20);
  --od-text: rgba(255, 255, 255, .92);
  --od-text-soft: rgba(255, 255, 255, .62);
  --od-panel: #101413;

  /* Forma */
  --od-r-pill: 999px;
  --od-r-sm: 10px;
  --od-r-md: 14px;
  --od-r-lg: 20px;
  --od-r-xl: 28px;

  /* Movimento */
  --od-ease: cubic-bezier(.2, .7, .15, 1);

  /* Ritmo verticale delle sezioni */
  --od-section-y: clamp(4rem, 9vw, 8rem);
  --od-gutter: clamp(1.25rem, 5vw, 3rem);
  --od-maxw: 1240px;
}

/* Palette del tema. Il chiaro e' definito su :root perche' il tema lo usa come
   base; lo scuro arriva subito dopo ed e' il predefinito del sito. */
:root,
body[data-theme="light"] {
  --color-primary: #81d742;
  --color-contrast-higher: hsl(0, 0%, 0%);
  --color-contrast-high: hsl(0, 0%, 17%);
  --color-contrast-medium: hsl(0, 0%, 46%);
  --color-contrast-low: hsl(0, 0%, 91%);
  --color-contrast-lower: hsl(0, 0%, 97%);
  --color-bg: hsl(0, 0%, 100%);
}
:root,
body[data-theme="dark"] {
  --color-primary: #81d742;
  --color-contrast-higher: hsl(0, 100%, 99%);
  --color-contrast-high: hsl(0, 0%, 81%);
  --color-contrast-medium: hsl(0, 0%, 57%);
  --color-contrast-low: hsl(0, 0%, 22%);
  --color-contrast-lower: hsl(0, 0%, 15%);
  --color-bg: hsl(0, 0%, 11%);
}
body[data-theme="light"] .ms-footer { background-color: #f7f7f7; }
body[data-theme="dark"] .ms-footer { background-color: hsl(0, 0%, 15%); }

.main-header__logo a,
.main-header__logo svg,
.main-header__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 35px;
}
@media (max-width: 767px) {
  .main-header__logo a,
  .main-header__logo svg,
  .main-header__logo img { max-height: 30px; }
}

[data-theme="light"] {
  --od-surface: rgba(10, 13, 12, .035);
  --od-surface-hi: rgba(10, 13, 12, .06);
  --od-border: rgba(10, 13, 12, .12);
  --od-border-hi: rgba(10, 13, 12, .22);
  --od-text: rgba(9, 12, 11, .92);
  --od-text-soft: rgba(9, 12, 11, .60);
  --od-panel: #f4f6f4;
}

/* ------------------------------------------- 3. BASE E ACCESSIBILITA' --- */

html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

body {
  font-family: var(--od-font);
  -webkit-tap-highlight-color: rgba(129, 215, 66, .25);
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
  font-synthesis: weight style;
}

img, video, iframe, svg, canvas, picture {
  max-width: 100%;
  height: auto;
}

::selection { background: var(--od-green); color: var(--od-ink); }

/* Il tema azzera l'outline sui pulsanti: qui il selettore ha specificita'
   reale, cosi' il focus da tastiera resta sempre visibile. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--od-green-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Salta al contenuto: visibile solo con il focus da tastiera. */
.od-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--od-green);
  color: var(--od-ink);
  font-weight: 700;
  border-radius: 0 0 var(--od-r-md) 0;
}
.od-skip:focus { left: 0; }

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: rgba(0, 0, 0, .04); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--od-green) 0%, var(--od-green-deep) 100%);
    border-radius: 999px;
  }
}

/* Barra di avanzamento della lettura (il nodo lo crea od.js). */
.od-scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--od-grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 9999;
  pointer-events: none;
}

/* ------------------------------------- 4. HEADER E NAVIGAZIONE --------- */

/* Nessuna sottolineatura aggiunta qui: il tema usa gia' a::after con
   content: attr(title) per la propria animazione delle voci. Sovrascriverne
   sfondo e altezza produceva un rettangolo verde con dentro il testo
   duplicato. Si tocca solo il colore della voce attiva. */
.main-header__nav .navbar-nav > li.current-menu-item > a { color: var(--od-green); }

/* Voce "Ticket": e' un'azione, non una pagina del sito. */
.menu-item-ticket > a {
  padding: 7px 16px !important;
  border: 1px solid var(--od-border-hi);
  border-radius: var(--od-r-pill);
}
.menu-item-ticket > a::after { display: none !important; }
.menu-item-ticket > a:hover {
  background: rgba(129, 215, 66, .12);
  border-color: rgba(129, 215, 66, .5);
  color: var(--od-green);
}

/* ----------------------------------------- 5. HERO DELLA HOME ---------- */
/* Componente autonomo: non dipende da Swiper, jarallax, GSAP o jQuery.
   Le slide si sovrappongono e passano in dissolvenza, quindi non esistono
   posizioni intermedie in cui il carosello puo' "incastrarsi". */

.odh {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #05070a;
  isolation: isolate;
}

.odh__stage {
  position: absolute;
  inset: 0;
}

.odh__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--od-ease), visibility 0s linear .7s;
}
.odh__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s var(--od-ease), visibility 0s;
}

.odh__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Leggero zoom: nasconde i bordi durante il ricampionamento del video. */
  transform: scale(1.04);
  transition: transform 8s linear;
}
.odh__slide.is-active .odh__media { transform: scale(1.10); }

/* Velo: garantisce il contrasto del testo su qualunque fotogramma. */
.odh__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 8, .88) 0%, rgba(3, 6, 8, .55) 42%, rgba(3, 6, 8, .18) 75%),
    linear-gradient(0deg, rgba(3, 6, 8, .80) 0%, transparent 45%);
}

.odh__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--od-gutter) 13rem;
  max-width: 1500px;
  margin: 0 auto;
}

.odh__inner {
  /* Larghezza della colonna di testo: il titolo respira e il pulsante non
     va a capo. Il paragrafo si stringe da solo con la sua misura. */
  max-width: min(640px, 52vw);
  transform: translateY(22px);
  opacity: 0;
  transition: transform .8s var(--od-ease) .12s, opacity .8s var(--od-ease) .12s;
}
.odh__slide.is-active .odh__inner {
  transform: none;
  opacity: 1;
}

.odh__eyebrow {
  display: block;
  margin: 0 0 1rem;
  font-size: clamp(.78rem, 1.5vw, .95rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--od-green-hi);
}

.odh__title {
  margin: 0;
  font-size: clamp(2.9rem, 6.4vw, 6.5rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}

.odh__lead {
  margin: 1.5rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .80);
}

.odh__cta {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin-top: 2.25rem;
  padding: 14px 16px 14px 28px;
  background: var(--od-grad-brand);
  color: var(--od-ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-decoration: none;
  border-radius: var(--od-r-pill);
  width: fit-content;
  transition: transform .25s var(--od-ease), box-shadow .25s var(--od-ease);
}
.odh__cta:hover,
.odh__cta:focus-visible {
  color: var(--od-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(129, 215, 66, .8);
}
.odh__cta svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  background: rgba(5, 7, 8, .16);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--od-ease);
}
.odh__cta:hover svg { transform: translateX(3px); }

/* --- Barra della scelta ------------------------------------------------ */
/* Sostituisce i puntini del carosello: le sei opzioni sono sempre leggibili
   e cliccabili, cosi' la scelta e' esplicita e non affidata all'autoplay. */

.odh__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 var(--od-gutter) 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.odh__tabs {
  display: flex;
  gap: .5rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.odh__tabs::-webkit-scrollbar { display: none; }

.odh__tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  padding: 9px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--od-r-pill);
  color: rgba(255, 255, 255, .78);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s var(--od-ease), background .25s var(--od-ease),
              border-color .25s var(--od-ease);
}
.odh__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.odh__tab[aria-selected="true"] {
  color: var(--od-ink);
  background: var(--od-green-hi);
  border-color: var(--od-green-hi);
}
.odh__tab-n {
  font-size: .72rem;
  font-weight: 700;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}

.odh__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.odh__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .25s var(--od-ease), border-color .25s var(--od-ease),
              color .25s var(--od-ease);
}
.odh__arrow:hover {
  background: var(--od-green);
  border-color: var(--od-green);
  color: var(--od-ink);
}
.odh__arrow svg {
  width: 17px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.odh__arrow--prev svg { transform: scaleX(-1); }

.odh__count {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.odh__count b { color: #fff; font-weight: 700; }

.odh__track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .18);
  border-radius: 2px;
  overflow: hidden;
}
.odh__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--od-green-hi);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.odh.is-playing .odh__bar {
  animation: odh-bar var(--odh-delay, 7000ms) linear forwards;
}
.odh.is-paused .odh__bar { animation-play-state: paused; }
@keyframes odh-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Suggerimento di scorrimento, sparisce alla prima interazione. */
.odh__hint {
  position: absolute;
  right: var(--od-gutter);
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  transition: opacity .4s var(--od-ease);
}
.odh.is-touched .odh__hint { opacity: 0; }

/* Senza JavaScript le slide restano tutte leggibili in colonna. */
.odh--nojs .odh__slide {
  position: relative;
  opacity: 1;
  visibility: visible;
  min-height: 100svh;
}
.odh--nojs .odh__inner { transform: none; opacity: 1; }
.odh--nojs { height: auto; }

@media (max-width: 1024px) {
  .odh__body {
    padding: 7rem var(--od-gutter) 14rem;
    justify-content: flex-end;
  }
  .odh__inner { max-width: none; }
  .odh__scrim {
    background:
      linear-gradient(0deg, rgba(3, 6, 8, .90) 8%, rgba(3, 6, 8, .45) 55%, rgba(3, 6, 8, .25) 100%);
  }
}

@media (max-width: 575px) {
  .odh__body { padding: 6rem 1.35rem 15rem; }
  .odh__title { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .odh__lead { font-size: 1.02rem; margin-top: 1.1rem; }
  .odh__cta { margin-top: 1.75rem; padding: 12px 14px 12px 24px; font-size: .95rem; }
  .odh__rail { padding: 0 1.35rem 1.5rem; }
  .odh__hint { display: none; }
  .odh__tabs { margin-bottom: .9rem; }
  .odh__tab { padding: 8px 15px; font-size: .82rem; }
  .odh__arrow { width: 42px; height: 42px; }
}

/* ------------------------------------ 6. HERO DELLE PAGINE INTERNE ----- */

/* Le regole erano ripetute dentro ogni pagina, agganciate all'id numerico
   dell'elemento Elementor. Qui valgono una volta sola per tutte le pagine. */
.ms-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  overflow: hidden;
}
.ms-hero .ms-hc {
  position: relative;
  z-index: 2;
  max-width: 1294px;
  padding: 2rem;
  text-align: center;
}
.ms-hero-title {
  margin: 0 0 1rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--od-green-hi);
}
.ms-hero-subtitle {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}

/* Il tema prevede un velo a z-index -1 che il markup esportato non contiene.
   Qui si disegna in CSS: sopra all'immagine, sotto al contenuto. Serve perche'
   due delle foto sono quasi bianche e il testo bianco ci sparisce sopra. */
.ms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, .64) 0%, rgba(5, 7, 8, .40) 42%, rgba(5, 7, 8, .62) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(5, 7, 8, .38) 100%);
}
[data-theme="light"] .ms-hero::before {
  background: linear-gradient(180deg, rgba(5, 7, 8, .54) 0%, rgba(5, 7, 8, .34) 45%, rgba(5, 7, 8, .52) 100%);
}

/* Video di sfondo nativo, al posto di jarallax. */
.ms-hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-hero-subtitle { color: rgba(245, 247, 240, .95); }

/* --------------------------------------- 7. BLOCCHI SERVIZIO ----------- */

/* I blocchi servizio escono dalla colonna di Elementor e occupano tutta la
   larghezza della finestra. Nel markup il contenitore e' un div vuoto e le
   sezioni gli stanno accanto: la regola va sulle sezioni. */
.servizio-section {
  position: relative;
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid var(--od-border);
}
.servizio-section:first-of-type { border-top: 0; }

.servizio-section .content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(78vh, 720px);
  max-width: 1600px;
  margin: 0 auto;
}

.servizio-section .text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  grid-row: 1;
  grid-column: 1;
}
.servizio-section.left-image .text-content { grid-column: 2; }

.servizio-section .image-content {
  position: relative;
  grid-row: 1;
  grid-column: 2;
  background-size: cover;
  background-position: center;
  filter: saturate(.94);
  min-height: 320px;
}
.servizio-section.left-image .image-content { grid-column: 1; }

/* Velo laterale: lega fra loro immagini con temperature molto diverse e
   ammorbidisce lo stacco netto con la colonna del testo. */
.servizio-section .image-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 13, 12, .55) 0%, rgba(10, 13, 12, .16) 22%, transparent 55%);
}
.servizio-section.left-image .image-content::after {
  background: linear-gradient(270deg, rgba(10, 13, 12, .55) 0%, rgba(10, 13, 12, .16) 22%, transparent 55%);
}
[data-theme="light"] .servizio-section .image-content::after { opacity: .35; }

/* Alcune copertine sono grafiche con del testo dentro: ritagliarle a pieno
   riquadro le taglia a meta'. Qui si vedono per intero, su fondo neutro. */
.servizio-section .image-content--intera {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--od-panel);
  background-origin: content-box;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.servizio-section .image-content--intera::after { background: none !important; }

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  margin-bottom: 1.25rem;
  padding: 6px 14px;
  background: rgba(129, 215, 66, .10);
  border: 1px solid rgba(129, 215, 66, .28);
  border-radius: var(--od-r-pill);
  color: var(--od-green);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.service-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--od-green);
  border-radius: 50%;
}

.service-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.service-description {
  margin: 0 0 1.6rem;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--od-text-soft);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 6px 14px 6px 11px;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-pill);
  font-size: .86rem;
  font-weight: 500;
}
.feature-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: var(--od-green);
  border-radius: 50%;
  /* Spunta disegnata con una maschera: nessuna icon font da scaricare. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  color: var(--od-green);
  font-weight: 700;
  text-decoration: none;
}
.cta-link:hover { color: var(--od-green-hi); }
.cta-link .arrow {
  display: inline-block;
  color: var(--od-green-hi);
  transition: transform .25s var(--od-ease);
}
.cta-link:hover .arrow { transform: translateX(4px); }

.image-overlay {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 6px 14px;
  background: rgba(5, 7, 8, .75);
  border-radius: var(--od-r-pill);
  color: var(--od-green);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
}

/* Marchi dei clienti nella pagina Partner. Prima ogni scheda portava con se'
   un colore diverso scritto in linea (sette palette in una pagina sola):
   ora il colore lo mette il sito, il logo resta del cliente. */
.partner-logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 54px;
  margin: 0 0 1.25rem;
  object-fit: contain;
  object-position: left center;
}
[data-theme="dark"] .partner-logo {
  padding: 10px 14px;
  background: rgba(255, 255, 255, .92);
  border-radius: var(--od-r-md);
  max-height: 64px;
}
.partner-logo--mark {
  max-width: 88px;
  max-height: 88px;
}
[data-theme="dark"] .partner-logo--mark {
  padding: 8px;
  max-height: 88px;
}

.partner-note {
  margin: 0 0 1.5rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--od-text-soft);
  padding-left: .9rem;
  border-left: 2px solid rgba(129, 215, 66, .45);
}

.benefit-tag {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
}
.benefit-tag span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 5px 12px;
  background: rgba(129, 215, 66, .08);
  border: 1px solid rgba(129, 215, 66, .22);
  border-radius: var(--od-r-pill);
  color: var(--od-green);
  font-weight: 600;
  font-size: .82rem;
}
.benefit-tag span::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@media (max-width: 1024px) {
  .servizio-section .content-wrapper {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .servizio-section .text-content,
  .servizio-section.left-image .text-content {
    grid-row: 2;
    grid-column: 1;
  }
  .servizio-section .image-content,
  .servizio-section.left-image .image-content {
    grid-row: 1;
    grid-column: 1;
    min-height: 46vw;
  }
  .servizio-section .image-content::after,
  .servizio-section.left-image .image-content::after {
    background: linear-gradient(180deg, transparent 55%, rgba(10, 13, 12, .45) 100%);
  }
}

@media (max-width: 575px) {
  .servizio-section .text-content { padding: 2.25rem 1.35rem 2.75rem; }
  .servizio-section .service-title { line-height: 1.12; }
  .servizio-section .service-description { margin-bottom: 1.5rem; }
  .feature-list { gap: .35rem; }
  .image-overlay { font-size: .7rem; padding: 5px 12px; left: 1rem; bottom: 1rem; }
  .service-tag { font-size: .7rem; padding: 5px 11px; }
  .benefit-tag span { font-size: .8rem; }
}

/* ------------------------- 7b. BLOCCHI "PROCESSO" (pagine servizio) ---- */
/* Prima ogni pagina portava con se' la propria copia di questi stili dentro
   un <style> in linea, con misure diverse l'una dall'altra. Qui la
   definizione e' una sola: le pagine servizio si somigliano davvero. */

.processo-sviluppo-container {
  max-width: var(--od-maxw);
  margin: 0 auto;
  padding: var(--od-section-y) var(--od-gutter);
}

.processo-sviluppo-container .main-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.intro-text {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 70ch;
}
.intro-text p {
  margin: 0;
  text-align: left;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  color: var(--od-text-soft);
}

.processo-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--od-border);
}
.processo-section:first-of-type { border-top: 0; padding-top: 0; }
.processo-section.reverse .processo-content { order: 2; }

.processo-content { min-width: 0; }

.numero-fase {
  display: block;
  margin-bottom: .75rem;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--od-green);
}

.processo-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.processo-content > p {
  margin: 0 0 1.5rem;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--od-text-soft);
}

.processo-features {
  display: grid;
  gap: .6rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.processo-features li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.6;
}
.processo-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 15px;
  height: 15px;
  background: var(--od-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Pannello grafico al posto delle foto di repertorio caricate da Unsplash:
   quindici richieste a un dominio esterno, sostituite da CSS. */
.processo-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-xl);
  background:
    repeating-linear-gradient(135deg, rgba(129, 215, 66, .07) 0 2px, transparent 2px 14px),
    radial-gradient(120% 100% at 15% 0%, rgba(129, 215, 66, .22) 0%, transparent 62%),
    linear-gradient(160deg, #121816 0%, #0a0d0c 100%);
}
[data-theme="light"] .processo-image {
  background:
    repeating-linear-gradient(135deg, rgba(84, 156, 36, .09) 0 2px, transparent 2px 14px),
    radial-gradient(120% 100% at 15% 0%, rgba(129, 215, 66, .28) 0%, transparent 62%),
    linear-gradient(160deg, #f2f6ef 0%, #e6ece2 100%);
}
.processo-image::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -28%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(129, 215, 66, .28);
  border-radius: 50%;
}

.processo-image .image-overlay {
  position: static;
  padding: 0;
  background: none;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  color: var(--od-green-hi);
}
[data-theme="light"] .processo-image .image-overlay { color: var(--od-green-deep); }

@media (max-width: 900px) {
  .processo-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .processo-section.reverse .processo-content { order: 0; }
  .processo-image { order: -1; min-height: 180px; }
}

/* Il vecchio CSS in linea nascondeva questi blocchi con opacity:0 in attesa
   di un'animazione: se non partiva, la pagina restava vuota. Ora la classe
   e' solo un aggancio, senza effetti sulla visibilita'. */
.fade-in { opacity: 1; }

/* --------------------------------- 8. COMPONENTI EDITORIALI (.od-*) ---- */

.od-section {
  padding: var(--od-section-y) var(--od-gutter);
}
.od-section--sunken { background: var(--od-surface); }
.od-wrap {
  max-width: var(--od-maxw);
  margin: 0 auto;
}
.od-wrap--narrow { max-width: 780px; }

.od-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: 6px 14px;
  background: rgba(129, 215, 66, .10);
  border: 1px solid rgba(129, 215, 66, .25);
  border-radius: var(--od-r-pill);
  color: var(--od-green);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.od-h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.od-h3 {
  margin: 0 0 .6rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.od-lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--od-text-soft);
}
.od-section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Titolo a sinistra, testo a destra: il taglio editoriale che la pagina
   "Chi siamo" gia' usava, qui reso una regola sola. */
.od-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
}
@media (max-width: 860px) {
  .od-split { grid-template-columns: 1fr; }
}
.od-flow > * + * { margin-top: 1.25rem; }
.od-mt { margin-top: 2rem; }

.od-lead a {
  color: var(--od-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Anteprima video: e' un collegamento a YouTube, non un iframe. Nessuno
   script di terze parti e nessun cookie finche' non si clicca. */
.od-video {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-xl);
  line-height: 0;
}
.od-video img {
  width: 100%;
  height: auto;
  transition: transform .5s var(--od-ease);
}
.od-video:hover img { transform: scale(1.02); }
.od-video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: var(--od-grad-brand);
  border-radius: 50%;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .7);
  transition: transform .25s var(--od-ease);
}
.od-video__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 20px solid var(--od-ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.od-video:hover .od-video__play { transform: scale(1.08); }

.od-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.od-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.od-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-lg);
  transition: border-color .25s var(--od-ease), transform .25s var(--od-ease);
}
.od-card:hover {
  border-color: rgba(129, 215, 66, .38);
  transform: translateY(-3px);
}
.od-card p {
  margin: 0;
  color: var(--od-text-soft);
  line-height: 1.65;
}
.od-card--pad { padding: clamp(1.75rem, 3vw, 2.5rem); }
.od-card .service-tag { margin-bottom: 1rem; }
.od-card .cta-link { margin-top: 1.25rem; }
.od-card > * + * { margin-top: .9rem; }
.od-mt-s { margin-top: .9rem; }

.od-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  background: rgba(129, 215, 66, .12);
  border-radius: var(--od-r-md);
  color: var(--od-green);
}
.od-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Passaggi numerati del metodo di lavoro. */
.od-steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  counter-reset: od-step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.od-step {
  position: relative;
  padding: 2.25rem 1.5rem 1.75rem;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-lg);
  counter-increment: od-step;
}
.od-step::before {
  content: "0" counter(od-step);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(129, 215, 66, .22);
}
.od-step h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.od-step p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.65;
  color: var(--od-text-soft);
}

/* Numeri e prove. */
.od-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.od-stat {
  padding: 1.5rem;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-lg);
}
.od-stat b {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--od-green);
}
.od-stat span {
  display: block;
  margin-top: .5rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--od-text-soft);
}

/* Domande frequenti: <details> nativo, nessuno script obbligatorio. */
.od-faq { display: grid; gap: .75rem; }
.od-faq__item {
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-md);
  overflow: hidden;
}
.od-faq__item[open] { border-color: rgba(129, 215, 66, .32); }
.od-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
}
.od-faq__q::-webkit-details-marker { display: none; }
.od-faq__q::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: currentColor;
  color: var(--od-green);
  transition: transform .25s var(--od-ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.od-faq__item[open] .od-faq__q::after { transform: rotate(135deg); }
.od-faq__a {
  padding: 0 1.35rem 1.35rem;
  margin: 0;
  max-width: 70ch;
  line-height: 1.7;
  color: var(--od-text-soft);
}

/* Fascia di richiamo a fine pagina. */
.od-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--od-surface-hi);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-xl);
}
.od-band p {
  margin: .5rem 0 0;
  max-width: 46ch;
  color: var(--od-text-soft);
  line-height: 1.65;
}

.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--od-r-pill);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--od-ease);
}
.od-btn--primary { background: var(--od-grad-brand); color: var(--od-ink); }
.od-btn--primary:hover { color: var(--od-ink); transform: translateY(-2px); }
.od-btn--ghost {
  background: transparent;
  color: var(--od-green);
  border: 1.5px solid currentColor;
}
.od-btn--ghost:hover { background: rgba(129, 215, 66, .08); }

/* Comparsa progressiva: senza JS il contenuto resta visibile. */
.od-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--od-ease), transform .6s var(--od-ease);
}
.od-reveal.is-in { opacity: 1; transform: none; }

/* Le schede dell'indice del magazine: senza Isotope le colonne non si
   allineavano piu' fra loro, perche' ogni scheda era alta quanto il suo
   testo. Qui si allungano tutte fino al fondo della riga. */
.ms-posts--card .grid-item { display: flex; }
.ms-posts--card .grid-item > a:first-child { display: block; }
.ms-posts--card .grid-item .post-meta-cont {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ms-posts--card .grid-item .post-meta-footer { margin-top: auto; }
.ms-posts--card .grid-item > *:not(:first-child) { flex: 1; }

/* Griglia semplice a due o tre colonne, per non caricare Bootstrap. */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
[class*="col-sm-"], [class*="col-md-"], [class*="col-lg-"] {
  padding: 0 12px;
  width: 100%;
}
@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.3333%; }
}
@media (min-width: 1025px) {
  .col-lg-4 { width: 33.3333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-3 { width: 25%; }
}

/* ------------------------------------------- 8b. MAGAZINE ------------- */
/* L'indice del magazine era la griglia del tema WordPress: tre colonne
   uguali, un'immagine, e sotto la stessa faccia ripetuta sei volte caricata
   da Gravatar (trentasei richieste a un dominio esterno). Qui c'e' un pezzo
   in evidenza e una griglia di schede, senza dipendenze esterne. */

.od-mag-hero .ms-hero__video { display: none; }
.od-mag-hero {
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(129, 215, 66, .18) 0%, transparent 60%),
    linear-gradient(180deg, #0d1210 0%, #0a0d0c 100%);
}
.od-mag-hero::before { background: none; }

.od-mag-cat {
  display: inline-block;
  margin-bottom: .85rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--od-green);
}

.od-mag-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: .85rem;
  color: var(--od-text-soft);
}
.od-mag-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

/* --- Pezzo in evidenza --- */
.od-mag-hero-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-xl);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s var(--od-ease), transform .25s var(--od-ease);
}
.od-mag-hero-card:hover {
  border-color: rgba(129, 215, 66, .4);
  transform: translateY(-3px);
}
.od-mag-hero-card__media { overflow: hidden; }
.od-mag-hero-card__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform .6s var(--od-ease);
}
.od-mag-hero-card:hover .od-mag-hero-card__media img { transform: scale(1.04); }
.od-mag-hero-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.od-mag-hero-card__title {
  margin: 0 0 .9rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.od-mag-hero-card__excerpt {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--od-text-soft);
}
.od-mag-hero-card__go {
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--od-green);
}
.od-mag-hero-card__go span {
  display: inline-block;
  transition: transform .25s var(--od-ease);
}
.od-mag-hero-card:hover .od-mag-hero-card__go span { transform: translateX(4px); }

/* --- Griglia dell'archivio --- */
.od-mag-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.od-mag-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s var(--od-ease), transform .25s var(--od-ease);
}
.od-mag-card:hover {
  border-color: rgba(129, 215, 66, .4);
  transform: translateY(-3px);
}
.od-mag-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--od-panel);
}
.od-mag-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--od-ease);
}
.od-mag-card:hover .od-mag-card__media img { transform: scale(1.04); }
.od-mag-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.od-mag-card__title {
  margin: 0 0 .7rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.od-mag-card__excerpt {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--od-text-soft);
}

/* La scheda finale non e' un articolo: e' un invito a scriverci. */
.od-mag-card--invito {
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(129, 215, 66, .16) 0%, transparent 65%),
    var(--od-surface-hi);
  border-style: dashed;
}
.od-mag-card--invito:hover { transform: none; }
.od-mag-card--invito .od-btn { margin-top: 1.5rem; align-self: flex-start; }

@media (max-width: 860px) {
  .od-mag-hero-card { grid-template-columns: 1fr; }
  .od-mag-hero-card__media img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ------------------------------------------ 8c. ARTICOLO ------------- */
/* Impaginazione degli articoli del magazine. Colonna di lettura stretta,
   indice laterale su schermi larghi, blocchi editoriali riusabili. */

.od-art {
  --od-art-misura: 68ch;
  padding: clamp(2rem, 5vw, 4rem) var(--od-gutter) var(--od-section-y);
}
.od-art__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--od-maxw);
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .od-art__wrap { grid-template-columns: minmax(0, 1fr) 240px; }
}

.od-art__briciole {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--od-text-soft);
}
.od-art__briciole a { color: inherit; text-decoration: none; }
.od-art__briciole a:hover { color: var(--od-green); }
.od-art__briciole li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }

.od-art__titolo {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.od-art__sommario {
  margin: 0 0 1.5rem;
  max-width: var(--od-art-misura);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--od-text-soft);
}
.od-art__firma {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: 2rem;
  font-size: .88rem;
  color: var(--od-text-soft);
}
.od-art__firma b { color: var(--od-text); font-weight: 600; }
.od-art__firma i {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: .55;
}

.od-art__copertina {
  margin: 0 0 2.5rem;
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-xl);
  overflow: hidden;
  line-height: 0;
}
.od-art__copertina img { width: 100%; height: auto; display: block; }
.od-art__copertina figcaption {
  padding: .7rem 1.1rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--od-text-soft);
  background: var(--od-surface);
}
.od-art__copertina figcaption a { color: inherit; }

/* Risposta breve in apertura: e' il blocco che i motori con risposta
   generata citano piu' volentieri, e serve anche a chi ha fretta. */
.od-art__risposta {
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.5rem;
  max-width: var(--od-art-misura);
  background: rgba(129, 215, 66, .09);
  border: 1px solid rgba(129, 215, 66, .3);
  border-left-width: 4px;
  border-radius: 0 var(--od-r-md) var(--od-r-md) 0;
}
.od-art__risposta p { margin: 0; font-size: 1.05rem; line-height: 1.65; }
.od-art__risposta strong { color: var(--od-green); }

.od-art__corpo { max-width: var(--od-art-misura); }
.od-art__corpo > * + * { margin-top: 1.25rem; }
.od-art__corpo h2 {
  margin: 2.75rem 0 .25rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  scroll-margin-top: 100px;
}
.od-art__corpo h3 {
  margin: 2rem 0 .25rem;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  scroll-margin-top: 100px;
}
.od-art__corpo p { line-height: 1.75; }
.od-art__corpo a:not(.od-btn) {
  color: var(--od-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Il richiamo di servizio sta dentro il corpo: il pulsante non deve prendere
   lo stile dei collegamenti nel testo, o il verde finisce su verde. */
.od-art__corpo .od-btn--primary {
  color: var(--od-ink);
  text-decoration: none;
}
.od-art__corpo ul,
.od-art__corpo ol { padding-left: 1.3rem; display: grid; gap: .55rem; }
.od-art__corpo li { line-height: 1.7; }
.od-art__corpo li::marker { color: var(--od-green); }
.od-art__corpo strong { color: var(--od-text); font-weight: 700; }

.od-art__tabella { overflow-x: auto; }
.od-art__tabella table {
  min-width: 480px;
  border-collapse: collapse;
  font-size: .95rem;
}
.od-art__tabella th,
.od-art__tabella td {
  padding: .8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--od-border);
  vertical-align: top;
}
.od-art__tabella th {
  font-weight: 700;
  color: var(--od-green);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.od-art__nota {
  padding: 1.2rem 1.4rem;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-md);
}
.od-art__nota p { margin: 0; }
.od-art__nota p + p { margin-top: .8rem; }
.od-art__nota b { color: var(--od-green); }

/* Indice laterale */
.od-art__indice { align-self: start; }
@media (min-width: 1100px) {
  .od-art__indice { position: sticky; top: 110px; }
}
.od-art__indice h2 {
  margin: 0 0 .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--od-green);
}
.od-art__indice ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  border-left: 1px solid var(--od-border);
}
.od-art__indice a {
  display: block;
  padding-left: .9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--od-text-soft);
  text-decoration: none;
}
.od-art__indice a:hover { color: var(--od-green); border-left-color: var(--od-green); }

/* Richiamo di servizio dentro l'articolo */
.od-art__servizio {
  margin: 2.5rem 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(90% 130% at 15% 0%, rgba(129, 215, 66, .16) 0%, transparent 65%),
    var(--od-surface-hi);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-lg);
}
.od-art__servizio h2 {
  margin: 0 0 .6rem !important;
  font-size: 1.25rem !important;
}
.od-art__servizio p { margin: 0 0 1.25rem; color: var(--od-text-soft); }

/* Domande frequenti in coda all'articolo */
.od-art__faq { max-width: var(--od-art-misura); margin-top: 3rem; }
.od-art__faq > h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

/* Articoli correlati */
.od-art__correlati { margin-top: 3.5rem; }
.od-art__correlati > h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.od-art__correlati ul {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.od-art__correlati a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-md);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color .2s var(--od-ease), transform .2s var(--od-ease);
}
.od-art__correlati a:hover {
  border-color: rgba(129, 215, 66, .4);
  transform: translateY(-2px);
}
.od-art__correlati span {
  display: block;
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--od-green);
}

/* Elenco delle guide dentro le pagine di servizio. */
.od-guide {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.od-guida {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem 1.5rem;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--od-r-lg);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s var(--od-ease), transform .25s var(--od-ease);
}
.od-guida:hover {
  border-color: rgba(129, 215, 66, .4);
  transform: translateY(-3px);
}
.od-guida__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--od-green);
}
.od-guida__tit {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.od-guida__som {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--od-text-soft);
}

/* --------------------------------- 9. FOOTER ----------- */

/* Elenco dei collegamenti aggiunto al footer: aiuta la navigazione e
   distribuisce il valore dei link fra le pagine di servizio. */
.od-footer-nav {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  max-width: var(--od-maxw);
  margin: 0 auto;
  padding: 3rem var(--od-gutter);
  border-top: 1px solid var(--od-border);
}
.od-footer-nav h3 {
  margin: 0 0 1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--od-green);
}
.od-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.od-footer-nav a {
  color: var(--od-text-soft);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s var(--od-ease);
}
.od-footer-nav a:hover { color: var(--od-green); }
.od-footer-nav address {
  font-style: normal;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--od-text-soft);
}
.od-footer-nav address a {
  color: inherit;
  text-decoration: none;
}
.od-footer-nav address a:hover { color: var(--od-green); }

.od-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.od-footer-social .ms-s-i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: 50%;
  color: var(--od-text-soft);
  transition: color .2s var(--od-ease), border-color .2s var(--od-ease),
              background .2s var(--od-ease);
}
.od-footer-social .ms-s-i:hover {
  color: var(--od-green);
  border-color: rgba(129, 215, 66, .45);
  background: rgba(129, 215, 66, .10);
}
.od-footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Icone social in SVG inline: al posto di Font Awesome (oltre 100 KB di CSS
   piu' i file dei font) per quattro icone. */
.ms-s-i svg { width: 20px; height: 20px; fill: currentColor; }

/* Footer che si scopre: resta fermo dietro alla pagina, che gli passa sopra.
   La classe la mette od.js, che conosce l'altezza reale del footer. */
.od-footer-reveal .ms-main {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg, #1c1c1c);
}
.od-footer-reveal .ms-footer--template {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* Il tema rende il footer fisso su mobile via JS: dentro le webview
   (Instagram in primis) questo genera scatti durante lo scorrimento. */
@media (max-width: 768px) {
  html, body { overscroll-behavior-y: none; }
  .ms-footer {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    z-index: auto !important;
    transform: none !important;
    margin-top: auto;
  }
  .ms-main { margin-bottom: 0 !important; }
  .footer-container,
  .footer-container[data-parallax="on"] {
    position: relative !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* --------------------------------------------- 10. BANNER COOKIE ------- */
/* Stili completi: sostituiscono il CSS del plugin, che non viene piu' caricato. */

#cookie-notice {
  position: fixed;
  left: auto;
  right: 20px;
  bottom: 20px;
  z-index: 100000;
  max-width: 440px;
  background-color: rgba(16, 20, 19, .97);
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  box-shadow: 0 20px 60px -18px rgba(0, 0, 0, .7);
  text-align: left;
  overflow: hidden;
}
body[data-theme="light"] #cookie-notice {
  background-color: rgba(255, 255, 255, .98);
  color: rgba(9, 12, 11, .8);
  border-color: rgba(10, 13, 12, .14);
  box-shadow: 0 20px 60px -22px rgba(0, 0, 0, .28);
}
#cookie-notice.cookie-notice-hidden { display: none; }
#cookie-notice .cookie-notice-container { padding: 20px 22px; }
#cookie-notice #cn-notice-text { padding-right: 26px; }
#cookie-notice #cn-notice-text {
  display: block;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: inherit;
}
#cookie-notice #cn-notice-text a {
  color: var(--od-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cookie-notice .cn-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#cookie-notice .cn-button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
#cookie-notice #cn-accept-cookie {
  background-color: var(--od-green) !important;
  color: var(--od-ink) !important;
}
#cookie-notice #cn-refuse-cookie {
  background-color: transparent;
  color: inherit;
  border: 1px solid var(--od-border-hi);
}
#cookie-notice #cn-refuse-cookie:hover { background-color: var(--od-surface-hi); }
#cookie-notice .cn-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  cursor: pointer;
  opacity: .55;
}
#cookie-notice .cn-close-icon::before,
#cookie-notice .cn-close-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  background: currentColor;
}
#cookie-notice .cn-close-icon::before { transform: rotate(45deg); }
#cookie-notice .cn-close-icon::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  #cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  #cookie-notice .cookie-notice-container { padding: 16px 18px; }
}

/* -------------------------------------------------- 11. FORM ----------- */

.wpcf7-submit,
input[type="submit"],
button[type="submit"] {
  background: var(--od-grad-brand);
  color: var(--od-ink);
  border: 0;
  border-radius: var(--od-r-pill);
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--od-ease);
}
.wpcf7-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:hover { transform: translateY(-2px); }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.wpcf7-form-control:focus {
  border-color: var(--od-green);
  outline: none;
}

/* Tipografia dei blocchi di testo di Elementor: prima arrivava da una regola
   generica del tema, quindi cambiava a seconda di cosa era caricato. Qui e'
   dichiarata una volta e vale ovunque. */
.elementor-widget-text-editor {
  font-size: 1.05rem;
  line-height: 1.75;
}

.ms-contact-map iframe,
iframe[src*="google.com/maps"],
iframe[src*="maps.google"] {
  border-radius: 16px;
  border: 1px solid var(--od-border) !important;
  filter: saturate(.85) contrast(.96);
}

/* ------------------------- 12. RESPONSIVE E PREFERENZE UTENTE ---------- */

@media (max-width: 991px) {
  body { line-height: 1.65; }
  .ms-hero-title {
    font-size: clamp(.8rem, 2.2vw, 1rem) !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
  }
  .ms-hero-subtitle {
    font-size: clamp(2.2rem, 6vw, 3.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
  }
}

@media (max-width: 768px) {
  h1 br, h2 br, h3 br, .ms-hero-subtitle br { display: none; }
}

@media (max-width: 575px) {
  body { font-size: 16.2px; line-height: 1.7; }
  p, li { line-height: 1.7; }
  h1 { line-height: 1.1 !important; }
  h2 { line-height: 1.2 !important; }
  h3 { line-height: 1.25 !important; }
  p + p, p + ul, p + ol, ul + p, ol + p { margin-top: 1rem; }
  li + li { margin-top: .35rem; }

  .ms-hero-title {
    font-size: .8125rem !important;
    letter-spacing: .12em !important;
  }
  .ms-hero-subtitle {
    font-size: clamp(1.9rem, 8.2vw, 2.6rem) !important;
    line-height: 1.1 !important;
    word-break: break-word;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea,
  select { font-size: 16px !important; }

  .wpcf7-submit,
  input[type="submit"],
  button[type="submit"] { width: 100%; min-height: 52px; }
}

@media (max-width: 380px) {
  .ms-hero-subtitle { font-size: clamp(1.65rem, 7.6vw, 2.1rem) !important; }
}

/* Pagine di testo lungo (privacy): righe troppo larghe stancano la lettura. */
.page-id-privacy .ms-page-content p,
.page-id-privacy .ms-page-content li,
body[class*="page-id-"] .ms-custom-page > .elementor p,
body[class*="page-id-"] .ms-custom-page > .elementor li { max-width: 78ch; }

table { width: 100%; border-collapse: collapse; }
pre, code { white-space: pre-wrap; word-break: break-word; }

@media print {
  .cookie-notice-container,
  .od-scroll-progress,
  .odh__rail,
  .back-to-top { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .od-scroll-progress { display: none; }
  .od-reveal { opacity: 1; transform: none; }
  .odh__media { transform: none !important; transition: none; }
  .odh__inner { transform: none; opacity: 1; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
