/* ==========================================================================
   Advant 2026 – main stylesheet
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-var-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-600.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
	--red: #b51f19;
	--red-deep: #af060d;
	--red-700: #8f150f;
	--red-hot: #e8433f;
	--red-50: #fdf1f0;
	--grad: linear-gradient(90deg, #ff5a61 0%, #e8433f 45%, #ff8a3c 100%);
	--ink: #1d1a1b;
	--ink-2: #3b3738;
	--muted: #57524f;
	--line: #ebe8e6;
	--line-2: #e3dfdd;
	--gray: #f3f2f2;
	--gray-2: #dcd8d5;
	--night: #0a0809;
	--white: #fff;
	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 24px;
	--radius-xl: 28px;
	--shadow: 0 30px 60px -40px rgba(29, 26, 27, .4);
	--shadow-lg: 0 40px 80px -36px rgba(29, 26, 27, .4);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(4rem, 9vw, 7rem);
	--header-h: 80px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: "Inter Tight", "Inter", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Advant Suite plugin tokens */
	--as-accent: var(--red);
	--as-accent-dark: var(--red-700);
	--as-ink: var(--ink);
	--as-muted: var(--muted);
	--as-line: var(--line-2);
	--as-soft: var(--gray);
	--as-radius: var(--radius);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; transition: color .2s, background-color .2s, border-color .2s, box-shadow .3s, transform .3s; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; color: var(--ink); }
h1, h2 { font-family: var(--font-head); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
.screen-reader-text { 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: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.accent { color: var(--red); }
/* Gradient words: the text is painted only inside the box of the word, and the tight letter-spacing pushes the last letter
   outside it. A little room on the right and below (given back with a negative margin) keeps the last letter and the descenders whole. */
.accent--grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em .08em 0; margin-right: -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Small components ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 1.1rem; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); flex: none; }
.eyebrow--light { color: #fff; }
.eyebrow--pill { border: 1px solid rgba(175, 6, 13, .55); background: rgba(175, 6, 13, .12); color: #ff9ea1; border-radius: 999px; padding: .5rem 1rem; font-size: .78rem; letter-spacing: .08em; }
.eyebrow--pill::before { display: none; }
.eyebrow--mono { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: #ff9ea1; gap: .6rem; }
.eyebrow--mono::before { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hot); }

.tile-icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; }
.tile-icon--sm { width: 40px; height: 40px; border-radius: 12px; }
.tile-icon--lg { width: 64px; height: 64px; border-radius: 18px; transform: rotate(-6deg); box-shadow: 0 18px 30px -14px rgba(181, 31, 25, .8); margin-bottom: 1.5rem; }
.tile-icon--xl { width: 88px; height: 88px; border-radius: 24px; }
.tile-icon--tilt { transform: rotate(-6deg); box-shadow: 0 18px 30px -14px rgba(181, 31, 25, .8); transition: transform .3s; }
.tile-icon--soft { background: var(--red-50); color: var(--red); }
.tile-icon--glass { background: rgba(255, 255, 255, .18); }
.tile-icon--white { background: #fff; color: var(--red); }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pills li { font-size: .75rem; font-weight: 600; background: var(--gray); padding: .4rem .75rem; border-radius: 999px; color: var(--ink); }
.pills--dark li { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.pill-red { display: inline-flex; align-items: center; background: var(--red); color: #fff !important; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; text-decoration: none; }
.round-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gray); color: var(--red); flex: none; transition: transform .25s, background .25s, color .25s; }
.round-arrow--red { width: 44px; height: 44px; background: var(--red); color: #fff; }
.grain { position: absolute; inset: 0; opacity: .45; mix-blend-mode: overlay; background-size: 210px 210px; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.65rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s, box-shadow .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(29, 26, 27, .55); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(29, 26, 27, .2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: transparent; }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--square { border-radius: 10px; padding: 1.05rem 1.85rem; font-weight: 700; }
.btn--primary.btn--square { background: var(--red-deep); box-shadow: 0 10px 26px rgba(175, 6, 13, .4); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.06rem; font-weight: 700; box-shadow: 0 20px 40px -18px rgba(181, 31, 25, .9); }
.btn--sm { padding: .75rem 1.4rem; font-size: .93rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--red); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }
.as-btn { padding: .95rem 1.65rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(29, 26, 27, .5); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; display: block; position: relative; }
.brand__logo { width: 168px; height: auto; transition: opacity .3s; }
.brand__logo--light { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .35rem; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; }
.main-nav .menu a { display: block; padding: .55rem .75rem; color: var(--ink); font-size: .94rem; font-weight: 500; text-decoration: none; border-radius: var(--radius-sm); }
.main-nav .menu > li > a { position: relative; }
.main-nav .menu > li > a:hover, .main-nav .menu > .current-menu-item > a, .main-nav .menu > .current-menu-ancestor > a, .main-nav .menu > .current_page_parent > a { color: var(--red); }
.main-nav .menu > .current-menu-item > a::after, .main-nav .menu > .current-menu-ancestor > a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .05rem; height: 2px; background: var(--red-hot); border-radius: 2px; }
.main-nav .menu-cta > a { background: var(--red); color: #fff !important; padding: .72rem 1.35rem !important; border-radius: 999px !important; margin-left: .6rem; font-weight: 600 !important; }
.main-nav .menu-cta > a:hover { background: var(--red-700); transform: translateY(-2px); }
.main-nav .menu-cta > a::after { display: none; }
.submenu-toggle { display: inline-flex; background: none; border: 0; padding: .3rem; margin-left: -.6rem; color: currentColor; opacity: .7; cursor: pointer; pointer-events: none; }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 12px); left: -18px; min-width: 300px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 48px -20px rgba(29, 26, 27, .35); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.main-nav .sub-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: .7rem .9rem; font-size: .94rem; border-radius: 12px; color: var(--ink) !important; }
.main-nav .sub-menu a:hover { background: var(--gray); color: var(--red) !important; }
.site-header__tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { list-style: none; display: flex; gap: 2px; margin: 0 0 0 .4rem; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch a { display: block; padding: .42rem .7rem; font-size: .8rem; font-weight: 700; line-height: 1; color: var(--muted); text-decoration: none; border-radius: 999px; }
.lang-switch a.is-current { background: var(--ink); color: #fff; }
.lang-switch a:not(.is-current):hover { color: var(--red); }
.lang-switch--mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--ink); cursor: pointer; }
.nav-toggle__close { display: none; }

/* Transparent header over the dark heroes */
.has-dark-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: rgba(255, 255, 255, .08); }
.has-dark-hero .site-header:not(.is-scrolled) .brand__logo { opacity: 0; }
.has-dark-hero .site-header:not(.is-scrolled) .brand__logo--light { opacity: 1; }
.has-dark-hero .site-header:not(.is-scrolled) .main-nav .menu > li:not(.menu-cta) > a { color: rgba(255, 255, 255, .82); }
.has-dark-hero .site-header:not(.is-scrolled) .main-nav .menu > li:not(.menu-cta) > a:hover, .has-dark-hero .site-header:not(.is-scrolled) .main-nav .menu > .current-menu-item > a, .has-dark-hero .site-header:not(.is-scrolled) .main-nav .menu > .current-menu-ancestor > a { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .submenu-toggle { color: rgba(255, 255, 255, .82); }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch { border-color: rgba(255, 255, 255, .28); }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch a { color: rgba(255, 255, 255, .82); }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch a.is-current { background: #fff; color: var(--ink); }
.has-dark-hero .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
.has-dark-hero .site-header.is-scrolled { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); }

@media (max-width: 1140px) {
	:root { --header-h: 68px; }
	.brand__logo { width: 140px; }
	.nav-toggle { display: block; }
	.site-header__tools { margin-left: auto; }
	.site-header__tools .lang-switch { display: none; }
	.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.has-dark-hero.nav-open .site-header { background: #fff; }
	.has-dark-hero.nav-open .site-header .brand__logo { opacity: 1; }
	.has-dark-hero.nav-open .site-header .brand__logo--light { opacity: 0; }
	.has-dark-hero.nav-open .site-header .nav-toggle { color: var(--ink); }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.main-nav .menu > li > a, .has-dark-hero .site-header:not(.is-scrolled) .main-nav .menu > li:not(.menu-cta) > a { flex: 1; padding: 1rem 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
	.main-nav .menu > .current-menu-item > a::after, .main-nav .menu > .current-menu-ancestor > a::after { display: none; }
	.submenu-toggle, .has-dark-hero .site-header:not(.is-scrolled) .submenu-toggle { display: block; padding: 1rem; margin: 0; pointer-events: auto; color: var(--ink); opacity: 1; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem .75rem; min-width: 0; width: 100%; display: none; }
	.main-nav .sub-menu.is-open { display: block; }
	.main-nav .menu-cta { border: 0 !important; margin-top: 1.25rem; }
	.main-nav .menu-cta > a { text-align: center; margin: 0; padding: 1rem !important; }
	.lang-switch--mobile, .has-dark-hero .site-header:not(.is-scrolled) .lang-switch--mobile { display: inline-flex; margin: 1.5rem 0 0; border-color: var(--line-2); }
	.has-dark-hero .site-header:not(.is-scrolled) .lang-switch--mobile a { color: var(--muted); }
	.has-dark-hero .site-header:not(.is-scrolled) .lang-switch--mobile a.is-current { background: var(--ink); color: #fff; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; min-height: 720px; display: flex; align-items: center; padding: calc(var(--header-h) + clamp(3.5rem, 7vw, 5.5rem)) 0 clamp(6.5rem, 10vw, 8.5rem); }
.admin-bar .hero { min-height: 690px; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; max-width: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .35) 100%); }
.hero__glow { position: absolute; left: -10%; bottom: -30%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(175, 6, 13, .45) 0%, rgba(175, 6, 13, 0) 64%); pointer-events: none; }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.hero .eyebrow { margin: 0; }
.hero__title { margin: 0; color: #fff; font-size: clamp(3.1rem, 6.4vw, 5.75rem); line-height: .98; letter-spacing: -.03em; max-width: 11.5em; }
.hero__lead { margin: 0; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(247, 243, 239, .75); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 0; padding: 0; }
.hero__badges li { font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .8); padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
@media (max-width: 900px) { .hero__bg { object-position: 60% 50%; } .hero { min-height: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--ink); color: #fff; overflow: hidden; }
.section--dark .section-title { color: #fff; }
.section--dark .section-lead { color: #d6d1cf; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; }
.section-head--row > div { flex: 1 1 520px; max-width: 860px; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-title { font-size: clamp(2.25rem, 4.2vw, 3.375rem); margin-bottom: 1.1rem; }
.section-head .section-title:last-child { margin-bottom: 0; }
.section-lead { font-size: 1.125rem; color: var(--ink-2); margin: 0; }
.section--stats { padding: 0; margin-top: -6rem; z-index: 2; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.split--certs { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.split__text > p { color: var(--ink-2); }
@media (max-width: 900px) { .split, .split--certs { grid-template-columns: 1fr; } }

.checks, .entry-content .adv-checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.checks li, .entry-content .adv-checks li { position: relative; padding-left: 2rem; }
.checks li::before, .entry-content .adv-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b51f19' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.entry-content .adv-two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 640px) { .entry-content .adv-two-cols { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.stat { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font-family: var(--font-head); font-size: clamp(2.3rem, 3.4vw, 3rem); font-weight: 900; color: var(--ink); letter-spacing: -.05em; line-height: 1; }
.stat__affix { color: var(--red); }
.stat__label { font-size: .875rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(3n+1) { border-left: 0; } .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); padding: 6px; } .stat { padding: 1.25rem 1rem; border-left: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); } .stat:nth-child(2n+1) { border-left: 0 !important; } .stat:nth-last-child(-n+2) { border-bottom: 0; } }
.entry-content .stats { margin: 2.5rem 0; }

/* ---------- Intro / bento ---------- */
.intro { display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.intro__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.intro__text .section-title { margin-bottom: 1.4rem; }
.intro__body p { font-size: 1.0625rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.intro__body p:first-child { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); padding-left: 1.25rem; border-left: 3px solid var(--red); }
.intro__text .btn { margin-top: .4rem; }
.bento { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 220px auto; gap: 14px; }
.bento__photo { grid-row: 1 / 3; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-2); }
.bento .bento__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .35s; }
.bento__photo:hover img { scale: 1.04; }
.bento__tile { border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.bento__text { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.bento__tile--1 { background: var(--red); color: #fff; }
.bento__tile--1 .tile-icon { width: 44px; height: 44px; }
.bento__tile--2 { background: var(--gray); }
.bento__tile--2 .tile-icon { width: 44px; height: 44px; }
.bento__tile--3 { grid-column: 1 / 3; background: var(--ink); color: #fff; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.25rem; padding: 26px 30px; }
.bento__tile--3 .tile-icon { width: 52px; height: 52px; }
.bento__tile--3 .bento__text { font-size: 1.3rem; }
@media (max-width: 560px) { .bento { grid-template-rows: 180px 180px auto; } .bento__text { font-size: 1rem; } .bento__tile { padding: 18px; } }

/* ---------- Expertise ---------- */
.expertise { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.expertise__card { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 2.5rem 2.1rem 2rem; background: #fff; border-radius: var(--radius-xl); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.expertise__card:nth-child(2) { margin-top: 32px; }
.expertise__card:nth-child(3) { margin-top: 64px; }
.expertise__card:nth-child(4) { margin-top: 96px; }
.expertise__card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .45); color: var(--ink); }
.expertise__card:hover .tile-icon--tilt { transform: rotate(6deg); }
.expertise__card:hover .round-arrow { background: var(--red); color: #fff; transform: translateX(3px); }
/* Watermark: inside the card, top right, light gray. Its size follows the card width, so it never gets cut. */
.expertise__card { container-type: inline-size; }
.expertise__mark { position: absolute; right: 18px; top: 14px; font-family: var(--font-head); font-size: 4.5rem; font-size: min(6.5rem, 21cqi); font-weight: 900; letter-spacing: -.06em; color: var(--gray); line-height: 1; white-space: nowrap; pointer-events: none; }
.expertise__card > :not(.expertise__mark) { position: relative; }
.expertise__card h3 { margin: .5rem 0 0; font-size: 1.5rem; line-height: 1.15; }
.expertise__claim { margin: 0; font-weight: 600; color: var(--red); }
.expertise__text { margin: 0; color: var(--ink-2); line-height: 1.6; }
.expertise__more { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--red); }
@media (max-width: 1240px) { .expertise__card:nth-child(n) { margin-top: 0; } }
.entry-content .expertise { margin: 1.5rem 0 3rem; }

/* ---------- Partners ---------- */
.section--partners .section-head { margin-bottom: 3.5rem; }
.logo-marquee { display: flex; flex-direction: column; gap: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-marquee__track { display: flex; gap: 16px; width: max-content; animation: adv-left 50s linear infinite; }
.logo-marquee__track--rev { animation-name: adv-right; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-tile { flex: none; display: grid; place-items: center; height: 96px; width: 220px; padding: 18px 30px; border-radius: 20px; background: #fff; border: 1px solid rgba(255, 255, 255, .1); }
.logo-tile img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }
@keyframes adv-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes adv-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logo-marquee__track .logo-tile[aria-hidden] { display: none; } }
.entry-content .logo-marquee { margin: 2rem calc(-1 * var(--gutter)) 3rem; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 2rem 0 3rem; }
.partner-card { border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 20px 40px -32px rgba(29, 26, 27, .5); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.partner-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.partner-card__logo { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--gray); padding: 22px; }
.partner-card__logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.partner-card h3 { font-size: 1.15rem; margin: 0 1.4rem .4rem; }
.partner-card__level { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--red); background: var(--red-50); border-radius: 999px; padding: .3rem .7rem; margin: 1.25rem 1.4rem .6rem; }
.partner-card p:last-child { color: var(--ink-2); font-size: .93rem; margin: 0 1.4rem 1.4rem; }
.partner-card { display: flex; flex-direction: column; }
.partner-card__logo { order: 0; } .partner-card__level { order: 1; align-self: flex-start; } .partner-card h3 { order: 2; } .partner-card p:last-child { order: 3; }

/* ---------- Certifications ---------- */
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.certs--compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.certs--compact .cert { background: #fff; border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
/* 12.2 Home: the icon of each certification, the same as on the Certificazioni page. */
.cert__seal { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.certs--compact .cert { gap: .5rem; }
.certs--compact .cert__seal { margin-bottom: .35rem; }
.certs--compact .cert__code { font-size: 1.125rem; }
.certs--compact .cert__name { font-size: .875rem; color: var(--muted); }
.certs--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 3rem; }
.certs--cards .cert { padding: 1.8rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -34px rgba(29, 26, 27, .5); display: flex; flex-direction: column; gap: .4rem; }
.certs--cards .cert__seal { width: 56px; height: 56px; border-radius: 16px; margin-bottom: .8rem; }
.certs--cards .cert__code { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.certs--cards .cert__name { font-weight: 600; color: var(--red); font-size: .95rem; }
.certs--cards .cert p { margin: .4rem 0 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1000px) { .certs--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .certs--cards { grid-template-columns: 1fr; } }
.section--gray .certs--cards .cert { border-color: transparent; }

/* ---------- Industries ---------- */
.industries { list-style: none; padding: 0; margin: 1.5rem 0 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.industries li { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.industries img { width: 40px; height: 40px; flex: none; }

/* ---------- Offices & contact ---------- */
.offices { list-style: none; padding: 8px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--gray); border-radius: var(--radius-lg); }
.office { display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem 1.3rem; border-radius: var(--radius); background: #fff; line-height: 1.5; font-size: .92rem; color: var(--ink-2); }
.office__label { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.office__city { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.office__map { margin-top: .5rem; font-weight: 700; text-decoration: none; }
.office--main { background: var(--red); color: rgba(255, 255, 255, .9); }
.office--main .office__label, .office--main .office__city, .office--main .office__map { color: #fff; }
@media (max-width: 480px) { .offices { grid-template-columns: 1fr; } }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info .eyebrow:not(:first-child) { margin-top: 2.5rem; }
.contact-list { list-style: none; padding: 8px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--gray); border-radius: var(--radius-lg); }
.contact-list li { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.15rem; background: #fff; border-radius: var(--radius); }
.contact-list span:not(.tile-icon) { display: block; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.contact-list a { font-weight: 800; font-size: 1.02rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.contact-form-wrap { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form-wrap h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- Values (careers) ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 3.5rem; align-items: start; }
.value { padding: 1.9rem 1.7rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
.value:nth-child(even) { margin-top: 28px; }
.value .tile-icon { margin-bottom: 1.25rem; transform: rotate(-6deg); }
.value h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.value p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } .value:nth-child(even) { margin-top: 0; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Careers teaser ---------- */
.section--careers { overflow: hidden; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.careers-shape { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--red); clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%); }
.careers-teaser { position: relative; display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.collage { flex: 1 1 440px; min-width: 0; position: relative; height: 560px; }
.collage .collage__main { position: absolute; left: 0; top: 0; width: 80%; height: 78%; object-fit: cover; border-radius: var(--radius-xl); box-shadow: 0 40px 80px -40px rgba(29, 26, 27, .55); background: var(--gray-2); }
.collage .collage__second { position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 1; object-fit: cover; border: 8px solid #fff; border-radius: var(--radius-lg); transform: rotate(4deg); box-shadow: 0 30px 60px -24px rgba(29, 26, 27, .5); background: var(--gray-2); }
.collage__badge { position: absolute; left: 24px; bottom: 48px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 20px 40px -20px rgba(29, 26, 27, .45); transform: rotate(-3deg); }
.collage__badge strong { font-family: var(--font-head); font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--red); line-height: 1; }
.collage__badge span { font-size: .8rem; line-height: 1.3; color: var(--ink-2); max-width: 9em; }
.careers-teaser__text { flex: 1 1 480px; min-width: 0; }
.careers-teaser__text > p { color: var(--ink-2); }
.mini-jobs { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: 10px; }
.mini-jobs a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 18px 18px 24px; background: var(--gray); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.mini-jobs a:hover { transform: translateX(4px); box-shadow: 0 14px 28px -20px rgba(29, 26, 27, .5); color: var(--ink); }
.mini-jobs__main { display: flex; flex-direction: column; gap: .3rem; }
.mini-jobs strong { font-size: 1.06rem; }
.mini-jobs small { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-weight: 600; font-size: .82rem; }
@media (max-width: 900px) { .careers-shape { width: 100%; height: 300px; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%); } .collage { height: 420px; } }
@media (max-width: 560px) { .collage { height: 340px; } .collage__badge { left: 8px; bottom: 24px; } }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s; box-shadow: 0 20px 40px -34px rgba(29, 26, 27, .5); }
.post-card__link:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .45); color: inherit; }
.post-card__media { aspect-ratio: 16 / 9; background: var(--gray-2); overflow: hidden; }
.post-card .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: .55rem; }
.post-card__title { font-size: 1.25rem; line-height: 1.25; margin-bottom: .6rem; }
.post-card__excerpt { color: var(--ink-2); font-size: .95rem; flex: 1; }
.post-card--featured { grid-column: 1 / -1; }
.post-card--featured .post-card__link { flex-direction: row; box-shadow: var(--shadow-lg); }
.post-card--featured .post-card__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-card__body { padding: clamp(1.5rem, 3.5vw, 2.5rem); justify-content: center; }
.post-card--featured .pill-red { margin-bottom: 1rem; }
.post-card--featured .post-card__excerpt { flex: 0 0 auto; margin-bottom: 1.5rem; }
.post-card--featured .post-card__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.03em; line-height: 1.08; }
@media (max-width: 800px) { .post-card--featured .post-card__link { flex-direction: column; } .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; } }
.nav-links { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-wrap { padding-top: var(--section); padding-bottom: var(--section); }
.section + .cta-wrap, .section--gray + .cta-wrap { padding-top: var(--section); }
.cta-band { position: relative; overflow: hidden; border-radius: 32px; background: #0e0c0d var(--cta-bg) 70% 50% / cover no-repeat; color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 12, 13, .95) 0%, rgba(14, 12, 13, .85) 45%, rgba(14, 12, 13, .4) 75%, rgba(14, 12, 13, .15) 100%); }
.cta-band__inner { position: relative; z-index: 1; padding: clamp(2.25rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; }
.cta-band__text { flex: 1 1 560px; min-width: 0; }
.cta-band h2 { color: #fff; margin: 0 0 1rem; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.04em; max-width: 12em; }
.cta-band h2 .accent { color: #ff6a5c; }
.cta-band p { margin: 0; color: #e4dfdb; font-size: 1.125rem; max-width: 40em; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.cta-band__mail { display: inline-flex; align-items: center; gap: .6rem; padding-left: .4rem; color: #fff; font-weight: 600; text-decoration: none; }
.cta-band__mail:hover { color: #fff; text-decoration: underline; }
.entry-content .cta-band { margin: 4rem 0 1rem; }
.entry-content .cta-band h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); margin-top: 0; }
.entry-content .cta-band p { color: #e4dfdb; }
.section--dark p, .page-hero--dark p, .page-hero--split p { color: inherit; }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero__title { margin: 0 0 1.1rem; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; max-width: 16em; }
.page-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; margin: 0; max-width: 34em; }
.page-hero__meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.page-hero__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb > :last-child { color: var(--ink); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--ink); box-shadow: 0 6px 16px -12px rgba(29, 26, 27, .5); }
.chip .icon { color: var(--ink-2); }

/* light */
.page-hero--light { background: var(--gray); padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero--light .page-hero__shape { position: absolute; right: 0; top: 0; bottom: 0; width: 20%; background: var(--red); clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero--light .page-hero__inner { position: relative; }
.page-hero--light .page-hero__text { max-width: min(780px, 75%); }
.page-hero--light .page-hero__lead { color: var(--ink-2); }
/* Under 900px the diagonal becomes a red base across the whole width, with the top edge rising to the right (as in the design), below the text. */
@media (max-width: 900px) {
	.page-hero--light { padding-bottom: calc(84px + 2rem); }
	.page-hero--light .page-hero__shape { top: auto; left: 0; width: 100%; height: 84px; clip-path: polygon(0 75%, 100% 0, 100% 100%, 0 100%); }
	.page-hero--light .page-hero__text { max-width: none; }
}
/* Partner page (design/partner.html): partner names on tilted white tiles, fading to the left. */
.page-hero--partners { min-height: 560px; display: flex; align-items: center; }
.page-hero--partners .page-hero__inner { width: 100%; }
.page-hero__wall { position: absolute; right: -60px; top: -40px; width: 62%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; transform: rotate(-8deg); opacity: .9; }
.page-hero__wall span { height: 96px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0 10px; text-align: center; font-size: 15px; font-weight: 800; line-height: 1.2; color: #bdb7b4; }
.page-hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gray) 0%, var(--gray) 42%, rgba(243, 242, 242, .6) 62%, rgba(243, 242, 242, 0) 85%); }
.page-hero--partners .page-hero__title { font-size: clamp(3rem, 6vw, 5.25rem); }
.page-hero--partners .page-hero__lead { max-width: 28em; }
.page-hero__pill { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); }
.page-hero__pill--red { background: var(--red); color: #fff; }
@media (max-width: 900px) {
	.page-hero--partners { min-height: 0; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
	.page-hero__wall { width: 120%; right: -30%; opacity: .5; }
	.page-hero__fade { background: linear-gradient(180deg, rgba(243, 242, 242, .7) 0%, var(--gray) 60%); }
}

/* dark with scene */
.page-hero--dark { background: var(--night); color: #fff; padding: calc(var(--header-h) + clamp(3rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 6vw, 4.5rem); }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .2) 100%); }
.page-hero--dark .page-hero__inner { position: relative; }
.page-hero--dark .eyebrow { margin-bottom: 1rem; }
.page-hero--dark .page-hero__title { color: #fff; font-size: clamp(3rem, 7vw, 5.75rem); letter-spacing: -.04em; }
.page-hero--dark .page-hero__lead { color: rgba(247, 243, 239, .75); }
.page-hero--dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* dark split */
.page-hero--split { background: var(--ink); color: #fff; padding: clamp(2.25rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4rem); }
.page-hero__mark { position: absolute; left: -1%; bottom: -.18em; font-family: var(--font-head); font-size: clamp(7rem, 16vw, 14rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: rgba(255, 255, 255, .04); white-space: nowrap; pointer-events: none; }
.page-hero--split .page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 2rem; align-items: center; }
.page-hero--split .breadcrumb, .page-hero--split .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-hero--split .breadcrumb > :last-child { color: #fff; }
.page-hero--split .page-hero__title { color: #fff; }
.page-hero--split .page-hero__lead { color: rgba(247, 243, 239, .75); margin-bottom: 1.4rem; }
.page-hero__visual img { width: 100%; height: auto; max-height: 420px; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .5)); transition: scale .35s; }
.page-hero__visual img:hover { scale: 1.03; }
@media (max-width: 900px) { .page-hero--split .page-hero__inner { grid-template-columns: 1fr; } .page-hero__visual img { max-height: 260px; margin: 0 auto; } }
/* 12.5 Expertise center pages on phones: no 3D illustration (it made the header too tall), and no space left for it. */
@media (max-width: 767px) {
	.page-hero--split .page-hero__visual { display: none; }
	/* the technology pills of the hero stay small labels (13 November: on two columns they looked like buttons) */
	.page-hero--split .pills li { white-space: nowrap; }
}

/* centered (blog) */
.page-hero--center { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.page-hero--center .breadcrumb { justify-content: center; }
.page-hero--center .page-hero__title { margin-left: auto; margin-right: auto; }
.page-hero--center .page-hero__lead { margin: 0 auto; color: var(--ink-2); max-width: 36em; }

/* article */
.article-hero { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; }
.article-hero__inner { max-width: 880px; }
.article-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.article-hero__meta .pill-red { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.article-hero__title { font-family: var(--font-head); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(2.3rem, 5vw, 4rem); margin: 0 auto 1rem; }
.article-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin: 0 auto; }
.article-hero__media { margin: clamp(2rem, 4vw, 3rem) auto 0; }
/* The frame decides the shape (21:8 as in design/articolo.html), the photo fills it. */
.article-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 600px) { .article-hero__media img { aspect-ratio: 16 / 9; } }

/* ---------- Page body & content ---------- */
.page-body { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-body--gray { background: var(--gray); }
.entry-content { max-width: 100%; }
.entry-content--narrow { max-width: 760px; margin: 0 auto; font-size: 1.09rem; }
.entry-content > h2, .entry-content > .wp-block-heading { margin-top: 3rem; }
.entry-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content p, .entry-content li { color: var(--ink-2); }
.entry-content ul:not([class*="as-"]):not(.stats):not(.certs):not(.industries):not(.offices):not(.adv-checks):not(.pills) { padding-left: 1.2rem; }
.entry-content li { margin-bottom: .45rem; }
.entry-content li::marker { color: var(--red); }
.entry-content img { border-radius: var(--radius-lg); }
/* Logos and small icons are shown whole: no rounded corners that cut them. */
.entry-content .partner-card__logo img,
.entry-content .logo-tile img,
.entry-content .industries img { border-radius: 0; }
.entry-content blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--red); background: var(--gray); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.entry-content .adv-lead { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.55; color: var(--ink); max-width: 46em; margin-bottom: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.entry-content .adv-lead strong { color: var(--ink); font-weight: 800; }
.entry-content .adv-split { margin: 3.5rem 0; }
.entry-content .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }
.entry-content .adv-callout { margin: 2.5rem 0; padding: 1.6rem 1.8rem; background: var(--red); color: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 50px -30px rgba(181, 31, 25, .7); }
.entry-content .adv-callout p, .entry-content .adv-callout strong, .entry-content .adv-callout a { color: #fff; margin: 0; }
.entry-content .adv-note { font-size: .95rem; color: var(--ink-2); padding: 1rem 1.25rem; background: #fdf6e6; border-radius: var(--radius); }
.entry-content .adv-tech-table .wp-block-column, .entry-content .adv-policies .wp-block-column, .entry-content .adv-wb-info .wp-block-column { padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -34px rgba(29, 26, 27, .5); }
.entry-content .adv-tech-table h3, .entry-content .adv-policies h3, .entry-content .adv-wb-info h3 { margin-top: 0; font-size: 1.15rem; }
.entry-content .adv-tech-table h3:not(:first-child) { margin-top: 1.5rem; }
.entry-content .adv-policies .wp-block-column { border-top: 4px solid var(--red); }
.entry-content .adv-wb-info { margin-top: 3rem; }
.entry-content .adv-wb-info .adv-checks li { font-size: .95rem; }
.entry-content .adv-apply-block { margin-top: 4rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--gray); }
.entry-content .adv-apply-block > h2 { margin-top: 0; }
.entry-content .adv-apply-block .as-card { box-shadow: none; border: 0; }
.entry-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; background: var(--gray); color: var(--ink); font-weight: 700; font-size: .85rem; text-decoration: none; }
.share__btn:hover { background: var(--ink); color: #fff; }
.share__btn svg { width: 15px; height: 15px; }

/* Case study / job layouts */
.case-layout, .job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.case-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.case-aside__box { padding: 1.7rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.case-aside__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: .6rem 0 0; }
.case-aside__value { font-weight: 700; margin: 0 0 .4rem; }
.case-aside__note { font-size: .82rem; color: var(--muted); margin: .6rem 0 1rem; }
.case-aside .btn { margin-top: .75rem; }
.case-layout .entry-content > h2:first-child { margin-top: 0; }
.case-layout .entry-content h2, .job-layout .entry-content h2 { font-size: 1.7rem; }
@media (max-width: 960px) { .case-layout, .job-layout { grid-template-columns: 1fr; } .case-aside { position: static; } }

/* Job details card */
.job-details { padding: 1.7rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.job-details__title { font-family: var(--font); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .9rem; }
.job-details__list { margin: 0 0 1.25rem; }
.job-details__item { display: flex; gap: .9rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); }
.job-details__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--red-50); color: var(--red); }
.job-details dt { font-size: .76rem; color: var(--muted); font-weight: 500; margin: 0 0 .1rem; }
.job-details dd { margin: 0; font-weight: 800; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.job-details__all { display: block; text-align: center; margin-top: 1rem; font-weight: 700; color: var(--ink); text-decoration: underline; }
.job-layout .case-aside { position: sticky; }
.job-layout .entry-content h2 { margin-top: 2.25rem; }
.job-layout .entry-content > h2:first-child { margin-top: 0; }
.job-layout .entry-content ul:not([class*="as-"]) { list-style: none; padding: 0; }
.job-layout .entry-content ul:not([class*="as-"]) li { position: relative; padding-left: 2rem; }
.job-layout .entry-content ul:not([class*="as-"]) li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b51f19' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }

/* Search & 404 */
.search-form { display: flex; gap: .6rem; max-width: 520px; margin: 0 auto 1.5rem; }
.search-form input { flex: 1; padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-2); font: inherit; min-width: 0; }
.not-found { text-align: center; padding: 2rem 0 4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdb7b4; font-size: .95rem; padding-top: clamp(3.5rem, 7vw, 5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 3rem 2.5rem; padding-bottom: 3.5rem; }
.site-footer__brand img { width: 170px; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 24em; line-height: 1.6; }
.site-footer__title { font-family: var(--font); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1.1rem; }
.site-footer a { color: #bdb7b4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-menu, .footer-offices, .footer-contacts, .legal-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: .75rem; }
.footer-offices li, .footer-contacts li { margin-bottom: 1rem; line-height: 1.5; }
.footer-offices strong { color: #fff; font-weight: 600; }
.footer-contacts span { display: block; }
.footer-contacts a { color: #fff; font-weight: 600; }
.site-footer .btn--primary { color: #fff; margin-top: .25rem; }
.socials { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.5rem 0 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .2s, border-color .2s, transform .3s; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-top: 1.75rem; padding-bottom: 2.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.legal-menu a { text-decoration: underline; text-underline-offset: .2em; }
.cookie-prefs-link { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; color: #bdb7b4; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.cookie-prefs-link:hover { color: #fff; }
.entry-content .advant-cookie-table-wrap { margin: 1.5rem 0 2.5rem; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Plugin components (Advant Suite) ---------- */
.as-card { border-radius: var(--radius-lg); border-color: var(--line); }
.as-form input[type="text"], .as-form input[type="email"], .as-form input[type="tel"], .as-form input[type="url"], .as-form input[type="password"], .as-form input:not([type]), .as-form select, .as-form textarea { border-color: var(--line-2); border-radius: 12px; padding: .85rem 1rem; }
.as-form input[type="file"] { border-radius: 12px; }
.as-field label { font-size: .85rem; }

/* jobs list */
.as-jobs { margin: 1.5rem 0 1rem; }
.as-jobs__filters select { border-radius: 12px; padding: .75rem 2.5rem .75rem 1rem; border-color: var(--line-2); min-width: 190px; }
.adv-jobfilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.adv-jobfilter__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.adv-jobfilter__pill { appearance: none; cursor: pointer; font: inherit; font-size: .94rem; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--line-2); border-radius: 999px; padding: .6rem 1.2rem; min-height: 0; box-shadow: none; transition: background-color .2s, border-color .2s, color .2s; }
.adv-jobfilter__pill:hover { border-color: var(--red); color: var(--red); background: #fff; }
.adv-jobfilter__pill[aria-pressed="true"], .adv-jobfilter__pill[aria-pressed="true"]:hover { background: var(--red); border-color: var(--red); color: #fff; }
.adv-jobfilter__pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.adv-jobfilter .as-jobs__count { color: var(--ink-2); font-weight: 600; }
.as-jobs [hidden] { display: none !important; }
.as-jobs__list { gap: 12px; }
.as-job__link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main arrow" "meta arrow"; gap: .6rem 1.5rem; padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); border-color: var(--line); }
.as-job__link:hover { border-color: var(--line); box-shadow: 0 24px 40px -28px rgba(29, 26, 27, .5); }
.as-job__main { grid-area: main; }
.as-job__meta { grid-area: meta; justify-content: flex-start; }
.as-job__meta li { background: var(--gray); font-weight: 600; font-size: .78rem; }
.as-job__area { display: inline-block; text-transform: none; letter-spacing: 0; background: var(--red-50); color: var(--red); border-radius: 999px; padding: .25rem .65rem; font-size: .72rem; }
.as-job__title { font-size: 1.3rem; font-weight: 800; }
.as-job__excerpt { color: var(--ink-2); }
.as-job__arrow, .as-jobs .as-job__arrow { grid-area: arrow; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.2rem; line-height: 1; transition: transform .25s; }
.as-job__link:hover .as-job__arrow { transform: translateX(3px); }
@media (max-width: 720px) { .as-job__link { grid-template-columns: 1fr; grid-template-areas: "main" "meta"; } }

/* case studies */
.as-chips { gap: .5rem; margin-bottom: 2rem; }
.as-chip { border-width: 2px; border-color: var(--line-2); padding: .6rem 1.2rem; }
.as-chip.is-active, .as-chip:hover { background: var(--red); border-color: var(--red); color: #fff; }
.as-cases__grid { gap: 20px; }
.as-case__link { border-radius: var(--radius-lg); border-color: var(--line); transition: transform .3s, box-shadow .3s; }
.as-case__link:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .45); }
.as-case__media { background: var(--ink); }
.as-case:nth-child(3n+2) .as-case__media { background: var(--red); }
.as-case:nth-child(3n) .as-case__media { background: var(--ink-2); }
.as-case__body { padding: 1.6rem 1.75rem 1.75rem; gap: .7rem; }
.as-case__cat { font-size: .72rem; letter-spacing: .12em; }
.as-case__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.as-case__excerpt { color: var(--ink-2); font-size: .94rem; }
.as-tags li { background: var(--gray); border-radius: 999px; padding: .3rem .65rem; font-size: .74rem; }
.entry-content .as-cases { margin: 1.5rem 0 2rem; }

/* whistleblowing */
.as-wb { margin: 2.5rem 0; }
.as-wb-options { gap: 20px; align-items: stretch; }
.as-option { padding: 2rem; border-radius: var(--radius-lg); border: 0; box-shadow: var(--shadow-lg); }
.as-option__icon { border-radius: 14px; width: 48px; height: 48px; background: var(--red); color: #fff; transform: rotate(-6deg); }
.as-option h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; }
.as-option__tag { color: var(--muted) !important; }
.as-option .as-btn { width: 100%; }
.as-wb-options > .as-option:first-child { background: var(--red); color: #fff; }
.as-wb-options > .as-option:first-child h3, .as-wb-options > .as-option:first-child p, .as-wb-options > .as-option:first-child .as-option__tag { color: #fff !important; }
.as-wb-options > .as-option:first-child p { opacity: .9; }
.as-wb-options > .as-option:first-child .as-option__icon { background: rgba(255, 255, 255, .18); }
.as-wb-options > .as-option:first-child .as-btn { background: #fff; color: var(--ink); }
.as-wb-options > .as-option:last-child:not(:first-child) { background: var(--ink); color: #fff; }
.as-wb-options > .as-option:last-child:not(:first-child) h3, .as-wb-options > .as-option:last-child:not(:first-child) p, .as-wb-options > .as-option:last-child:not(:first-child) .as-option__tag { color: #fff !important; }
.as-wb-options > .as-option:last-child:not(:first-child) p { opacity: .8; }
.as-wb-options > .as-option:last-child:not(:first-child) .as-option__icon { background: rgba(255, 255, 255, .14); }
.as-wb-options > .as-option:last-child:not(:first-child) .as-btn { background: #fff; color: var(--ink); border-color: #fff; }
.as-wb-options > .as-option:last-child:not(:first-child) .as-link { color: #fff; }
.as-guarantees { background: var(--gray); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.as-guarantees li { font-weight: 700; }
.entry-content .as-jobs__list, .entry-content .as-tags, .entry-content .as-guarantees, .entry-content .as-thread { padding-left: 0; }
.entry-content .as-guarantees { padding: 1.25rem 1.5rem; }
.entry-content .as-card h2, .entry-content .as-card h3 { margin-top: 0; }
.as-apply { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--gray); }
.as-apply .as-card { box-shadow: none; border: 0; background: transparent; padding: 0; }
.job-layout .as-apply { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Legal pages: sticky table of contents ---------- */
.legal { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 72px; padding-bottom: 112px; }
.legal-toc { flex: 0 1 260px; min-width: 220px; position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.legal-toc__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal-toc a { padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.legal-toc a:hover, .legal-toc a.is-active { background: #fbeceb; color: var(--red); }
.legal__body { flex: 1 1 560px; min-width: 0; font-size: 17px; line-height: 1.75; color: #2a2627; }
.legal__body h2 { display: flex; align-items: baseline; gap: 14px; font-size: 26px; letter-spacing: -.025em; font-weight: 800; margin: 2.2rem 0 .75rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body > h2:first-child, .legal__body > p:first-child + h2 { margin-top: 0; }
.legal__num { font-size: 15px; font-weight: 800; color: var(--red); }
/* "Draft" note at the top of the text (a paragraph made only of italic text): shown as a yellow notice, as in the design. */
.legal__body > p:first-child:has(> em:only-child) { display: flex; gap: 12px; align-items: flex-start; background: #fff6e0; border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: #5c4400; margin-bottom: 2.2rem; }
.legal__body > p:first-child:has(> em:only-child) em { font-style: normal; }
.legal__body > p:first-child:has(> em:only-child)::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) { .legal { gap: 32px; padding-top: 48px; padding-bottom: 72px; } .legal-toc { position: static; flex-basis: 100%; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .expertise__card.reveal.is-visible:hover { transform: translateY(-6px); }

@media print {
	.site-header, .site-footer, .cta-band, .page-hero__shape, .hero__bg, .page-hero__bg { display: none !important; }
	.hero, .page-hero--dark, .page-hero--split { background: none; color: var(--ink); padding: 1rem 0; }
}

/* Tables in content (privacy policy) */
.entry-content .wp-block-table { margin: 1.5rem 0 2rem; overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { text-align: left; vertical-align: top; padding: .85rem .8rem; border: 0; border-bottom: 1px solid var(--line); }
.entry-content .wp-block-table thead th { background: var(--ink); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border: 0; }
.entry-content .wp-block-table thead th:first-child { border-radius: 12px 0 0 0; }
.entry-content .wp-block-table thead th:last-child { border-radius: 0 12px 0 0; }
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: var(--gray); }
@media (max-width: 640px) { .entry-content .wp-block-table table { min-width: 560px; } }

/* ---------- Elementor pages: theme margins and typography ---------- */
.elementor-page-body { padding-block: clamp(3rem, 6vw, 5rem); }
.home .elementor-page-body, .elementor-page-body--flush { padding-block: 0; }
.elementor-page-body > .elementor > .e-con,
.elementor-page-body > .elementor > .e-flexbox,
.elementor-page-body > .elementor > .e-div-block,
.elementor-page-body > .elementor > .elementor-section {
	--container-max-width: var(--container);
	--container-default-padding-left: var(--gutter);
	--container-default-padding-right: var(--gutter);
}
.elementor-page-body > .elementor > .e-con {
	padding-left: max(var(--gutter), var(--padding-left, 0px));
	padding-right: max(var(--gutter), var(--padding-right, 0px));
}
.elementor-page-body > .elementor > .e-flexbox, .elementor-page-body > .elementor > .e-div-block { padding-left: var(--gutter); padding-right: var(--gutter); }
.elementor-page-body > .elementor > .e-con-boxed > .e-con-inner { margin-left: auto; margin-right: auto; }
.elementor-page-body > .elementor > .e-con-full { max-width: calc(var(--container) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.elementor-page-body > .elementor > .e-con-full.alignfull, .elementor-page-body > .elementor > .e-con-full.advant-full { max-width: none; }
.elementor-page-body > .elementor > .elementor-section { padding-left: var(--gutter); padding-right: var(--gutter); }
.elementor-page-body > .elementor > .elementor-section > .elementor-container { margin-left: auto; margin-right: auto; }
.elementor-page-body > .elementor > .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--container); }
.elementor-page-body .e-con-boxed > .e-con-inner { max-width: min(100%, var(--container)); }
.elementor-page-body ul[class*="elementor"], .elementor-page-body ol[class*="elementor"] { padding-left: 0; }
.elementor-page-body ul[class*="elementor"] li { margin-bottom: 0; }
.elementor-page-body .elementor-widget-text-editor > :first-child, .elementor-page-body .elementor-widget-text-editor .elementor-widget-container > :first-child { margin-top: 0; }
.elementor-page-body .elementor-heading-title { font-family: inherit; }
.elementor-page-body h1.elementor-heading-title, .elementor-page-body h2.elementor-heading-title { font-family: var(--font-head); }

/* Home built with Elementor: sections edge to edge, no extra gaps. */
.elementor-page-body > .elementor > .e-con.advant-full { padding: 0; max-width: none; --gap: 0px; --row-gap: 0px; --column-gap: 0px; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor-page-body > .elementor > .e-con.advant-full > .elementor-widget,
.elementor-page-body > .elementor > .e-con.advant-full > .e-con-inner > .elementor-widget { width: 100%; margin: 0; }
.elementor-page-body > .elementor > .e-con.advant-full > .e-con-inner { max-width: none; padding: 0; }
.elementor-page-body .elementor-widget[class*="elementor-widget-advant-home-"] { width: 100%; }
/* Elementor editor: keep the transparent header readable while editing. */
.elementor-editor-active.has-dark-hero .site-header, body.elementor-editor-preview .site-header { position: sticky; }

/* Elementor kits style every <button>: keep the theme's own buttons neutral. */
.site-header .submenu-toggle, .site-header .nav-toggle, .site-footer .cookie-prefs-link { background: none !important; box-shadow: none !important; border-radius: 0; min-height: 0; }

/* ---------- Pulsante (core/button) with the Advant styles: Rosso (default), Chiaro, Scuro ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.65rem; border-radius: 999px; border: 2px solid transparent; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; background: #b51f19; color: #fff; transition: background-color .2s, color .2s, border-color .2s, transform .3s, box-shadow .3s; }
.wp-block-button .wp-block-button__link:hover { background: #8f150f; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(29, 26, 27, .55); }
.wp-block-button.is-style-advant-chiaro .wp-block-button__link { background: #fff; color: #1d1a1b; border-color: #ebe8e6; }
.wp-block-button.is-style-advant-chiaro .wp-block-button__link:hover { background: #fff; color: #1d1a1b; border-color: #1d1a1b; }
.wp-block-button.is-style-advant-scuro .wp-block-button__link { background: #1d1a1b; color: #fff; }
.wp-block-button.is-style-advant-scuro .wp-block-button__link:hover { background: #3b3738; color: #fff; }
.wp-block-button.has-custom-width .wp-block-button__link, .wp-block-button__width-100 .wp-block-button__link { width: 100%; }
/* Text colour chosen in the editor (Advant palette). */
.wp-block-button__link.has-advant-red-color, .wp-block-button__link.has-advant-red-color:hover { color: #b51f19 !important; }
.wp-block-button__link.has-ink-color, .wp-block-button__link.has-ink-color:hover { color: #1d1a1b !important; }
.wp-block-button__link.has-light-color, .wp-block-button__link.has-light-color:hover { color: #f3f2f2 !important; }
.wp-block-button__link.has-white-color, .wp-block-button__link.has-white-color:hover { color: #fff !important; }
.has-advant-red-color { color: #b51f19; } .has-ink-color { color: #1d1a1b; } .has-light-color { color: #f3f2f2; } .has-white-color { color: #fff; }
.has-advant-red-background-color { background-color: #b51f19; } .has-ink-background-color { background-color: #1d1a1b; } .has-light-background-color { background-color: #f3f2f2; } .has-white-background-color { background-color: #fff; }
@media (prefers-reduced-motion: reduce) { .wp-block-button .wp-block-button__link { transition: none; } .wp-block-button .wp-block-button__link:hover { transform: none; } }

/* Tables on phones (Michele, 17 November): each row becomes a card, every cell with its column title above (labels set by main.js). */
@media (max-width: 600px) {
	.wp-block-table.adv-stack { overflow: visible !important; }
	.wp-block-table.adv-stack table, .wp-block-table.adv-stack tbody, .wp-block-table.adv-stack tr, .wp-block-table.adv-stack td { display: block !important; width: 100% !important; min-width: 0 !important; }
	.wp-block-table.adv-stack table { border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
	.wp-block-table.adv-stack thead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.wp-block-table.adv-stack tr { margin: 0 0 12px; border: 1px solid #ebe8e6; border-radius: 16px; overflow: hidden; background: #fff; }
	.wp-block-table.adv-stack td { background: #fff !important; border: 0 !important; border-top: 1px solid #ebe8e6 !important; padding: .8rem 1rem !important; }
	.wp-block-table.adv-stack td:first-child { border-top: 0 !important; background: #f3f2f2 !important; font-weight: 600; }
	.wp-block-table.adv-stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #57524f; }
}
