/* ==========================================================================
   Advant blocks (Gutenberg). Loaded on the site and inside the editor,
   so the page looks the same while it is being edited. Values are written
   out (no theme variables), because the editor does not load main.css.
   ========================================================================== */

/* ---------- Shared ---------- */
.adv-section { position: relative; box-sizing: border-box; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d1a1b; }
.adv-section *, .adv-section *::before, .adv-section *::after { box-sizing: border-box; }
.adv-wrap { width: 100%; max-width: calc(1240px + 2 * clamp(16px, 4vw, 32px)); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.adv-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b51f19; }
.adv-eyebrow::before { content: ""; width: 32px; height: 2px; background: #b51f19; flex: none; }
.adv-title { margin: 0; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.035em; font-weight: 900; color: #1d1a1b; }
.adv-title .accent { color: #b51f19; }

/* Pages made of Advant blocks: sections run full width; any other block keeps the text column. */
.advant-blocks > :not(.adv-section):not(.adv-home) { max-width: calc(1240px + 2 * clamp(16px, 4vw, 32px)); margin-left: auto; margin-right: auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }

/* ---------- I settori in cui operiamo (design/chi-siamo.html) ---------- */
.adv-settori { background: #f3f2f2; padding: 104px 0; }
.adv-settori__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.adv-settori__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.adv-settori__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #3b3738; }
.adv-settori__pills { flex: 2 1 640px; min-width: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; list-style: none; margin: 0; padding: 0; }
.adv-pill { display: inline-flex; align-items: center; gap: 12px; margin: 0; background: #fff; color: #1d1a1b; border-radius: 999px; padding: 10px 22px 10px 10px; font-size: 17px; font-weight: 700; line-height: 1.3; box-shadow: 0 14px 28px -20px rgba(29, 26, 27, .5); transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease; cursor: default; }
.adv-pill--l { transform: rotate(-1.5deg); }
.adv-pill--0 { transform: rotate(0deg); }
.adv-pill--r { transform: rotate(1.5deg); }
.adv-pill__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #fbeceb; color: #b51f19; display: flex; align-items: center; justify-content: center; transition: background-color .25s ease, color .25s ease; }
.adv-pill:hover { background: #b51f19; color: #fff; transform: translateY(-4px) rotate(0deg); box-shadow: 0 22px 34px -18px rgba(181, 31, 25, .75); }
.adv-pill:hover .adv-pill__icon { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 600px) { .adv-settori { padding: 72px 0; } .adv-pill { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .adv-pill, .adv-pill__icon { transition: none; } .adv-pill:hover { transform: rotate(0deg); } }

/* Editor only: selected pill, "add" pill. */
.adv-pill.is-current { outline: 2px solid #b51f19; outline-offset: 3px; }
.adv-pill--add { background: transparent; box-shadow: none; padding: 0; }
.adv-pill--add button { border: 2px dashed #b51f19; background: transparent; color: #b51f19; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Shared (more) ---------- */
.adv-section p { margin: 0; }
.adv-section .accent { color: #b51f19; }
.adv-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; max-width: 760px; }
.adv-lead { font-size: 18px; line-height: 1.6; color: #3b3738; }
.adv-eyebrow--light { color: #fff; }
.adv-title--light { color: #fff; }
.adv-title--light .accent { color: #ff6a5c; }
.adv-btn { display: inline-flex; align-items: center; gap: 10px; background: #b51f19; color: #fff; border-radius: 999px; padding: 16px 28px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.adv-btn:hover { background: #8f150f; color: #fff; transform: translateY(-2px); }
/* Editor: the preview is not clickable, a click selects the block. */
.advant-ssr > * { pointer-events: none; }

/* ---------- Introduzione ---------- */
.adv-intro { padding: 96px 0 72px; }
.adv-intro__inner { display: flex; flex-direction: column; gap: 28px; }
.adv-intro--grande { padding: 104px 0 0; }
.adv-intro--grande .adv-intro__main { max-width: 24em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; letter-spacing: -.03em; font-weight: 800; color: #1d1a1b; }
.adv-intro--grande .adv-intro__side { font-size: 20px; line-height: 1.6; color: #3b3738; max-width: 40em; }
.adv-intro strong { color: #1d1a1b; }
.adv-intro--semplice .adv-intro__inner { max-width: calc(980px + 2 * clamp(16px, 4vw, 32px)); }
.adv-intro--semplice .adv-intro__main { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; letter-spacing: -.015em; font-weight: 500; color: #1d1a1b; }
/* two columns (design/cpm.html, adu.html) */
.adv-intro--colonne { padding: 96px 0; }
.adv-intro--colonne .adv-intro__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px 64px; align-items: start; }
.adv-intro--colonne .adv-intro__main { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.45; letter-spacing: -.015em; font-weight: 500; color: #1d1a1b; }
.adv-intro--colonne .adv-intro__main strong { font-weight: 800; }
.adv-intro--colonne .adv-intro__side { font-size: 17px; line-height: 1.7; color: #3b3738; padding-top: 6px; }
.adv-intro__main p + p, .adv-intro__side p + p { margin-top: .8em; }
@media (max-width: 900px) { .adv-intro--colonne .adv-intro__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Numeri chiave ---------- */
.adv-numeri { padding: 48px 0; }
.adv-numeri--foto { padding: 64px 0 0; }
.adv-numeri__photos { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 16px; align-items: end; }
.adv-numeri__photo { display: block; width: 100%; object-fit: cover; border-radius: 24px; background: #dcd8d5; }
.adv-numeri__photo--1 { height: 420px; }
.adv-numeri__photo--2 { height: 320px; transform: translateY(-48px); }
.adv-numeri__photo--3 { height: 380px; }
.adv-numeri__card { position: relative; list-style: none; margin: 0; padding: 12px; background: #fff; border-radius: 28px; box-shadow: 0 40px 80px -36px rgba(29, 26, 27, .4); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.adv-numeri--foto .adv-numeri__card { margin-top: -72px; }
.adv-numeri__item { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid #ebe8e6; }
.adv-numeri__item:first-child { border-left: 0; }
.adv-numeri__icon { width: 40px; height: 40px; border-radius: 12px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; }
.adv-numeri__value { font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 48px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: #1d1a1b; }
.adv-numeri__label { font-size: 14px; line-height: 1.35; color: #57524f; }
@media (max-width: 900px) {
	.adv-numeri__photos { grid-template-columns: 1fr 1fr; }
	.adv-numeri__photo--1 { grid-column: 1 / -1; height: 300px; }
	.adv-numeri__photo--2, .adv-numeri__photo--3 { height: 220px; transform: none; }
	.adv-numeri--foto .adv-numeri__card { margin-top: -40px; }
}
@media (max-width: 600px) {
	.adv-numeri__card { grid-template-columns: 1fr 1fr; }
	.adv-numeri__item { border-left: 0; padding: 22px 16px; }
	.adv-numeri__item:nth-child(even) { border-left: 1px solid #ebe8e6; }
	.adv-numeri__item:nth-child(n+3) { border-top: 1px solid #ebe8e6; }
	.adv-numeri__value { font-size: 38px; }
}

/* ---------- Il nostro approccio ---------- */
.adv-approccio { padding: 128px 0 112px; }
.adv-approccio__inner { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.adv-approccio__media { flex: 1 1 480px; min-width: 0; position: relative; padding-bottom: 120px; }
.adv-approccio__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; background: #dcd8d5; }
.adv-approccio__card { position: absolute; right: -16px; bottom: 0; width: 68%; background: #b51f19; color: #fff; border-radius: 24px; padding: 28px 30px; box-shadow: 0 30px 60px -28px rgba(181, 31, 25, .75); display: flex; flex-direction: column; gap: 12px; transform: rotate(-2deg); }
.adv-approccio__card strong { font-size: 24px; line-height: 1.2; }
.adv-approccio__card > span { font-size: 16px; line-height: 1.55; }
.adv-approccio__offices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.adv-approccio__offices span { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.adv-approccio__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.adv-approccio__body { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.65; color: #3b3738; }
.adv-approccio__list { margin: 8px 0 0; padding: 0; list-style: none; border-bottom: 1px solid #ebe8e6; }
.adv-approccio__list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid #ebe8e6; font-size: 17px; font-weight: 700; }
.adv-approccio__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #fbeceb; color: #b51f19; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) {
	.adv-approccio { padding: 80px 0; }
	.adv-approccio__media { padding-bottom: 0; }
	.adv-approccio__card { position: relative; right: auto; width: auto; margin: -48px 12px 0; }
}

/* ---------- Centri di competenza ---------- */
.adv-centri { background: #f3f2f2; padding: 112px 0; }
.adv-centri__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.adv-centro { position: relative; overflow: hidden; display: flex; gap: 22px; align-items: flex-start; background: #fff; border-radius: 24px; padding: 28px; color: #1d1a1b; text-decoration: none; box-shadow: 0 30px 60px -44px rgba(29, 26, 27, .45); transition: transform .3s ease, box-shadow .3s ease; }
a.adv-centro:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .45); color: #1d1a1b; }
.adv-centro > :not(.adv-centro__mark) { position: relative; }
.adv-centro__mark { position: absolute; right: -6px; bottom: -22px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 92px; font-weight: 900; letter-spacing: -.06em; color: #f3f2f2; line-height: 1; white-space: nowrap; pointer-events: none; }
.adv-centro__icon { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 18px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); transition: transform .3s ease; }
a.adv-centro:hover .adv-centro__icon { transform: rotate(6deg); }
.adv-centro__body { display: flex; flex-direction: column; gap: 8px; }
.adv-centro__name { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.adv-centro__claim { font-size: 15px; font-weight: 600; color: #b51f19; }
.adv-centro__text { font-size: 15px; line-height: 1.55; color: #3b3738; }
.adv-centro__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #b51f19; }
/* large version (home, Le soluzioni) */
.adv-centri--grande .adv-centri__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.adv-centri--grande .adv-centro { flex-direction: column; gap: 18px; border-radius: 28px; padding: 40px 36px; box-shadow: 0 30px 60px -40px rgba(29, 26, 27, .4); container-type: inline-size; }
.adv-centri--grande .adv-centro__mark { right: 18px; bottom: auto; top: 14px; font-size: 4.5rem; font-size: min(6.5rem, 21cqi); }
.adv-centri--grande .adv-centro__icon { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 18px 30px -14px rgba(181, 31, 25, .8); }
.adv-centri--grande .adv-centro__body { gap: 18px; width: 100%; }
.adv-centri--grande .adv-centro__name { margin-top: 8px; font-size: 26px; line-height: 1.15; font-weight: 800; }
.adv-centri--grande .adv-centro__claim { font-size: 16px; }
.adv-centri--grande .adv-centro__text { font-size: 16px; line-height: 1.6; }
.adv-centro__tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.adv-centro__tags span { background: #f3f2f2; padding: 6px 12px; border-radius: 999px; }
.adv-centri--grande .adv-centro__more { justify-content: space-between; padding-top: 18px; border-top: 1px solid #ebe8e6; }
.adv-centri--grande .adv-centro__arrow { width: 40px; height: 40px; border-radius: 50%; background: #f3f2f2; color: #b51f19; display: flex; align-items: center; justify-content: center; transition: background-color .3s ease, color .3s ease; }
.adv-centri--grande a.adv-centro:hover .adv-centro__arrow { background: #b51f19; color: #fff; }
@media (min-width: 1240px) { .adv-centri--grande .adv-centro:nth-child(2) { margin-top: 48px; } .adv-centri--grande .adv-centro:nth-child(3) { margin-top: 96px; } }
@media (max-width: 600px) { .adv-centri { padding: 80px 0; } .adv-centri__grid, .adv-centri--grande .adv-centri__grid { grid-template-columns: 1fr; } }

/* ---------- ADVANT Academy ---------- */
.adv-academy { background: #1d1a1b; color: #fff; padding: 112px 0; overflow: hidden; }
.adv-academy__band { position: absolute; left: 0; top: 0; bottom: 0; width: 24%; background: #b51f19; clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%); }
.adv-academy__inner { position: relative; display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.adv-academy__media { flex: 1 1 440px; min-width: 0; position: relative; height: 540px; }
.adv-academy__photo { position: absolute; left: 0; top: 0; width: 82%; height: 76%; object-fit: cover; border-radius: 28px; background: #3b3738; }
.adv-academy__badge { position: absolute; right: -10px; bottom: -10px; width: 50%; height: auto; transform: rotate(4deg); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }
.adv-academy__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.adv-academy__body { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.65; color: #d6d1cf; }
.adv-academy__cards { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adv-academy__cards li { position: relative; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 26px; min-height: 150px; display: flex; align-items: flex-end; }
.adv-academy__num { position: absolute; right: -6px; top: -26px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 130px; font-weight: 900; letter-spacing: -.06em; line-height: 1; color: rgba(255, 255, 255, .07); }
.adv-academy__card-text { position: relative; font-size: 17px; font-weight: 600; line-height: 1.4; }
@media (max-width: 900px) { .adv-academy__media { height: 420px; } .adv-academy__band { bottom: auto; height: 360px; width: 75%; clip-path: polygon(0 0, 100% 0, 0 100%); } }
@media (max-width: 600px) { .adv-academy { padding: 80px 0; } .adv-academy__media { height: 340px; } .adv-academy__cards { grid-template-columns: 1fr; } .adv-academy__cards li { min-height: 110px; } }

/* ---------- Casi studio (design/soluzioni.html) ---------- */
.adv-casi { padding: 112px 0; }
.adv-casi__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.adv-casi__heading { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; }
.adv-casi__lead { flex: 1 1 380px; font-size: 17px; line-height: 1.6; color: #3b3738; }
.adv-casi__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.adv-chip { font: inherit; font-size: 15px; font-weight: 700; border: 2px solid #d6d1cf; background: #fff; color: #1d1a1b; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.adv-chip:hover { border-color: #b51f19; color: #b51f19; }
.adv-chip.is-active { border-color: transparent; background: #b51f19; color: #fff; }
.adv-casi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.adv-caso { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid #ebe8e6; border-radius: 24px; padding: 28px; color: #1d1a1b; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.adv-caso[hidden] { display: none; }
a.adv-caso:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .45); color: #1d1a1b; }
.adv-caso > :not(.adv-caso__num) { position: relative; }
.adv-caso__num { position: absolute; right: -6px; top: -24px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 120px; font-weight: 900; letter-spacing: -.06em; line-height: 1; color: #f3f2f2; pointer-events: none; }
.adv-caso__cat { align-self: flex-start; background: #b51f19; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.adv-caso__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; color: #1d1a1b; }
.adv-caso__text { font-size: 15px; line-height: 1.6; color: #3b3738; }
.adv-caso__tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.adv-caso__tags span { background: #f3f2f2; padding: 5px 10px; border-radius: 999px; }
.adv-caso__more { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #ebe8e6; font-weight: 700; color: #b51f19; }
.adv-caso__arrow { width: 36px; height: 36px; border-radius: 50%; background: #f3f2f2; display: flex; align-items: center; justify-content: center; transition: background-color .3s ease, color .3s ease; }
a.adv-caso:hover .adv-caso__arrow { background: #b51f19; color: #fff; }
.adv-casi__empty { color: #57524f; }
@media (max-width: 600px) { .adv-casi { padding: 80px 0; } .adv-casi__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .adv-caso, .adv-chip { transition: none; } a.adv-caso:hover { transform: none; } }

/* ---------- Invito finale ---------- */
.adv-invito { padding: 112px 0; }
.adv-invito__band { position: relative; overflow: hidden; border-radius: 32px; background: #0e0c0d var(--adv-cta-bg) 70% 50% / cover no-repeat; color: #fff; }
.adv-invito__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%); }
.adv-invito__inner { position: relative; z-index: 1; padding: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.adv-invito__text { flex: 1 1 560px; min-width: 0; }
.adv-invito h2 { margin: 0 0 16px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 900; max-width: 12em; color: #fff; }
.adv-invito h2 .accent { color: #ff6a5c; }
.adv-invito__text p { color: #e4dfdb; font-size: 18px; max-width: 40em; }
.adv-invito__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.adv-invito__mail { display: inline-flex; align-items: center; gap: 10px; padding-left: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.adv-invito__mail:hover { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .adv-invito { padding: 72px 0; } }

@media (prefers-reduced-motion: reduce) { .adv-centro, .adv-centro__icon, .adv-btn { transition: none; } a.adv-centro:hover, .adv-btn:hover { transform: none; } }

/* ==========================================================================
   Expertise center, certification, partner and careers pages (theme 2.2.0)
   ========================================================================== */

/* Big letters in the background (CPM, ADU), light gray. */
.adv-mark { position: absolute; right: -20px; top: 40px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: clamp(140px, 22vw, 300px); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: #ebe8e6; white-space: nowrap; pointer-events: none; user-select: none; }
.adv-section ul.adv-tecno__grid, .adv-section ul.adv-aree__grid, .adv-section ul.adv-scheda__list, .adv-section ul.adv-certind__pills { list-style: none; margin: 0; padding: 0; }
#positions, #apply { scroll-margin-top: 110px; }

/* ---------- Tecnologie (design/data-ai.html) ---------- */
.adv-tecno { background: #f3f2f2; padding: 112px 0; }
.adv-tecno__inner { display: flex; flex-wrap: wrap; gap: 56px; }
.adv-tecno__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.adv-tecno__body { font-size: 17px; line-height: 1.65; color: #3b3738; }
.adv-tecno__body p + p { margin-top: .8em; }
.adv-tecno__grid { flex: 2 1 620px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.adv-tecno__item { background: #fff; border: 1px solid #ebe8e6; border-radius: 18px; padding: 20px 22px; display: flex; align-items: center; gap: 14px; min-height: 84px; }
.adv-tecno__logo { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #f3f2f2; color: #57524f; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.adv-tecno__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: 0; }
.adv-tecno__name { font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ---------- Riquadro in evidenza (design/data-ai.html, cpm.html) ---------- */
.adv-evidenza { padding: 0; z-index: 2; }
.adv-evidenza__box { margin-top: -48px; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; border-radius: 28px; padding: 36px 40px; }
.adv-evidenza--rosso .adv-evidenza__box { background: #b51f19; color: #fff; box-shadow: 0 30px 60px -30px rgba(181, 31, 25, .7); }
.adv-evidenza__icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.adv-evidenza__icon svg { stroke-width: 2; }
.adv-evidenza__text { flex: 1 1 480px; font-size: 19px; line-height: 1.5; }
.adv-evidenza__text strong { display: block; font-size: 22px; }
.adv-evidenza--scuro .adv-evidenza__box { background: #1d1a1b; color: #fff; padding: 32px 40px; gap: 20px 32px; }
.adv-evidenza__label { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff6a5c; }
.adv-evidenza__pills { display: flex; flex-wrap: wrap; gap: 12px; }
.adv-evidenza__pills > span { background: rgba(255, 255, 255, .08); padding: 14px 22px; border-radius: 16px; font-size: 18px; font-weight: 800; }
.adv-evidenza__pills em { font-style: normal; font-weight: 500; color: #d6d1cf; }
@media (max-width: 600px) { .adv-evidenza__box { padding: 28px 24px; } }

/* ---------- Aree di competenza (design/cpm.html) ---------- */
.adv-aree { background: #f3f2f2; padding: 104px 0; overflow: hidden; }
.adv-aree__inner { position: relative; }
.adv-aree__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.adv-aree__grid li { background: #fff; border-radius: 20px; padding: 22px; display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.adv-aree__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- Card con icona (design/adu.html, lavora-con-noi.html) ---------- */
.adv-schede { background: #f3f2f2; padding: 104px 0 136px; overflow: hidden; }
.adv-schede__inner { position: relative; }
.adv-schede__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.adv-scheda { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px -44px rgba(29, 26, 27, .45); }
.adv-scheda__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.adv-section .adv-scheda__title { margin: 6px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: #1d1a1b; }
.adv-scheda__list { display: flex; flex-direction: column; gap: 10px; }
.adv-scheda__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: #3b3738; }
.adv-scheda__list li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #b51f19; margin-top: 7px; }
.adv-scheda__text { font-size: 15px; line-height: 1.6; color: #3b3738; }
.adv-schede--testo { padding: 104px 0 144px; }
.adv-schede--testo .adv-schede__grid { gap: 20px; }
.adv-schede--testo .adv-scheda { padding: 30px; }
.adv-schede--testo .adv-scheda__icon { width: 56px; height: 56px; border-radius: 16px; }
@media (min-width: 1100px) { .adv-scheda:nth-child(even) { margin-top: 32px; } .adv-schede--testo .adv-scheda:nth-child(even) { margin-top: 40px; } }
@media (min-width: 900px) { .adv-schede__grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .adv-schede__grid--5 > .adv-scheda { grid-column: span 2; } .adv-schede__grid--5 > .adv-scheda:nth-child(4) { grid-column: 2 / span 2; } }
@media (min-width: 1100px) { .adv-schede .adv-schede__grid--5 > .adv-scheda:nth-child(n) { margin-top: 0; } .adv-schede .adv-schede__grid--5 > .adv-scheda:nth-child(2), .adv-schede .adv-schede__grid--5 > .adv-scheda:nth-child(5) { margin-top: 40px; } }

/* ---------- Altri centri di competenza ---------- */
.adv-altri { background: #f3f2f2; padding: 72px 0; }
.adv-altri__inner { display: flex; flex-direction: column; gap: 24px; }
.adv-altri__label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #57524f; }
.adv-altri__grid { display: flex; flex-wrap: wrap; gap: 16px; }
.adv-altro { flex: 1 1 320px; text-decoration: none; color: #1d1a1b; background: #fff; border-radius: 22px; padding: 24px 26px; display: flex; align-items: center; gap: 18px; transition: transform .3s ease, box-shadow .3s ease; }
a.adv-altro:hover { color: #1d1a1b; transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .45); }
.adv-altro__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.adv-altro__icon svg { stroke-width: 1.7; }
.adv-altro strong { flex: 1 1 auto; font-size: 19px; line-height: 1.25; }
.adv-altro__arrow { color: #b51f19; font-size: 22px; }

/* ---------- Certificazioni (design/certificazioni.html) ---------- */
.adv-cert { background: #f3f2f2; padding: 104px 0; }
.adv-cert__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.adv-cert__card { background: #fff; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px -44px rgba(29, 26, 27, .45); }
.adv-cert__icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.adv-cert__code { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; }
.adv-cert__name { font-size: 15px; font-weight: 700; color: #b51f19; }
.adv-cert__text { font-size: 15px; line-height: 1.6; color: #3b3738; }
.adv-cert__box { background: #b51f19; color: #fff; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.adv-cert__box-label { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.adv-cert__box strong { font-size: 26px; line-height: 1.2; }
@media (max-width: 600px) { .adv-cert__grid { grid-template-columns: 1fr; } }

/* ---------- Le nostre politiche (design/certificazioni.html) ---------- */
.adv-politiche { background: #1d1a1b; color: #fff; padding: 112px 0; }
.adv-politiche__inner { display: flex; flex-direction: column; gap: 40px; }
.adv-politiche .adv-head { margin-bottom: 0; }
.adv-politiche__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.adv-politica { position: relative; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.adv-politica__num { position: absolute; right: -6px; top: -24px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 120px; font-weight: 900; letter-spacing: -.06em; line-height: 1; color: rgba(255, 255, 255, .06); }
.adv-politica strong { position: relative; font-size: 21px; line-height: 1.25; }
.adv-politica > span:last-child { position: relative; font-size: 15px; line-height: 1.65; color: #d6d1cf; }
.adv-politiche__note { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .06); border-radius: 20px; padding: 22px 26px; transition: background-color .2s ease; }
a.adv-politiche__note:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.adv-politiche__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #b51f19; color: #fff; display: flex; align-items: center; justify-content: center; }
.adv-politiche__text { flex: 1 1 420px; font-size: 17px; line-height: 1.5; }
.adv-politiche__more { font-weight: 700; color: #ff6a5c; }
@media (max-width: 600px) { .adv-politiche { padding: 80px 0; } .adv-politiche__grid { grid-template-columns: 1fr; } }

/* ---------- Certificazioni individuali (design/certificazioni.html) ---------- */
.adv-certind { padding: 112px 0; }
.adv-certind__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.adv-certind__badge { flex: 0 1 360px; min-width: 0; background: #b51f19; color: #fff; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-2deg); box-shadow: 0 30px 60px -28px rgba(181, 31, 25, .75); }
.adv-certind__num { font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 96px; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.adv-certind__label { font-size: 18px; font-weight: 600; }
.adv-certind__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.adv-certind__body { font-size: 17px; line-height: 1.6; color: #3b3738; }
.adv-certind__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.adv-certind__pills li { display: inline-flex; align-items: center; gap: 10px; background: #f3f2f2; border-radius: 999px; padding: 10px 18px 10px 10px; font-size: 15px; font-weight: 700; }
.adv-certind__check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #fbeceb; color: #b51f19; display: flex; align-items: center; justify-content: center; }
.adv-certind__check svg { stroke-width: 2.4; }
@media (max-width: 600px) { .adv-certind { padding: 80px 0; } .adv-certind__num { font-size: 72px; } }

/* ---------- Partner (design/partner.html) ---------- */
.adv-partner { background: #f3f2f2; padding: 104px 0; }
.adv-partner__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.adv-partner__card { background: #fff; border: 1px solid #ebe8e6; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.adv-partner__card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(29, 26, 27, .35); }
/* logos are shown whole: no cropping, no rounded corners */
.adv-partner__logo { height: 120px; background: #f3f2f2; display: flex; align-items: center; justify-content: center; padding: 22px; font-size: 15px; font-weight: 800; color: #57524f; }
.adv-section .adv-partner__logo img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.adv-partner__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.adv-partner__level { align-self: flex-start; background: #fbeceb; color: #b51f19; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.adv-partner__name { font-size: 20px; letter-spacing: -.015em; }
.adv-partner__text { font-size: 15px; line-height: 1.55; color: #3b3738; }

/* ---------- Posizioni aperte (design/lavora-con-noi.html) ---------- */
.adv-posizioni { padding: 112px 0; }
.adv-posizioni .adv-head { margin-bottom: 8px; }

/* ---------- Candidatura spontanea (design/lavora-con-noi.html) ---------- */
.adv-candidatura { background: #1d1a1b; color: #fff; padding: 112px 0; overflow: hidden; }
.adv-candidatura__band { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: #b51f19; clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%); }
.adv-candidatura__inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; }
.adv-candidatura__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.adv-candidatura__body { font-size: 17px; line-height: 1.65; color: #d6d1cf; }
.adv-candidatura__form { flex: 1 1 560px; min-width: 0; background: #fff; color: #1d1a1b; border-radius: 28px; padding: 36px; }
.adv-candidatura__form .as-apply { margin: 0; padding: 0; background: transparent; border-radius: 0; }
.adv-candidatura__form .as-apply > h2, .adv-candidatura__form .as-apply > h3 { display: none; }
.adv-candidatura__form .as-card { box-shadow: none; border: 0; background: transparent; padding: 0; }
@media (max-width: 900px) { .adv-candidatura__band { bottom: auto; height: 260px; width: 70%; clip-path: polygon(0 0, 100% 0, 0 100%); } }
@media (max-width: 600px) { .adv-candidatura { padding: 80px 0; } .adv-candidatura__form { padding: 24px 18px; border-radius: 22px; } }

@media (max-width: 600px) { .adv-tecno, .adv-aree, .adv-schede, .adv-cert, .adv-partner, .adv-posizioni { padding-top: 80px; padding-bottom: 80px; } .adv-mark { font-size: 120px; top: 24px; } }
@media (prefers-reduced-motion: reduce) { .adv-altro, .adv-partner__card, .adv-politiche__note { transition: none; } a.adv-altro:hover, .adv-partner__card:hover { transform: none; } }

/* ==========================================================================
   Corrections of 13 November 2026 (theme 2.4.0, CORREZIONI.md point 12)
   ========================================================================== */

/* 12.1 Watermark of the large expertise center cards (home, Le soluzioni): flush with the top and right edges, as in design/index.html (font Inter).
   right is -19px instead of -8px: the letters I and M of "Data&AI" and "CPM" leave about 11px of empty space on their right.
   The negative values make up for the empty space the font leaves around the letters; the card (overflow: hidden) cuts what sticks out. */
.adv-centri--grande .adv-centro__mark { right: -19px; top: -18px; bottom: auto; font-family: "Inter", system-ui, sans-serif; font-size: 104px; line-height: 1; letter-spacing: -.06em; }

/* 12.6 Technologies and areas of expertise on phones: compact pills on two columns, one line each (long names end with "…", full name in the tooltip). */
@media (max-width: 767px) {
	.adv-tecno__grid, .adv-aree__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.adv-tecno__item, .adv-aree__grid li { min-height: 0; padding: 8px 12px; gap: 8px; border-radius: 999px; font-size: 13px; line-height: 1.3; min-width: 0; }
	.adv-tecno__logo { width: 22px; height: 22px; border-radius: 50%; }
	.adv-tecno__logo svg { width: 13px; height: 13px; }
	.adv-aree__icon { width: 26px; height: 26px; border-radius: 50%; }
	.adv-aree__icon svg { width: 14px; height: 14px; }
	.adv-tecno__name, .adv-aree__name { font-size: 12px; font-weight: 600; letter-spacing: -.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	/* the generic cloud icon gives no information: on phones the room goes to the name (uploaded logos stay) */
	.adv-tecno__logo:not(:has(img)) { display: none; }
	/* the icons of the areas leave too little room for the names on two columns */
	.adv-aree__icon { display: none; }
}

/* 12.4 Key figures: the other photo versions. The frame decides the shape, the photo fills it (object-fit: cover). */
.adv-numeri--una { padding: 64px 0 0; }
.adv-numeri__photo--single { height: 420px; }
.adv-numeri--una .adv-numeri__card { margin: -96px 32px 0; }
.adv-numeri--nessuna { background: #f3f2f2; padding: 72px 0; }
.adv-numeri--affiancata { padding: 72px 0; }
.adv-numeri__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.adv-numeri--affiancata .adv-numeri__photo--single { height: 100%; min-height: 420px; }
.adv-numeri--affiancata .adv-numeri__card { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.adv-numeri--affiancata .adv-numeri__item { border-left: 0; }
.adv-numeri--affiancata .adv-numeri__item:nth-child(even) { border-left: 1px solid #ebe8e6; }
.adv-numeri--affiancata .adv-numeri__item:nth-child(n+3) { border-top: 1px solid #ebe8e6; }
@media (max-width: 900px) {
	.adv-numeri__photo--single { height: 300px; }
	.adv-numeri--una .adv-numeri__card { margin: -60px 16px 0; }
	.adv-numeri__side { grid-template-columns: 1fr; }
	.adv-numeri--affiancata .adv-numeri__photo--single { min-height: 0; height: 300px; }
}
@media (max-width: 600px) { .adv-numeri--una .adv-numeri__card { margin: -40px 0 0; } }

/* 12.4 Key figures, "bento" version (riferimenti/chi-siamo-contatori.html). */
.adv-numeri--bento { background: #f3f2f2; padding: 104px 0; }
.adv-bento__inner { display: flex; flex-direction: column; gap: 36px; }
.adv-bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.adv-bento__tile { border-radius: 28px; transition: transform .3s ease, box-shadow .3s ease; }
.adv-bento__tile:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -28px rgba(29, 26, 27, .5); }
.adv-bento__photo { grid-row: 1 / span 2; overflow: hidden; background: #dedad7; min-height: 320px; }
.adv-section .adv-bento__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.adv-bento__big { grid-column: 2 / span 2; position: relative; overflow: hidden; background: #b51f19; color: #fff; padding: 34px 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.adv-bento__ghost { position: absolute; right: -10px; top: -40px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 240px; font-weight: 900; letter-spacing: -.07em; line-height: 1; color: rgba(255, 255, 255, .1); pointer-events: none; }
.adv-bento__big-text { position: relative; display: flex; flex-direction: column; gap: 6px; }
.adv-bento__big-num { font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 120px; font-weight: 900; letter-spacing: -.06em; line-height: .9; }
.adv-bento__big-label { font-size: 19px; font-weight: 600; }
.adv-bento__big-icon { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.adv-bento__ring { background: #fff; padding: 28px; display: flex; align-items: center; gap: 22px; }
.adv-bento__ring-box { position: relative; flex: 0 0 auto; width: 128px; height: 128px; }
.adv-bento__ring-svg { display: block; transform: rotate(-90deg); }
.adv-bento__ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 25px; font-weight: 900; letter-spacing: -.04em; color: #1d1a1b; }
.adv-bento__ring-label { font-size: 16px; line-height: 1.4; color: #3b3738; font-weight: 600; }
.adv-bento__dark { background: #1d1a1b; color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.adv-bento__dark .adv-bento__icon { color: #ff8a8e; }
.adv-bento__dark .adv-bento__num { color: #fff; }
.adv-bento__dark .adv-bento__affix { color: #ff5a61; }
.adv-bento__dark .adv-bento__label { margin: 8px 0 0; font-size: 15px; color: rgba(247, 243, 239, .75); }
.adv-bento__white { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.adv-bento__white .adv-bento__icon { color: #b51f19; }
.adv-bento__white .adv-bento__affix { color: #b51f19; }
.adv-bento__white .adv-bento__label { font-size: 15px; color: #57524f; }
.adv-bento__icon { display: flex; }
.adv-bento__num { font-size: 64px; font-weight: 900; letter-spacing: -.045em; line-height: 1; color: #1d1a1b; }
@media (max-width: 1000px) {
	.adv-bento { grid-template-columns: 1fr 1fr; }
	.adv-bento__photo { grid-row: auto; grid-column: 1 / span 2; height: 300px; min-height: 0; }
	.adv-bento__big { grid-column: 1 / span 2; }
}
@media (max-width: 600px) {
	.adv-numeri--bento { padding: 80px 0; }
	.adv-bento { grid-template-columns: 1fr; }
	.adv-bento__photo, .adv-bento__big { grid-column: auto; }
	.adv-bento__big-num { font-size: 96px; }
	.adv-bento__ghost { font-size: 180px; }
}
@media (prefers-reduced-motion: reduce) { .adv-bento__tile { transition: none; } .adv-bento__tile:hover { transform: none; } }

/* 12.3 About, second try (13 November): a middle size between the design (28-44px bold) and 2.4.0 (20px).
   Same column and size as the opening text of the other pages (Introduzione "semplice"); the second paragraph stays smaller. */
.adv-intro--grande { padding: 96px 0 72px; }
.adv-intro--grande .adv-intro__inner { max-width: calc(980px + 2 * clamp(16px, 4vw, 32px)); gap: 24px; }
.adv-intro--grande .adv-intro__main { max-width: none; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; letter-spacing: -.015em; font-weight: 500; }
.adv-intro--grande .adv-intro__main strong { font-weight: 800; }
.adv-intro--grande .adv-intro__side { max-width: none; font-size: 18px; line-height: 1.6; }
@media (max-width: 600px) { .adv-intro--grande { padding: 72px 0 56px; } .adv-intro--grande .adv-intro__side { font-size: 17px; } }

/* Labels on phones (13 November): pills are labels, not buttons. Smaller text and padding where they grew too big. */
@media (max-width: 600px) {
	.adv-evidenza__pills { gap: 8px; }
	.adv-evidenza__pills > span { padding: 8px 14px; border-radius: 12px; font-size: 15px; }
	.adv-certind__pills { gap: 8px; }
	.adv-certind__pills li { padding: 6px 12px 6px 6px; gap: 8px; font-size: 13px; line-height: 1.35; font-weight: 600; border-radius: 14px; }
	.adv-certind__check { width: 22px; height: 22px; }
	.adv-certind__check svg { width: 12px; height: 12px; }
}

/* Certificazioni: logo of the certification and "Vedi il certificato" (2.7.3) */
.adv-cert__logo { display: flex; align-items: center; justify-content: flex-start; height: 72px; }
.adv-cert__logo img { display: block; max-height: 72px; max-width: 180px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.adv-cert__view { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fbeceb; color: #b51f19; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.adv-cert__view:hover, .adv-cert__view:focus-visible { background: #b51f19; color: #fff; }

/* Image viewer (certificates), opened by assets/js/main.js */
.adv-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 18, 19, .86); }
.adv-viewer[hidden] { display: none; }
.adv-viewer__box { position: relative; max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.adv-viewer__img { display: block; max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; margin: 0 auto; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.adv-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 15px; font-weight: 600; }
.adv-viewer__bar a { color: #fff; }
.adv-viewer__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #1d1a1b; font-size: 24px; line-height: 1; cursor: pointer; }
.adv-viewer__close:hover { background: #b51f19; color: #fff; }

/* Casi studio: button under the cards (2.9.1), same style as "Tutti i casi studio" in the home */
.adv-casi__foot { display: flex; justify-content: center; margin-top: 36px; }
.adv-casi__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 2px solid rgba(29, 26, 27, .2); border-radius: 999px; color: #1d1a1b; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.adv-casi__btn:hover, .adv-casi__btn:focus-visible { border-color: #b51f19; background: #b51f19; color: #fff; }

/* Viewer with several certificates (2.10.4) */
.adv-viewer__count { flex: none; margin-left: auto; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.adv-viewer__title { flex: 1 1 auto; min-width: 0; }
.adv-viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; }
.adv-viewer__nav { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #1d1a1b; font-size: 22px; line-height: 1; cursor: pointer; }
.adv-viewer__nav:hover, .adv-viewer__nav:focus-visible { background: #b51f19; color: #fff; }
.adv-viewer__nav[hidden], .adv-viewer__img[hidden], .adv-viewer__pdf[hidden] { display: none; }
.adv-viewer__pdf { display: inline-flex; padding: 16px 24px; border-radius: 999px; background: #fff; color: #b51f19; font-weight: 700; text-decoration: none; }
.adv-viewer__img { max-width: calc(100vw - 180px); }
@media (max-width: 640px) {
	.adv-viewer__stage { flex-wrap: wrap; }
	.adv-viewer__img { order: -1; flex-basis: 100%; max-width: 100%; max-height: calc(100vh - 190px); }
	.adv-viewer__nav { width: 44px; height: 44px; }
}

/* ---------- Impegno e citazione ---------- */
.adv-impegno { background: #fff; padding: 112px 0 120px; }
.adv-impegno__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.adv-impegno--solo .adv-impegno__inner { grid-template-columns: minmax(0, 1fr); max-width: calc(820px + 2 * clamp(16px, 4vw, 32px)); }
.adv-impegno .adv-head { margin-bottom: 28px; }
.adv-impegno__text { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; color: #3b3738; }
.adv-impegno__cta { margin-top: 32px !important; }
.adv-impegno__quote { position: relative; margin: 0; background: #1d1a1b; color: #fff; border-radius: 28px; padding: 88px 48px 44px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(29, 26, 27, .7); }
.adv-impegno__quote::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(181, 31, 25, .45), rgba(181, 31, 25, 0) 70%); pointer-events: none; }
.adv-impegno__mark { position: absolute; left: 40px; top: 8px; font-family: "Inter Tight", "Inter", Georgia, serif; font-size: 160px; line-height: 1; font-weight: 900; color: #e8433f; }
.adv-impegno__quote blockquote { position: relative; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 16px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.adv-impegno__quote figcaption { position: relative; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #bdb7b4; }
.adv-impegno__quote figcaption strong { font-size: 17px; color: #fff; }
.adv-impegno__quote figcaption strong::before { content: ""; display: inline-block; width: 24px; height: 2px; background: #e8433f; vertical-align: middle; margin-right: 12px; }
@media (max-width: 900px) { .adv-impegno__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 600px) { .adv-impegno { padding: 80px 0; } .adv-impegno__quote { padding: 72px 24px 32px; } .adv-impegno__mark { left: 20px; font-size: 128px; } .adv-impegno__quote blockquote { font-size: 18px; } .adv-impegno__text { font-size: 17px; } }

/* ---------- Policy iubenda (inside the legal page body) ---------- */
.adv-iub { display: flex; flex-direction: column; gap: 3rem; }
.adv-iub__part + .adv-iub__part { padding-top: 3rem; border-top: 1px solid #ebe8e6; }
.adv-iub h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; color: #1d1a1b; margin: 2.2rem 0 .75rem; }
.adv-iub__part > :first-child, .adv-iub__part > div:first-child > :first-child { margin-top: 0; }
.adv-iub h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 800; color: #1d1a1b; margin: 1.8rem 0 .5rem; }
.adv-iub h4 { font-size: 17px; line-height: 1.4; font-weight: 700; color: #1d1a1b; margin: 1.4rem 0 .35rem; }
.adv-iub p { margin: 0 0 .9rem; }
.adv-iub ul { margin: .4rem 0 1rem; padding-left: 1.3rem; }
.adv-iub ul ul { margin: .3rem 0; }
.adv-iub li { margin: .25rem 0; }
.adv-iub ul.unstyled, .adv-iub ul.for_boxes { list-style: none; padding-left: 0; }
.adv-iub a { color: #b51f19; text-decoration: underline; text-underline-offset: .2em; word-break: break-word; }
.adv-iub hr { border: 0; border-top: 1px solid #ebe8e6; margin: 1.6rem 0; }
.adv-iub details { margin: 1.2rem 0; padding: 4px 22px 10px; border-radius: 18px; background: #f3f2f2; }
.adv-iub summary { list-style: none; cursor: default; }
.adv-iub summary::-webkit-details-marker { display: none; }
.adv-iub summary h3 { margin-top: 1rem; }
.adv-iub .iub_footer { margin-top: 1.4rem; font-size: 14px; color: #57524f; }
.adv-iub-empty, .adv-iub__fallback { padding: 18px 22px; border-radius: 16px; background: #f3f2f2; }
@media (max-width: 600px) { .adv-iub h2 { font-size: 22px; } .adv-iub details { padding: 2px 16px 8px; } }
