/* O2e: sistema visivo. Gli stati iniziali delle animazioni valgono solo con html.o2e-motion:
   senza JavaScript o con "riduci movimento" tutto è già visibile nello stato finale. */

:root {
	--o2e-carta: var(--wp--preset--color--carta);
	--o2e-ink: var(--wp--preset--color--inchiostro);
	--o2e-pietra: var(--wp--preset--color--pietra);
	--o2e-arancio: var(--wp--preset--color--arancio);
	--o2e-linea: var(--wp--preset--color--linea);
	--o2e-arancio-testo: #A8530A; /* contrasto 4.77 su carta */
	--o2e-pietra-testo: #66635E;  /* contrasto 5.3 su carta */
	--o2e-corpo: #3D3B36;
	--o2e-gutter: 48px;
	--o2e-ease: cubic-bezier(.6, 0, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wp-site-blocks { padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > * { min-width: 0; }
.wp-site-blocks > .o2e-main { flex: 1 0 auto; } /* Il footer scuro resta in fondo anche nelle pagine corte. */
.wp-site-blocks > *, .o2e-main > * { margin-block: 0; }
.o2e-main { padding: 0; }
img, svg { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--o2e-arancio-testo); outline-offset: 2px; }

/* Tipografia */
.o2e-main h1, .o2e-main h2 { margin-block: 0 14px; }
.o2e-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--o2e-arancio-testo); margin: 0 0 12px; font-family: var(--wp--preset--font-family--archivo); line-height: 1.4; }
.o2e-lead { font-size: 17px; line-height: 1.55; color: var(--o2e-corpo); max-width: 640px; margin-block: 0 22px; }
.o2e-payoff, .o2e-citazione { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-weight: 400; }
.o2e-payoff { font-size: 15px; margin: 6px 0 0; color: var(--o2e-ink); }
.o2e-citazione { font-size: 30px; line-height: 1.2; margin: 0 0 18px; }
.o2e-prosa h2 { margin-block: 36px 12px; }
.o2e-prosa p { color: var(--o2e-corpo); }
.o2e-nota { font-size: 13px; color: var(--o2e-pietra-testo); }
.o2e-da-approvare { color: var(--o2e-arancio-testo); font-weight: 800; }
.o2e-footer .o2e-da-approvare { color: var(--o2e-arancio); }
.wp-block-post-title { margin-block: 0 16px; }

/* Link a tratto di penna */
.o2e-pen { background: linear-gradient(var(--o2e-arancio), var(--o2e-arancio)) no-repeat 0 100% / 0 2px; transition: background-size .35s var(--o2e-ease); padding-bottom: 2px; }
.o2e-pen:hover, .o2e-pen:focus-visible { background-size: 100% 2px; }

/* Pulsanti: core/button e .o2e-btn condividono lo scorrimento d'inchiostro */
.wp-block-button__link, .o2e-btn { display: inline-block; position: relative; overflow: hidden; z-index: 0; cursor: pointer; border: 2px solid var(--o2e-ink); background: transparent; color: var(--o2e-ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 13px 20px; line-height: 1.3; transition: color .3s; border-radius: 0; }
.wp-block-button__link::before, .o2e-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--o2e-ink); transform: translateX(-101%); transition: transform .3s var(--o2e-ease); }
.wp-block-button__link:hover, .o2e-btn:hover { color: #fff; }
.wp-block-button__link:hover::before, .o2e-btn:hover::before { transform: translateX(0); }
.o2e-btn--pieno { background: var(--o2e-ink); color: #fff; }
.o2e-btn--pieno::before { background: var(--o2e-arancio); }
.o2e-btn--pieno:hover { color: var(--o2e-ink); }
.is-style-arancio .wp-block-button__link, .o2e-btn--arancio { background: var(--o2e-arancio); border-color: var(--o2e-arancio); color: var(--o2e-ink); }
.is-style-pieno .wp-block-button__link { background: var(--o2e-ink); color: #fff; }
.is-style-pieno .wp-block-button__link::before { background: var(--o2e-arancio); }
.is-style-pieno .wp-block-button__link:hover { color: var(--o2e-ink); }
.is-style-arancio .wp-block-button__link:hover, .o2e-btn--arancio:hover { border-color: var(--o2e-ink); color: #fff; }
.wp-block-buttons { gap: 12px; }

/* Sezioni */
.o2e-sezione { padding: 64px max(var(--o2e-gutter), calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--o2e-linea); }
.o2e-sezione > :last-child { margin-bottom: 0; }
.o2e-sezione--scura { background: var(--o2e-ink); color: var(--o2e-carta); border-bottom-color: var(--o2e-ink); }
.o2e-sezione--scura .o2e-lead { color: #C9C4B8; }
.o2e-sezione--scura .o2e-eyebrow { color: var(--o2e-arancio); }
.o2e-sezione--scura .wp-block-button__link { border-color: var(--o2e-carta); color: var(--o2e-carta); }
.o2e-sezione--scura .wp-block-button__link::before { background: var(--o2e-carta); }
.o2e-sezione--scura .wp-block-button__link:hover { color: var(--o2e-ink); }
.o2e-sezione--testata { padding-block: 40px 36px; }
.o2e-sezione--chiusura { padding-block: 40px; }

/* Header */
.o2e-header { display: flex; align-items: center; gap: 26px; padding: 22px max(var(--o2e-gutter), calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--o2e-linea); font-size: 13px; font-weight: 600; }
.o2e-logo { display: inline-flex; align-items: center; gap: 12px; margin-right: 12px; color: var(--o2e-ink); }
.o2e-logo-svg { display: block; height: 24px; width: auto; flex: none; }
.o2e-fascia { display: block; height: 44px; width: auto; flex: none; }
.o2e-fascia-ink { fill: currentColor; }
.o2e-logo-scritta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: none; }
.o2e-logo-motto { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-weight: 400; font-size: 12.5px; line-height: 1; white-space: nowrap; letter-spacing: .01em; }
.o2e-nav { display: flex; gap: 26px; flex: 1; }
.o2e-lang { color: var(--o2e-pietra-testo); font-weight: 500; white-space: nowrap; }
.o2e-header-cta { padding: 10px 16px; white-space: nowrap; }
.o2e-menu-toggle { display: none; }

/* Hero */
.o2e-hero { padding-block: 72px 64px; }
.o2e-hero--interna { padding-block: 56px; }
.o2e-hero-colonne { gap: 40px; margin: 0; }
.o2e-hero h1 { margin-block-end: 20px; }
.o2e-composizione svg, .o2e-hero-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Composizioni SVG: stato finale */
.o2e-hero-svg .st { fill: none; stroke: var(--o2e-ink); stroke-width: 2.5; }
.o2e-hero-svg .st--tratteggio { stroke-dasharray: 6 6; }
.o2e-hero-svg .thin { fill: none; stroke: var(--o2e-pietra); stroke-width: 1; opacity: .7; }
.o2e-hero-svg .thin--ink { stroke: var(--o2e-ink); opacity: 1; }
.o2e-hero-svg .thin--arancio { stroke: var(--o2e-arancio); opacity: 1; }
.o2e-hero-svg .ltr { fill: none; stroke-width: 16; }
.o2e-hero-svg .anello { fill: none; stroke: var(--o2e-arancio); stroke-width: 7; }
.o2e-hero-svg .fo { fill: var(--o2e-arancio); }
.o2e-hero-svg .fi { fill: var(--o2e-ink); }
.o2e-hero-svg .fp { fill: var(--o2e-pietra); }
.o2e-hero-svg .fc { fill: var(--o2e-carta); }
.o2e-hero-svg .c-or { fill: var(--o2e-arancio); }
.o2e-hero-svg .c-in { fill: var(--o2e-ink); }
.o2e-hero-svg .c-pi { fill: var(--o2e-pietra); }
.o2e-hero-svg .fi-blk { fill: var(--o2e-ink); }

/* Motto sotto il disegno della home, allineato alla sua linea di base */
.o2e-motto { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--o2e-ink); margin: 4px 5% 0; }
.o2e-motion .o2e-motto:not(.go) { opacity: 0; }
.o2e-motion .o2e-motto-w { display: inline-block; opacity: 0; transform: translateY(6px); animation: o2e-up .5s var(--d, 0s) forwards; }
@keyframes o2e-up { to { opacity: 1; transform: none; } }

/* Composizioni SVG: animazione */
.o2e-motion .o2e-hero-svg .st:not(.st--tratteggio), .o2e-motion .o2e-hero-svg .thin { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.o2e-motion .o2e-hero-svg .ltr { stroke-dasharray: 900; stroke-dashoffset: 900; }
.o2e-motion .o2e-hero-svg .st--tratteggio, .o2e-motion .o2e-hero-svg .fi, .o2e-motion .o2e-hero-svg .fp, .o2e-motion .o2e-hero-svg .fc { opacity: 0; }
.o2e-motion .o2e-hero-svg .fo { opacity: 0; transform-origin: center; transform-box: fill-box; transform: scale(.7); }
.o2e-motion .o2e-hero-svg .spin { opacity: 0; transform-origin: center; transform-box: fill-box; transform: rotate(-90deg) scale(.6); }
.o2e-motion .o2e-hero-svg .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.o2e-motion .o2e-hero-svg .pop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.5); }
.o2e-motion .o2e-hero-svg .slide { opacity: 0; transform: translateX(-170px); }
.o2e-motion .o2e-hero-svg .blk { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.o2e-motion .o2e-hero-svg .anello { stroke-dasharray: 1.05 1; stroke-dashoffset: 1.05; }
.o2e-motion .o2e-hero-svg .tri { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateX(-190px) rotate(-90deg); }
.o2e-motion .o2e-hero-svg.go .grow { animation: o2e-grow .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) forwards; }
.o2e-motion .o2e-hero-svg.go .pop { animation: o2e-pop .5s cubic-bezier(.2, .8, .2, 1.3) var(--d, 2s) forwards; }
.o2e-motion .o2e-hero-svg.go .slide { animation: o2e-slide .8s cubic-bezier(.2, .8, .2, 1) var(--d, 1.5s) forwards; }
@keyframes o2e-grow { to { transform: scaleY(1); } }
@keyframes o2e-slide { to { opacity: 1; transform: none; } }
.o2e-motion .o2e-hero-svg.go .blk { animation: o2e-blk .35s cubic-bezier(.2, 1.4, .4, 1) var(--d, 2.3s) forwards; }
@keyframes o2e-blk { to { opacity: 1; transform: none; } }
.o2e-motion .o2e-hero-svg.go .anello { animation: o2e-dash 1s var(--o2e-ease) var(--d, 2.2s) forwards; }
.o2e-motion .o2e-hero-svg.go .tri { animation: o2e-tri 1.1s cubic-bezier(.3, 0, .2, 1) var(--d, 1.3s) forwards; }
@keyframes o2e-tri { 15% { opacity: 1; } to { opacity: 1; transform: none; } }
.o2e-motion .o2e-hero-svg.go .st:not(.st--tratteggio) { animation: o2e-dash 1.5s var(--o2e-ease) var(--d, 0s) forwards; }
.o2e-motion .o2e-hero-svg.go .thin { animation: o2e-dash 1.4s linear var(--d, 0s) forwards; }
.o2e-motion .o2e-hero-svg.go .ltr { animation: o2e-dash 1.1s var(--o2e-ease) var(--d, 0s) forwards; }
.o2e-motion .o2e-hero-svg.go .fo { animation: o2e-pop .6s cubic-bezier(.2, .8, .2, 1.2) var(--d, 1.6s) forwards; }
.o2e-motion .o2e-hero-svg.go .fi, .o2e-motion .o2e-hero-svg.go .fp, .o2e-motion .o2e-hero-svg.go .fc, .o2e-motion .o2e-hero-svg.go .st--tratteggio { animation: o2e-fade .5s var(--d, 2s) forwards; }
.o2e-motion .o2e-hero-svg.go .spin { animation: o2e-spin .7s cubic-bezier(.2, .8, .2, 1.1) var(--d, 2.4s) forwards; }
@keyframes o2e-dash { to { stroke-dashoffset: 0; } }
@keyframes o2e-pop { to { opacity: 1; transform: scale(1); } }
@keyframes o2e-fade { to { opacity: 1; } }
@keyframes o2e-spin { to { opacity: 1; transform: none; } }

/* Titolo a macchina */
.o2e-tw-pending .o2e-typewriter { visibility: hidden; animation: o2e-mostra 0s 3s forwards; } /* rete di sicurezza se lo script non parte */
.o2e-typewriter.o2e-typing { visibility: visible; animation: none; }
.o2e-cursor { display: inline-block; width: 4px; height: .85em; background: var(--o2e-arancio); vertical-align: -.08em; margin-left: 3px; animation: o2e-blink .9s steps(1) infinite; }
@keyframes o2e-blink { 50% { opacity: 0; } }
@keyframes o2e-mostra { to { visibility: visible; } }

/* Tre passi e contatore meccanico */
.o2e-passi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.o2e-passo { border-top: 2px solid var(--o2e-ink); padding-top: 18px; }
.o2e-passo-titolo { font-size: 18px; font-weight: 800; letter-spacing: 0; margin: 10px 0 6px; }
.o2e-passo p { font-size: 14px; line-height: 1.55; color: var(--o2e-corpo); margin: 0; }
.o2e-odo { display: inline-block; width: 40px; height: 48px; overflow: hidden; background: var(--o2e-ink); color: #fff; border-radius: 3px; font-size: 30px; font-weight: 800; line-height: 48px; text-align: center; }
.o2e-odo[data-n="1"] { --n: 1; --ritardo: 0s; }
.o2e-odo[data-n="2"] { --n: 2; --ritardo: .2s; }
.o2e-odo[data-n="3"] { --n: 3; --ritardo: .4s; }
.o2e-odo span { display: block; transform: translateY(calc(-48px * var(--n))); }
.o2e-motion .o2e-odo:not(.go) span { transform: translateY(0); }
.o2e-motion .o2e-odo.go span { transition: transform 1.8s cubic-bezier(.2, .9, .3, 1) var(--ritardo); }

/* Imprese */
.o2e-griglia-imprese { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px; }
.o2e-card-impresa { display: flex; flex-direction: column; min-height: 190px; padding: 18px 16px; background: #262420; border: 1px solid #3A3731; color: var(--o2e-carta); transition: transform .25s, border-color .25s, opacity .7s; }
.o2e-card-impresa:hover, .o2e-card-impresa:focus-visible { transform: translateY(-4px); border-color: var(--o2e-arancio); }
.o2e-card-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; padding: 8px 12px; margin-bottom: 12px; background: #fff; }
.o2e-card-logo.is-scuro { background: var(--o2e-ink); border: 1px solid #3A3731; }
.o2e-card-logo img { display: block; min-width: 0; flex: 0 1 auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.o2e-card-logo:has(.o2e-logo-fallback) { display: none; } /* Il nome è già nel titolo della card. */
.o2e-card-titolo { font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.o2e-card-settore { font-size: 12px; line-height: 1.4; color: #A7A295; flex: 1; margin-top: 6px; }
.o2e-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.o2e-tags .o2e-tag { margin-top: 0; }
.o2e-tag { align-self: flex-start; margin-top: 12px; padding: 4px 7px; border: 1.5px solid var(--o2e-arancio); border-radius: 2px; color: var(--o2e-arancio); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Fondatore */
.o2e-fondatore .wp-block-columns { gap: 48px; margin: 0; }
.o2e-ritratto { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: #D8D2C4; }
.o2e-ritratto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.o2e-fondatore-pagina { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 320px); gap: 64px; align-items: start; }
.o2e-fondatore-pagina > * { margin: 0; }
.o2e-cronologia { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 18px 0 26px; }
.o2e-cronologia-anno { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--o2e-pietra-testo); }
.o2e-cronologia b { font-size: 13px; }

/* Incontri */
.o2e-talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.o2e-talk { display: block; }
.o2e-talk-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: #E3DED3; overflow: hidden; }
.o2e-talk-img img { width: 100%; height: 100%; object-fit: cover; }
.o2e-talk-segnaposto { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--o2e-pietra-testo); }
.o2e-talk-titolo { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; margin: 14px 0 4px; }
.o2e-talk small { display: block; font-size: 12px; line-height: 1.45; color: var(--o2e-pietra-testo); }
.o2e-talk[hidden] { display: none; }
.o2e-talk-tipo { display: block; margin-top: 14px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--o2e-arancio-testo); }
.o2e-talk-tipo + .o2e-talk-titolo { margin-top: 4px; }
.o2e-talks-tutti { margin-top: 34px; }
.o2e-filtri { display: none; flex-wrap: wrap; gap: 8px; }
.o2e-script .o2e-filtri { display: flex; }
.o2e-filtro { background: transparent; border: 1.5px solid var(--o2e-ink); color: var(--o2e-ink); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.o2e-filtro:hover { background: var(--o2e-linea); }
.o2e-filtro.is-active { background: var(--o2e-ink); color: var(--o2e-carta); }
.o2e-incontro-copertina { margin: 0 0 28px; }
.o2e-incontro-copertina img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.o2e-incontro .o2e-prosa { margin-bottom: 26px; }

/* Invito con carta millimetrata */
.o2e-invito { position: relative; overflow: hidden; text-align: center; padding-block: 72px; background-image: linear-gradient(var(--o2e-linea) 1px, transparent 1px), linear-gradient(90deg, var(--o2e-linea) 1px, transparent 1px); background-size: 24px 24px; }
.o2e-invito > * { position: relative; }
.o2e-invito .o2e-lead { margin-inline: auto; }
.o2e-griglia { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none; margin: 0 !important; max-width: none !important; }

/* Scheda impresa */
.o2e-crumb { font-size: 12px; font-weight: 500; color: var(--o2e-pietra-testo); margin-bottom: 26px; }
.o2e-scheda-testata-griglia { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; gap: 30px; align-items: center; }
.o2e-scheda-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 120px; background: #fff; border: 1px solid var(--o2e-linea); padding: 16px; text-align: center; }
.o2e-scheda-logo.is-scuro { background: var(--o2e-ink); border-color: var(--o2e-ink); }
.o2e-scheda-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.o2e-logo-fallback { font-size: 15px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.o2e-scheda-titolo { margin: 0 0 8px; }
.o2e-scheda-testata .o2e-lead { margin: 0; }
.o2e-scheda-timbro { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.o2e-scheda-timbro .o2e-stamp + .o2e-stamp { transform: rotate(2deg); }
.o2e-scheda-timbro small { display: block; font-size: 12px; font-weight: 500; color: var(--o2e-pietra-testo); margin-top: 10px; }
.o2e-stamp { display: inline-block; border: 2.5px solid var(--o2e-arancio-testo); color: var(--o2e-arancio-testo); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 3px; transform: rotate(-3deg); white-space: nowrap; }
.o2e-motion .o2e-stamp:not(.go) { opacity: 0; transform: scale(1.6) rotate(-8deg); }
.o2e-motion .o2e-stamp.go { animation: o2e-stamp .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes o2e-stamp { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } 60% { opacity: 1; transform: scale(.95) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }

.o2e-scheda-griglia { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; }
.o2e-scheda-griglia > * { margin-block: 0; }
.o2e-blocco { margin-bottom: 34px; }
.o2e-blocco:last-child { margin-bottom: 0; }
.o2e-blocco-testo { font-size: 15px; line-height: 1.6; color: var(--o2e-corpo); }
.o2e-blocco-testo p { margin: 0 0 10px; }
.o2e-blocco--o2e { border-left: 3px solid var(--o2e-arancio); padding-left: 22px; }
.o2e-scheda-dati { position: sticky; top: 20px; background: #fff; border: 1px solid var(--o2e-linea); padding: 26px; }
.o2e-scheda-dati dl { margin: 0; }
.o2e-scheda-dati dt { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--o2e-pietra-testo); margin-top: 16px; }
.o2e-scheda-dati dt:first-child { margin-top: 0; }
.o2e-scheda-dati dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; }
.o2e-scheda-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.o2e-scheda-nav a:not(.o2e-btn) { font-size: 15px; font-weight: 800; }
.o2e-scheda-nav small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--o2e-pietra-testo); margin-bottom: 4px; }
.o2e-nav-succ { text-align: right; }

/* Incontro */
.o2e-incontro-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Contatti */
.o2e-contatti-box { scroll-margin-top: 20px; }
.o2e-contatti-box h2 { margin-block: 0 22px; }
.o2e-pannelli { max-width: 760px; }
.o2e-pannelli > * + * { margin-top: 64px; }
.o2e-altro { margin: 22px 0 0; font-size: 14px; color: var(--o2e-pietra-testo); }
.o2e-altro a { color: var(--o2e-arancio-testo); font-weight: 700; }
.o2e-contatti .o2e-nota { max-width: 760px; margin-top: 40px; }
/* Selettore: compare solo con JavaScript; senza, i due moduli restano uno sotto l'altro. */
.o2e-selettore { display: none; }
.o2e-script .o2e-selettore { display: flex; width: fit-content; max-width: 100%; border: 2px solid var(--o2e-ink); margin: 0 0 36px; scroll-margin-top: 20px; }
.o2e-selettore button { background: transparent; border: 0; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--o2e-ink); padding: 14px 20px; text-align: left; line-height: 1.3; cursor: pointer; transition: background-color .2s, color .2s; }
.o2e-selettore button + button { border-left: 2px solid var(--o2e-ink); }
.o2e-selettore small { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--o2e-pietra-testo); }
.o2e-selettore button:hover:not([aria-selected="true"]) { background: var(--o2e-linea); }
.o2e-selettore [aria-selected="true"] { background: var(--o2e-ink); color: var(--o2e-carta); }
.o2e-selettore [aria-selected="true"] small { color: #C9C4B8; }
.o2e-script .o2e-pannelli > * + * { margin-top: 0; }
.o2e-script .o2e-contatti-box > .o2e-eyebrow, .o2e-script .o2e-contatti-box > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Prima che parta lo script decide l'ancora (#collaborazione), poi decide lo script. */
.o2e-script .o2e-pannelli:not([data-attivo]) #collaborazione:not(:target),
.o2e-script .o2e-pannelli:not([data-attivo]):has(#collaborazione:target) #progetto,
.o2e-script .o2e-pannelli[data-attivo="progetto"] #collaborazione,
.o2e-script .o2e-pannelli[data-attivo="collaborazione"] #progetto { display: none; }

/* Footer */
.o2e-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; padding: 40px max(var(--o2e-gutter), calc((100% - 1200px) / 2)); font-size: 12.5px; line-height: 1.7; color: #55524C; }
.o2e-footer { background: var(--o2e-ink); color: #C9C4B8; }
.o2e-footer b { display: block; color: var(--o2e-carta); margin-bottom: 4px; }
.o2e-footer .o2e-payoff { color: var(--o2e-carta); }
.o2e-footer :focus-visible, .o2e-sezione--scura :focus-visible { outline-color: var(--o2e-arancio); }
.o2e-footer-col a { display: inline-block; min-height: 24px; line-height: 24px; }
.o2e-footer .o2e-logo { color: var(--o2e-carta); }
.o2e-footer .o2e-logo-svg { height: 30px; }
.o2e-footer .o2e-fascia { height: 54px; }

/* Ingresso delle sezioni */
.o2e-motion .o2e-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.o2e-motion .o2e-reveal.go { opacity: 1; transform: none; }
.o2e-motion .o2e-griglia-imprese .o2e-reveal:nth-child(2), .o2e-motion .o2e-talks .o2e-reveal:nth-child(2) { transition-delay: .12s; }
.o2e-motion .o2e-griglia-imprese .o2e-reveal:nth-child(3), .o2e-motion .o2e-talks .o2e-reveal:nth-child(3) { transition-delay: .24s; }
.o2e-motion .o2e-griglia-imprese .o2e-reveal:nth-child(4) { transition-delay: .36s; }
.o2e-motion .o2e-griglia-imprese .o2e-reveal:nth-child(5) { transition-delay: .48s; }
.o2e-motion .o2e-card-impresa.o2e-reveal.go:hover, .o2e-motion .o2e-card-impresa.o2e-reveal.go:focus-visible { transform: translateY(-4px); transition-delay: 0s; }

/* Tablet e mobile */
@media (max-width: 1100px) {
	.o2e-header { flex-wrap: wrap; gap: 14px 22px; }
	.o2e-header .o2e-logo-motto { display: none; }
	.o2e-header .o2e-fascia { height: 34px; }
	.o2e-header .o2e-logo-svg { height: 20px; }
	.o2e-nav { order: 5; flex: 1 0 100%; flex-wrap: wrap; gap: 8px 22px; }
	.o2e-lang { margin-left: auto; }
}

@media (max-width: 900px) {
	:root { --o2e-gutter: 20px; }
	.o2e-sezione { padding-block: 48px; }
	.o2e-hero { padding-block: 44px; }
	.o2e-hero-colonne { flex-direction: column; flex-wrap: wrap !important; }
	.o2e-hero-colonne > .wp-block-column { flex-basis: 100% !important; }
	.o2e-hero h1 { font-size: 32px; }
	h1.wp-block-heading, .wp-block-post-title, .o2e-scheda-titolo { font-size: 32px; }
	.o2e-citazione { font-size: 25px; }
	.o2e-passi { grid-template-columns: 1fr; gap: 22px; }
	.o2e-griglia-imprese { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 12px; margin-inline: calc(var(--o2e-gutter) * -1); padding-inline: var(--o2e-gutter); }
	.o2e-card-impresa { flex: 0 0 72%; scroll-snap-align: center; }
	.o2e-fondatore .wp-block-column { flex-basis: 100% !important; }
	.o2e-ritratto { max-width: 240px; }
	.o2e-talks { grid-template-columns: 1fr; }
	.o2e-fondatore-pagina { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.o2e-fondatore-pagina .o2e-ritratto { order: -1; }
	.o2e-scheda-testata-griglia { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.o2e-scheda-logo { max-width: 220px; height: 84px; padding: 10px; }
	.o2e-logo-fallback { font-size: 10px; }
	.o2e-scheda-timbro { grid-column: 1 / -1; text-align: left; }
	.o2e-scheda-griglia { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.o2e-scheda-griglia .o2e-scheda-dati { position: static; order: -1; }
	.o2e-scheda-nav { grid-template-columns: 1fr 1fr; }
	.o2e-scheda-nav .o2e-btn { grid-column: 1 / -1; grid-row: 1; text-align: center; }
	.o2e-footer { grid-template-columns: 1fr; gap: 18px; }
	.o2e-script .o2e-selettore { width: 100%; }
	.o2e-selettore button { flex: 1; padding: 12px; font-size: 11px; }
	.o2e-composizione:has(.o2e-hero-svg--contatti) { display: none; } /* Il modulo resta in alto. */
}

@media (max-width: 640px) {
	.o2e-script .o2e-menu-toggle { display: inline-block; margin-left: auto; background: transparent; border: 2px solid var(--o2e-ink); color: var(--o2e-ink); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
	.o2e-script .o2e-nav { display: none; flex-direction: column; font-size: 16px; gap: 14px; padding-block: 10px; }
	.o2e-script .o2e-nav.is-open { display: flex; }
	.o2e-lang { display: none; }
	.o2e-header-cta { order: 6; flex: 1 0 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}
