/*
 * ioDenuncio: global classes only (.iod-…). Tokens as in the app (design/README.md).
 * Rules of the site: one radius (10px; 50% only for avatars), no shadows,
 * section titles 36/44 (26/32 on a phone), running text in three sizes only:
 * 14, 16, 18. Never two sections in a row with the same structure and the
 * same background. One rhythm on every page: --iod-section-y above and below
 * each section, --iod-section-gap between a section's title and its content.
 */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	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: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--iod-primary: #14005a;
	--iod-primary-hover: #2b1b8f;
	--iod-background: #f6f5fa;
	--iod-card: #ffffff;
	--iod-text: #16132b;
	--iod-text-soft: #3e3a57;
	--iod-muted: #5d5878;
	--iod-border: #e3e1ec;
	--iod-border-strong: #cfc8e8;
	--iod-accent: #f1eef8;
	--iod-brand: #f2a100;
	--iod-photo: #d9d4e6;
	--iod-radius: 10px;
	--iod-width: 1200px;
	--iod-gutter: 24px;
	--iod-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	/* Running text: three sizes only. */
	--iod-text-s: 14px;
	--iod-text-m: 16px;
	--iod-text-l: 18px;
	/* Rhythm of the sections (64 / 24 on a phone). */
	--iod-section-y: 112px;
	--iod-section-gap: 48px;
}

/* ---------- Base ---------- */

body.iod {
	margin: 0;
	background: var(--iod-card);
	color: var(--iod-text);
	font-family: var(--iod-font);
	font-size: var(--iod-text-m);
	line-height: 1.55;
	overflow-x: clip;
	/* The footer sits at the bottom of the viewport when the page is short. */
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
body.iod > .site { flex: 1 0 auto; }
body.iod .site,
body.iod .site-content,
body.iod .content-area,
body.iod .inside-article,
body.iod.full-width-content .container.grid-container,
body.iod .site.grid-container {
	max-width: none;
	padding: 0;
	margin: 0;
	background: transparent;
}
body.iod .entry-content:not(:first-child) { margin-top: 0; }
/* GeneratePress lays out content and sidebar in a row: one column here. */
body.iod .site-content { display: block; }
body.iod h1, body.iod h2, body.iod h3, body.iod h4 {
	font-family: var(--iod-font);
	color: var(--iod-text);
	margin: 0;
}
body.iod p { margin: 0; }
body.iod a { color: var(--iod-primary-hover); }
body.iod a:hover { color: var(--iod-primary); }
/* Zero specificity: every .iod-… image rule wins over it. */
:where(body.iod) img { max-width: 100%; height: auto; }
body.iod :focus-visible { outline: 3px solid var(--iod-primary-hover); outline-offset: 2px; border-radius: var(--iod-radius); }

.iod-skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: var(--iod-radius);
	background: var(--iod-primary);
	color: #fff !important;
	font-weight: 700;
}
.iod-skip-link:focus { top: 12px; }

.iod-icon { width: 20px; height: 20px; flex-shrink: 0; }
.iod-placeholder { background: #fff3cd; color: #7a4d00; padding: 0 4px; border-radius: var(--iod-radius); font-weight: 600; }

/* Width of every section. */
.iod-wrap { max-width: var(--iod-width); margin: 0 auto; padding-left: var(--iod-gutter); padding-right: var(--iod-gutter); box-sizing: border-box; }

/* Small icons drawn with CSS masks (assets/icons). */
.iod-button--arrow::after,
body.iod .iod-faq__item summary::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--iod-icon) center / contain no-repeat;
	mask: var(--iod-icon) center / contain no-repeat;
}
.iod-button--arrow::after { --iod-icon: url("../icons/arrow-right.svg"); }

/* ---------- Type ---------- */

.iod-section__head { display: flex; flex-direction: column; gap: 8px; }
.iod-section__title { font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.iod-section__lead { font-size: var(--iod-text-l); line-height: 1.55; color: var(--iod-muted); }
.iod-text { font-size: var(--iod-text-l); line-height: 1.6; color: var(--iod-text-soft); }
body.iod .iod-link { align-self: flex-start; font-weight: 700; font-size: var(--iod-text-m); color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
body.iod .iod-link:hover { color: var(--iod-primary); }

/* ---------- Buttons ---------- */

.iod-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--iod-radius);
	border: 1.5px solid var(--iod-primary);
	background: var(--iod-primary);
	color: #fff !important;
	font-family: var(--iod-font);
	font-size: var(--iod-text-m);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.iod-button:hover { background: var(--iod-primary-hover); border-color: var(--iod-primary-hover); color: #fff !important; }
.iod-button--outline { background: var(--iod-card); color: var(--iod-primary) !important; border-color: var(--iod-border-strong); }
.iod-button--outline:hover { background: var(--iod-accent); color: var(--iod-primary) !important; border-color: var(--iod-primary); }
.iod-button--light { background: #fff; border-color: #fff; color: var(--iod-primary) !important; }
.iod-button--light:hover { background: var(--iod-accent); border-color: var(--iod-accent); color: var(--iod-primary) !important; }
.iod-button--large { min-height: 58px; padding: 0 34px; font-size: var(--iod-text-l); }
.iod-button--small { min-height: 40px; padding: 0 14px; font-size: var(--iod-text-s); font-weight: 700; }
.iod-button--header { min-height: 42px; padding: 0 18px; font-size: var(--iod-text-m); font-weight: 700; }

/* ---------- Header ---------- */

.iod-header { background: var(--iod-card); border-bottom: 1px solid var(--iod-border); position: relative; z-index: 50; }
.iod-header__inner {
	max-width: var(--iod-width);
	margin: 0 auto;
	padding: 0 var(--iod-gutter);
	min-height: 64px;
	display: flex;
	align-items: center;
	align-self: stretch;
	gap: 8px 32px;
}
.iod-header__logo { display: flex; align-items: center; }
.iod-header__logo img { height: 19px; width: auto; display: block; }
.iod-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iod-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.iod-nav__item { position: relative; margin: 0; }
.iod-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--iod-radius);
	background: transparent;
	color: var(--iod-text) !important;
	font: 600 var(--iod-text-m) / 1.4 var(--iod-font);
	text-decoration: none;
	cursor: pointer;
}
.iod-nav__link:hover, .iod-nav__link:focus, .iod-nav__link:active { background: var(--iod-accent); color: var(--iod-primary) !important; }
/* The current section: a rule under the label, never a dark fill. */
.iod-nav__link[aria-current="page"] { color: var(--iod-primary) !important; }
/* Focus from the keyboard: the same light ring on every control of the header. */
body.iod .iod-header :focus-visible { outline: 2px solid var(--iod-primary-hover); outline-offset: 2px; }
.iod-nav__login { padding: 10px 12px; font-weight: 600; font-size: var(--iod-text-m); text-decoration: none; }
.iod-header__actions { display: flex; align-items: center; gap: 4px; }
.iod-header__menu {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--iod-radius);
	background: transparent;
	color: var(--iod-text);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
/* GeneratePress paints every focused or hovered button dark grey: not these. */
body.iod .iod-header__menu:hover, body.iod .iod-header__menu:focus, body.iod .iod-header__menu:active, body.iod .iod-header__menu[aria-expanded="true"] { background: var(--iod-accent); color: var(--iod-primary); }
.iod-header__menu .iod-icon { width: 22px; height: 22px; }
.iod-header__menu-close { display: none; }
.iod-header__menu[aria-expanded="true"] .iod-header__menu-open { display: none; }
.iod-header__menu[aria-expanded="true"] .iod-header__menu-close { display: block; }

@media (min-width: 1025px) {
	.iod-header__inner { gap: 8px 24px; align-items: stretch; }
	.iod-header__logo, .iod-header__actions { align-self: center; }
	/* The menu fills the header's height, so the current item's tab sits on its bottom edge. */
	.iod-nav, .iod-nav__list, .iod-nav__item { align-self: stretch; display: flex; align-items: stretch; }
	.iod-nav__actions { align-self: center; }
	.iod-nav__link { position: relative; border-radius: 0; padding: 0 12px; }
	.iod-nav__link:hover, .iod-nav__link:focus, .iod-nav__link:active { background: transparent; }
	.iod-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--iod-primary); }
	.iod-header__actions { order: 3; }
}

/* Phone and tablet: logo, button, menu; the menu is a panel under the header. */
@media (max-width: 1024px) {
	.iod-header__inner { min-height: 60px; padding: 8px 12px 8px 16px; justify-content: space-between; }
	.iod-header__menu { display: flex; }
	.iod-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 8px 16px 20px;
		background: var(--iod-card);
		border-bottom: 1px solid var(--iod-border);
		max-height: calc(100vh - 60px);
		overflow-y: auto;
	}
	.iod-header.is-open .iod-nav { display: flex; }
	.iod-nav__list { flex-direction: column; }
	.iod-nav__link { width: 100%; justify-content: space-between; min-height: 48px; box-sizing: border-box; }
	.iod-nav__link[aria-current="page"] { background: var(--iod-accent); box-shadow: inset 3px 0 0 var(--iod-primary); border-radius: 0 var(--iod-radius) var(--iod-radius) 0; }
	.iod-nav__actions { border-top: 1px solid var(--iod-border); padding-top: 10px; }
	.iod-nav__login { display: block; padding: 12px; }
}
@media (max-width: 600px) {
	.iod-header__logo img { height: 16px; }
	.iod-button--header { min-height: 40px; padding: 0 14px; font-size: var(--iod-text-s); }
}

/* ---------- Footer (pattern iodenuncio/footer) ---------- */

.iod-footer { background: var(--iod-background); border-top: 1px solid var(--iod-border); }
.iod-footer__inner { max-width: var(--iod-width); margin: 0 auto; padding: 48px var(--iod-gutter) 28px; display: flex; flex-direction: column; gap: 32px; }
.iod-footer__columns { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.iod-footer__brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; font-size: var(--iod-text-s); color: var(--iod-muted); }
.iod-footer__logo { height: 18px; width: auto; align-self: flex-start; }
.iod-footer__nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; font-size: var(--iod-text-s); }
.iod-footer__nav--cases { flex-basis: 200px; }
.iod-footer__title { font-size: var(--iod-text-s); font-weight: 700; color: var(--iod-muted); }
body.iod .iod-footer__link { color: var(--iod-text); text-decoration: none; }
body.iod .iod-footer__link:hover { color: var(--iod-primary-hover); text-decoration: underline; }
.iod-footer__legal { padding-top: 20px; border-top: 1px solid var(--iod-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: var(--iod-text-s); color: var(--iod-muted); }

/* ---------- Catalogue (mu-plugin iodenuncio-catalogo) ---------- */

/* Desktop: a two-column list with 1px rules. */
.iod-case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--iod-border); }
.iod-case-grid > li { margin: 0; display: flex; border-bottom: 1px solid var(--iod-border); }
.iod-case-card {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 4px;
	color: var(--iod-text) !important;
	text-decoration: none;
}
.iod-case-card__icon { flex: none; display: flex; color: var(--iod-primary); }
.iod-case-card__icon .iod-icon { width: 20px; height: 20px; stroke-width: 1.8; }
.iod-case-card__title { flex: 1; min-width: 0; font-size: var(--iod-text-m); line-height: 1.4; font-weight: 700; }
.iod-case-card__foot { flex: none; display: flex; align-items: center; gap: 16px; font-size: var(--iod-text-m); }
.iod-case-card__arrow { color: var(--iod-primary); transition: transform 0.15s; }
.iod-case-card:hover .iod-case-card__title { color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.iod-case-card:hover .iod-case-card__arrow { transform: translateX(3px); }

.iod-price { display: inline-flex; align-items: baseline; gap: 6px; }
.iod-price__amount { font-weight: 800; }
.iod-price__vat { font-size: var(--iod-text-s); color: var(--iod-muted); font-weight: 500; }

/* The whole catalogue ("Denunce e prezzi"): tools, groups by scope, one row per form. */
.iod-catalog-section__inner { padding-top: var(--iod-section-gap); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-catalog { display: flex; flex-direction: column; gap: 24px; }
.iod-catalog [hidden] { display: none !important; }
.iod-search { position: relative; }
.iod-search__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--iod-muted); pointer-events: none; }
body.iod .iod-search__input { width: 100%; box-sizing: border-box; min-height: 64px; padding: 14px 20px 14px 56px; border: 1px solid var(--iod-border-strong); border-radius: var(--iod-radius); background: var(--iod-card); color: var(--iod-text); font: 500 var(--iod-text-l) / 1.4 var(--iod-font); }
body.iod .iod-search__input::placeholder { color: var(--iod-muted); font-weight: 400; }
body.iod .iod-search__input:focus { outline: 3px solid rgba(43, 27, 143, 0.25); outline-offset: 0; border-color: var(--iod-primary-hover); }
/* Scope tabs with their counts */
.iod-tabs { display: flex; gap: 4px 24px; border-bottom: 1px solid var(--iod-border); overflow-x: auto; scrollbar-width: none; }
body.iod .iod-tab { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--iod-text-soft); font: 600 var(--iod-text-m) / 1.2 var(--iod-font); cursor: pointer; }
body.iod .iod-tab:hover, body.iod .iod-tab:focus { background: transparent; color: var(--iod-primary); }
body.iod .iod-tab[aria-pressed="true"] { color: var(--iod-primary); }
body.iod .iod-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--iod-primary); }
body.iod .iod-tab:focus-visible { outline: 2px solid var(--iod-primary-hover); outline-offset: -2px; }
.iod-tab__count { font-size: var(--iod-text-s); font-weight: 600; color: var(--iod-muted); }
/* Groups by scope, cards on three columns of equal height */
.iod-catalog__group { display: flex; flex-direction: column; gap: 20px; }
.iod-catalog__group + .iod-catalog__group { margin-top: 24px; }
.iod-catalog__scope { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.015em; }
.iod-form-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.iod-form-card { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 0; border: 1px solid var(--iod-border); border-radius: var(--iod-radius); background: var(--iod-card); transition: border-color 0.15s; }
.iod-form-card:hover, .iod-form-card:focus-within { border-color: var(--iod-primary); }
.iod-form-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--iod-text-s); color: var(--iod-muted); }
.iod-form-card__name { min-width: 0; }
.iod-form-card__price { flex: none; white-space: nowrap; }
.iod-form-card__price b { font-size: var(--iod-text-l); font-weight: 800; color: var(--iod-text); }
.iod-form-card__title { font-size: var(--iod-text-l); line-height: 1.35; font-weight: 800; }
.iod-form-card__text { font-size: var(--iod-text-m); line-height: 1.55; color: var(--iod-text-soft); }
.iod-form-card__actions { margin-top: auto !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 16px; border-top: 1px solid var(--iod-border); }
.iod-form-card__text + .iod-form-card__actions, .iod-form-card__title + .iod-form-card__actions { margin-top: auto; }
.iod-form-card__top + .iod-form-card__title { margin-top: 4px !important; }
body.iod .iod-form-card__details { font-size: var(--iod-text-m); font-weight: 600; color: var(--iod-text-soft); text-decoration: underline; text-underline-offset: 3px; }
body.iod .iod-form-card__details:hover { color: var(--iod-primary); }
body.iod .iod-form-card__start { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--iod-text-m); font-weight: 800; color: var(--iod-primary); text-decoration: none; }
body.iod .iod-form-card__start:hover { color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.iod-form-card__start .iod-icon { width: 18px; height: 18px; transition: transform 0.15s; }
.iod-form-card__start:hover .iod-icon { transform: translateX(3px); }
.iod-catalog__more { align-self: center; }
.iod-catalog__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; border-radius: var(--iod-radius); background: var(--iod-background); }
.iod-catalog__empty-title { font-size: var(--iod-text-l); font-weight: 800; }
.iod-catalog-empty { color: var(--iod-muted); }

/* =====================================================================
   Sections of the patterns
   ===================================================================== */

/* Hero */
.iod-hero { background: var(--iod-background); }
.iod-hero__inner { max-width: 880px; margin: 0 auto; padding: var(--iod-section-y) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.iod-hero__title { font-size: 58px; line-height: 66px; font-weight: 800; letter-spacing: -0.03em; }
.iod-hero__lead { max-width: 700px; font-size: var(--iod-text-l); line-height: 1.65; color: var(--iod-text-soft); }
.iod-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 8px; }
body.iod .iod-hero__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* The firm's strip on the opening's bottom edge: white, rules above and below, no link. */
.iod-firm-strip { background: var(--iod-card); border-top: 1px solid var(--iod-border); border-bottom: 1px solid var(--iod-border); }
/* Background and rules full width; the content as wide as the opening's lead (700px), centred. */
.iod-firm-strip__inner { max-width: 748px; min-height: 72px; box-sizing: border-box; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px 16px; }
.iod-firm-strip__logo { flex: none; height: 17px; width: auto; display: block; }
.iod-firm-strip__text { flex: 1; min-width: 0; text-align: center; text-wrap: balance; font-size: var(--iod-text-m); line-height: 1.4; font-weight: 600; color: var(--iod-text); }
.iod-firm-strip__faces { flex: none; display: flex; }
/* Each face covers about half of the next and stands in front of it: z-index decreasing from left to right. */
.iod-firm-strip__face { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--iod-card); object-fit: cover; background: var(--iod-photo); box-sizing: content-box; }
.iod-firm-strip__face + .iod-firm-strip__face { margin-left: -16px; }
.iod-firm-strip__face:nth-child(1) { z-index: 4; }
.iod-firm-strip__face:nth-child(2) { z-index: 3; }
.iod-firm-strip__face:nth-child(3) { z-index: 2; }
.iod-firm-strip__face:nth-child(4) { z-index: 1; }

/* Cases */
.iod-cases__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-cases__all { align-self: flex-start; }
.iod-cases__note { font-size: var(--iod-text-s); color: var(--iod-muted); }
.iod-cases .iod-section__head { gap: 8px; }

/* Title on the left (40%), text on the right (60%) */
.iod-split__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--iod-section-gap) 56px; align-items: start; }
.iod-split__body { display: flex; flex-direction: column; gap: 18px; }

/* "Quanto costa" (home): title, text and link on the left (55%), a compact box on the right (45%, at most 420px), aligned at the top */
.iod-pricing__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 40px 64px; align-items: start; }
.iod-pricing__body { display: flex; flex-direction: column; gap: 24px; }
.iod-pricing__body .iod-section__title + .iod-text { margin-top: 0; }
.iod-pricing__inner > .iod-pricing__box { justify-self: end; width: 100%; max-width: 420px; box-sizing: border-box; gap: 16px; padding: 24px 28px; }
.iod-pricing__inner .iod-pricing__list { gap: 8px; }
.iod-pricing__box { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px; border: 1px solid var(--iod-border); border-radius: var(--iod-radius); background: var(--iod-card); }
.iod-pricing__from { font-size: var(--iod-text-l); color: var(--iod-text-soft); }
.iod-pricing__from .iod-price__amount { font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--iod-text); margin: 0 4px; }
.iod-pricing__from .iod-price__vat { font-size: var(--iod-text-m); }
.iod-pricing__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--iod-text-m); }

/* Studio page: no people. Opening with the photo of the plaque; three points side by side; a split on the tint; one reading column; the company's data in a box on the tint. */
.iod-firm-points__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-firm-points__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: iod-firm-point; }
.iod-firm-points__item { counter-increment: iod-firm-point; margin: 0; padding-top: 20px; border-top: 3px solid var(--iod-primary); font-size: var(--iod-text-l); line-height: 1.5; font-weight: 600; color: var(--iod-text); }
.iod-firm-points__item::before { content: "0" counter(iod-firm-point); display: block; margin-bottom: 10px; font-size: var(--iod-text-s); font-weight: 800; letter-spacing: 0.08em; color: var(--iod-primary); }
.iod-firm-band { background: var(--iod-background); border-top: 1px solid var(--iod-border); border-bottom: 1px solid var(--iod-border); }
.iod-firm-check__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); }
.iod-firm-check__body { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.iod-firm-data { background: var(--iod-background); border-top: 1px solid var(--iod-border); border-bottom: 1px solid var(--iod-border); }
.iod-firm-data__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-firm-data__box { max-width: 760px; display: flex; flex-direction: column; gap: 24px; padding: 32px; border: 1px solid var(--iod-border); border-radius: var(--iod-radius); background: var(--iod-card); }
.iod-firm-data__list { margin: 0; display: flex; flex-direction: column; }
.iod-firm-data__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--iod-border); font-size: var(--iod-text-m); line-height: 1.5; }
.iod-firm-data__row:first-child { padding-top: 0; }
.iod-firm-data__row dt { font-weight: 700; color: var(--iod-muted); }
.iod-firm-data__row dd { margin: 0; color: var(--iod-text); }
/* A datum still to confirm: visible as such, never mistaken for the real text. */
.iod-placeholder { font-weight: 500; color: #b45309; }

/* Steps */
.iod-steps-section { background: var(--iod-background); border-top: 1px solid var(--iod-border); border-bottom: 1px solid var(--iod-border); }
.iod-steps-section__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-steps { list-style: none; margin: 0; padding: 0; counter-reset: iod-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 0; }
.iod-step { counter-increment: iod-step; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 64px 24px 0 0; margin: 0; min-width: 0; }
.iod-step::before {
	content: counter(iod-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 48px;
	border-radius: var(--iod-radius);
	background: var(--iod-primary);
	color: #fff;
	font-size: var(--iod-text-l);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.iod-step::after { content: ""; position: absolute; top: 23px; left: 62px; right: 14px; height: 2px; background: var(--iod-border-strong); }
.iod-step:last-child::before { background: var(--iod-brand); color: var(--iod-text); }
.iod-step:last-child::after { display: none; }
.iod-step__title { font-size: var(--iod-text-l); line-height: 1.4; font-weight: 700; }
.iod-step__text { font-size: var(--iod-text-s); line-height: 1.6; color: var(--iod-muted); }

/* Articles (home): three cards, image, date, title */
.iod-articles__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-articles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.iod-post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.iod-post-cards > li { margin: 0; display: flex; }
.iod-post-card { flex: 1; display: flex; flex-direction: column; gap: 8px; color: var(--iod-text) !important; text-decoration: none; }
body.iod .iod-post-card__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--iod-radius); background: var(--iod-photo); margin-bottom: 8px; }
.iod-post-card__date { font-size: var(--iod-text-s); color: var(--iod-muted); }
.iod-post-card__title { font-size: var(--iod-text-l); line-height: 1.4; font-weight: 700; }
.iod-post-card:hover .iod-post-card__title { color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Rows of articles (Risorse legali, archives): thumbnail on the left */
.iod-article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--iod-border); }
.iod-article-list > li { margin: 0; border-bottom: 1px solid var(--iod-border); }
.iod-article-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 24px; align-items: start; padding: 20px 4px; color: var(--iod-text) !important; text-decoration: none; }
body.iod .iod-article-row__thumb { display: block; width: 160px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--iod-radius); background: var(--iod-photo); }
.iod-article-row__date { font-size: var(--iod-text-s); color: var(--iod-muted); }
.iod-article-row__title { font-size: var(--iod-text-l); line-height: 1.4; font-weight: 700; }
.iod-article-row:hover .iod-article-row__title { color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ: the sign on the right turns when a question opens; on the tint it is a band of its own */
.iod-faq--tinted { background: var(--iod-background); border-top: 1px solid var(--iod-border); border-bottom: 1px solid var(--iod-border); }
.iod-faq__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-wrap: wrap; gap: var(--iod-section-gap) 64px; }
.iod-faq__title { flex: 1 1 260px; }
.iod-faq__list { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--iod-border); }
body.iod .iod-faq__item { border-bottom: 1px solid var(--iod-border); padding: 0; margin: 0; }
body.iod .iod-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: var(--iod-text-l); font-weight: 700; list-style: none; }
body.iod .iod-faq__item summary::-webkit-details-marker { display: none; }
body.iod .iod-faq__item summary::after { --iod-icon: url("../icons/plus.svg"); width: 20px; height: 20px; color: var(--iod-primary); transition: transform 0.2s; }
body.iod .iod-faq__item[open] summary::after { transform: rotate(45deg); }
body.iod .iod-faq__item p { margin: 0; padding: 0 36px 18px 0; font-size: var(--iod-text-m); color: var(--iod-text-soft); }

/* Dark closing */
/* The closing: its own space below; above only after a tinted band (after a white section, that section's space is enough). */
.iod-cta-section { padding: 0 24px var(--iod-section-y); }
:is(.iod-faq--tinted, .iod-steps-section, .iod-page-head, .iod-case-hero, .iod-firm-data) + .iod-cta-section { padding-top: var(--iod-section-y); }
/* Low closing (every page but the home): title and button on one line. */
.iod-cta--low { padding: 28px 36px; gap: 20px 40px; flex-wrap: nowrap; }
body.iod .iod-cta--low .iod-cta__title { flex: 1; min-width: 0; color: #fff; font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.015em; }
.iod-cta--low .iod-button { flex: none; }
.iod-cta { max-width: var(--iod-width); margin: 0 auto; box-sizing: border-box; padding: 48px 52px; border-radius: var(--iod-radius); background: var(--iod-primary); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.iod-cta__body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
body.iod .iod-cta__title { color: #fff; }
.iod-cta__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--iod-text-m); color: #dcd7ee; }
.iod-cta__point { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.iod-cta__point::before { content: ""; flex: none; margin-top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--iod-brand); }

/* =====================================================================
   Inner pages (fase 4): page head, case pages, prose, forms, blog
   ===================================================================== */

/* Icons of lists and facts, as CSS masks. */
.iod-check::before, .iod-arrow-item::before, .iod-fact::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	background: currentColor;
	-webkit-mask: var(--iod-icon) center / contain no-repeat;
	mask: var(--iod-icon) center / contain no-repeat;
}
.iod-check::before { --iod-icon: url("../icons/check.svg"); color: #1f7a4d; }
.iod-arrow-item::before { --iod-icon: url("../icons/arrow-right.svg"); color: var(--iod-primary); }
.iod-fact--shield::before { --iod-icon: url("../icons/shield-check.svg"); }
.iod-fact--court::before { --iod-icon: url("../icons/landmark.svg"); }
.iod-fact--clock::before { --iod-icon: url("../icons/clock.svg"); color: #b45309; }
.iod-mask--id-card::before { --iod-icon: url("../icons/id-card.svg"); }
.iod-mask--smartphone::before { --iod-icon: url("../icons/smartphone.svg"); }
.iod-mask--credit-card::before { --iod-icon: url("../icons/credit-card.svg"); }
.iod-mask--camera::before { --iod-icon: url("../icons/camera.svg"); }
.iod-mask--globe::before { --iod-icon: url("../icons/globe.svg"); }
.iod-mask--calendar::before { --iod-icon: url("../icons/calendar.svg"); }
.iod-mask--mail::before { --iod-icon: url("../icons/mail.svg"); }
.iod-mask--user::before { --iod-icon: url("../icons/user.svg"); }
.iod-mask--building-2::before { --iod-icon: url("../icons/building-2.svg"); }
.iod-mask--file-check::before { --iod-icon: url("../icons/file-check.svg"); }

/* Page head */
.iod-page-head { background: var(--iod-background); border-bottom: 1px solid var(--iod-border); }
.iod-page-head__inner { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.iod-page-head__title { font-size: 46px; line-height: 54px; font-weight: 800; letter-spacing: -0.025em; max-width: 880px; }
.iod-page-head__lead { max-width: 760px; font-size: var(--iod-text-l); line-height: 1.6; color: var(--iod-text-soft); }
.iod-page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.iod-page-head--404 { background: transparent; border-bottom: 0; }
.iod-page-head--404 .iod-page-head__inner { padding-top: 96px; padding-bottom: 120px; }
/* Page head with a photo (studio): text on the left, photo on the right; the photo goes under the text on narrow screens. */
.iod-page-head--media .iod-page-head__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 56px; padding-top: 48px; }
.iod-page-head__text { display: flex; flex-direction: column; gap: 14px; }
.iod-page-head__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--iod-radius); border: 1px solid var(--iod-border); }
@media (max-width: 860px) {
	.iod-page-head--media .iod-page-head__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.iod-page-head__photo { aspect-ratio: 16 / 10; }
}

/* Breadcrumb */
.iod-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--iod-text-s); color: var(--iod-muted); }
body.iod .iod-breadcrumb__link { color: var(--iod-muted); text-decoration: underline; text-underline-offset: 3px; }
.iod-breadcrumb > * + *::before { content: "›"; margin: 0 8px; color: var(--iod-muted); text-decoration: none; display: inline-block; }

/* Case page: opening with the price box */
.iod-case-hero { background: var(--iod-background); border-bottom: 1px solid var(--iod-border); }
.iod-case-hero__inner { padding-top: 32px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px 64px; align-items: start; }
.iod-case-hero__main { display: flex; flex-direction: column; gap: 18px; }
.iod-case-hero__title { font-size: 46px; line-height: 54px; font-weight: 800; letter-spacing: -0.025em; margin-top: 18px !important; }
.iod-case-hero__name { display: block; margin-top: 10px; font-size: var(--iod-text-l); line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--iod-muted); }
.iod-case-hero__lead { max-width: 640px; font-size: var(--iod-text-l); line-height: 1.6; color: var(--iod-text-soft); }
.iod-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--iod-text-m); color: var(--iod-text-soft); }
.iod-fact { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.iod-fact::before { color: var(--iod-primary); }
.iod-fact--deadline { flex-basis: 100%; }
.iod-fact strong { color: var(--iod-text); }

.iod-price-card { margin-top: 16px; padding: 28px; border-radius: var(--iod-radius); background: var(--iod-card); border: 1px solid var(--iod-border); display: flex; flex-direction: column; gap: 18px; }
.iod-price-card__price .iod-price__amount { font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.iod-price-card__price .iod-price__vat { font-size: var(--iod-text-m); }
.iod-price-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--iod-text-m); }
.iod-check, .iod-arrow-item { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.iod-price-card__summary { display: none; font-size: var(--iod-text-m); color: var(--iod-text-soft); }
.iod-price-card__note { font-size: var(--iod-text-s); color: var(--iod-muted); text-align: center; }
.iod-button--block { width: 100%; box-sizing: border-box; }

/* Case page: body and aside */
.iod-case-body { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--iod-section-gap) 64px; align-items: start; }
.iod-case-main { display: flex; flex-direction: column; gap: var(--iod-section-y); min-width: 0; }
.iod-case-section { display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-case-section__title { font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.iod-case-section__more { font-size: var(--iod-text-m); line-height: 1.6; color: var(--iod-text-soft); }
body.iod .iod-case-section__more a { font-weight: 700; color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
/* Without the grey band of the path, the FAQ follows the body on white: one section space between them, not two. */
.iod-case-body + .iod-case-after { padding-top: 0; }

.iod-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; border-top: 1px solid var(--iod-border); padding-top: 20px; }
.iod-when__col { display: flex; flex-direction: column; gap: 12px; }
.iod-when__title { font-size: var(--iod-text-l); font-weight: 700; }
.iod-when__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--iod-text-m); color: var(--iod-text-soft); }
.iod-when__list a { font-weight: 700; }

.iod-why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--iod-border); }
.iod-why { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--iod-border); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; }
.iod-why__title { font-size: var(--iod-text-l); line-height: 1.4; font-weight: 700; }
.iod-why__text { font-size: var(--iod-text-m); line-height: 1.6; color: var(--iod-text-soft); }

.iod-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--iod-border); }
.iod-need { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--iod-border); display: flex; flex-direction: column; gap: 2px; }
.iod-need__title { font-size: var(--iod-text-m); font-weight: 700; }
.iod-need__text { font-size: var(--iod-text-s); color: var(--iod-muted); }

/* Case page: the path on a grey band across the page, then the FAQ */

.iod-case-after { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); }
/* The FAQ keep the width of the main column above (aside 280 px + gap 64 px). */
.iod-case-after > .iod-case-section { max-width: calc(100% - 344px); }
.iod-steps--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iod-steps--compact .iod-step { padding-top: 56px; }
.iod-steps--compact .iod-step::before { width: 36px; height: 36px; font-size: var(--iod-text-m); }
.iod-steps--compact .iod-step::after { top: 17px; left: 50px; }
.iod-steps--compact .iod-step__title { font-size: var(--iod-text-m); }

.iod-case-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.iod-panel { padding: 22px; border-radius: var(--iod-radius); border: 1px solid var(--iod-border); background: var(--iod-card); display: flex; flex-direction: column; gap: 14px; }
.iod-panel__title { font-size: var(--iod-text-s); font-weight: 700; color: var(--iod-muted); }
.iod-verifier__firm { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.iod-verifier__logo { height: 20px; width: auto; display: block; }
.iod-verifier__name { font-size: var(--iod-text-m); font-weight: 700; line-height: 1.35; }
.iod-guides { background: var(--iod-background); border-color: var(--iod-background); }
.iod-guides__list { list-style: none; margin: 0; padding: 0; }
.iod-guide { margin: 0; padding: 12px 0; border-top: 1px solid var(--iod-border); font-size: var(--iod-text-m); font-weight: 700; line-height: 1.4; }
.iod-guide:first-child { border-top: 0; padding-top: 0; }
body.iod .iod-guide a { color: var(--iod-text); text-decoration: none; }
body.iod .iod-guide a:hover { color: var(--iod-primary-hover); text-decoration: underline; }

.iod-case-section .iod-faq__list { flex: none; }

.iod-cta__meta { font-size: var(--iod-text-m); color: #dcd7ee; }
.iod-cta__meta .iod-price__amount { font-weight: 700; }
.iod-cta__meta .iod-price__vat { color: #dcd7ee; font-size: var(--iod-text-m); font-weight: 400; }

/* Phone: price and button fixed at the bottom of a case page. */
.iod-sticky-cta { display: none; }

/* Rows sections (servizio, sedi, norme): title left, rows right */
.iod-split--rows .iod-why { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* Prose: legal pages and articles */
.iod-prose { padding-top: var(--iod-section-gap); padding-bottom: var(--iod-section-y); max-width: 840px; margin: 0 auto; font-size: var(--iod-text-l); line-height: 1.7; color: var(--iod-text-soft); }
body.iod .iod-prose > * + * { margin-top: 18px; }
body.iod .iod-prose h2 { margin-top: 40px; font-size: 26px; line-height: 32px; font-weight: 800; color: var(--iod-text); }
body.iod .iod-prose h3 { margin-top: 28px; font-size: var(--iod-text-l); line-height: 1.4; font-weight: 800; color: var(--iod-text); }
body.iod .iod-prose h4 { margin-top: 20px; font-size: var(--iod-text-m); font-weight: 800; color: var(--iod-text); }
body.iod .iod-prose ul, body.iod .iod-prose ol { padding-left: 22px; margin-left: 0; }
body.iod .iod-prose li + li { margin-top: 6px; }
body.iod .iod-prose a { text-decoration: underline; text-underline-offset: 3px; }
body.iod .iod-prose img { border-radius: var(--iod-radius); }
body.iod .iod-prose table { width: 100%; border-collapse: collapse; font-size: var(--iod-text-s); line-height: 1.5; display: block; overflow-x: auto; }
body.iod .iod-prose th, body.iod .iod-prose td { padding: 10px 12px; border-bottom: 1px solid var(--iod-border); text-align: left; vertical-align: top; }
body.iod .iod-prose th { color: var(--iod-text); }
body.iod .iod-prose code { font-size: var(--iod-text-s); background: var(--iod-accent); padding: 1px 5px; border-radius: var(--iod-radius); }
body.iod .iod-prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--iod-border-strong); }
/* Article head: breadcrumb, title, excerpt and byline; with a featured image, the image on the right (40%), level with the title */
.iod-article__intro { display: flex; flex-direction: column; gap: 14px; max-width: 840px; }
.iod-article__excerpt { max-width: 760px; font-size: var(--iod-text-l); line-height: 1.55; color: var(--iod-text-soft); font-style: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.iod-article__head--image { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 56px; align-items: start; }
.iod-article__head--image .iod-breadcrumb { grid-column: 1 / -1; }
.iod-article__head--image .iod-article__intro { grid-column: 1; grid-row: 2; }
/* Author and date */
.iod-byline { display: flex; align-items: center; gap: 12px; margin-top: 6px !important; }
.iod-byline__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--iod-photo); }
.iod-byline__avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--iod-primary); color: #fff; font-size: var(--iod-text-m); font-weight: 800; }
.iod-byline__text { display: flex; flex-direction: column; line-height: 1.35; }
body.iod .iod-byline__name { font-size: var(--iod-text-m); font-weight: 700; color: var(--iod-text); text-decoration: none; }
body.iod .iod-byline__name:hover { color: var(--iod-primary-hover); text-decoration: underline; }
.iod-byline__date { font-size: var(--iod-text-s); color: var(--iod-muted); }
body.iod .iod-article__image { grid-column: 2; grid-row: 2; margin: 0; }
body.iod .iod-article__image img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 10px; background: var(--iod-photo); }
body.iod .iod-article .entry-content, body.iod .iod-article__body { margin-top: 0; }
@media (max-width: 767px) {
	/* One column: the image under author and date, full width. */
	.iod-article__head--image { display: flex; flex-direction: column; }
}

/* Blog lists */
.iod-blog { padding-top: var(--iod-section-gap); padding-bottom: var(--iod-section-y); }
.iod-article-row__body { display: flex; flex-direction: column; gap: 4px; }
.iod-article-row__excerpt { font-size: var(--iod-text-m); line-height: 1.55; color: var(--iod-text-soft); font-weight: 400; }
.iod-pagination { margin-top: 32px; }
.iod-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.iod-pagination a, .iod-pagination span { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; box-sizing: border-box; align-items: center; justify-content: center; border-radius: var(--iod-radius); border: 1px solid var(--iod-border); font-size: var(--iod-text-m); text-decoration: none; color: var(--iod-text); }
.iod-pagination .current { background: var(--iod-primary); border-color: var(--iod-primary); color: #fff; }

/* Contact form */
.iod-contact { display: flex; flex-direction: column; gap: 12px; }
.iod-contact__line { font-size: var(--iod-text-m); color: var(--iod-text-soft); }
.iod-form { display: flex; flex-direction: column; gap: 16px; }
.iod-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.iod-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.iod-field label { font-size: var(--iod-text-s); font-weight: 700; color: var(--iod-text); }
body.iod .iod-field input[type="text"], body.iod .iod-field input[type="email"], body.iod .iod-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--iod-border-strong);
	border-radius: var(--iod-radius);
	background: var(--iod-card);
	color: var(--iod-text);
	font: 400 var(--iod-text-m) / 1.5 var(--iod-font);
}
body.iod .iod-field input:focus, body.iod .iod-field textarea:focus { outline: 3px solid rgba(43, 27, 143, 0.25); border-color: var(--iod-primary-hover); }
.iod-field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.iod-field--check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--iod-primary); }
.iod-field--check label { font-weight: 500; font-size: var(--iod-text-m); }
.iod-field--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iod-notice { padding: 14px 16px; border-radius: var(--iod-radius); font-size: var(--iod-text-m); margin-bottom: 16px !important; }
.iod-notice--success { background: #e7f5ee; color: #14563a; }
.iod-notice--error { background: #fdecec; color: #8a1c1c; }

/* ---------- Come funziona ---------- */
/* Sections alternate white and tint; each anchor of the summary lands with some air above. */
.iod-cf { scroll-margin-top: 16px; }
.iod-cf--tinted { background: var(--iod-background); border-top: 1px solid var(--iod-border); border-bottom: 1px solid var(--iod-border); }
.iod-cf__inner { padding-top: var(--iod-section-y); padding-bottom: var(--iod-section-y); display: flex; flex-direction: column; gap: var(--iod-section-gap); }
.iod-cf__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--iod-radius); }
.iod-cf__note { display: flex; flex-direction: column; gap: 6px; font-size: var(--iod-text-m); line-height: 1.6; color: var(--iod-text-soft); }
.iod-cf__note a, .iod-cf__links a { font-weight: 700; color: var(--iod-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.iod-cf .iod-split__body > .iod-button { align-self: flex-start; }
.iod-cf .iod-section__head .iod-pricing__from { margin-top: 16px; }
.iod-cf__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--iod-text-m); line-height: 1.5; color: var(--iod-text-soft); }
.iod-cf__after { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--iod-section-gap) 64px; align-items: end; }
.iod-cf__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: var(--iod-text-m); }

/* Summary in the page head: a row of links; folded on a phone. */
.iod-toc { margin-top: 10px; }
.iod-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--iod-text-m); }
body.iod .iod-toc__list a { color: var(--iod-primary-hover); font-weight: 600; text-decoration: underline; text-decoration-color: var(--iod-border-strong); text-underline-offset: 4px; }
body.iod .iod-toc__list a:hover { text-decoration-color: currentColor; }
.iod-toc__fold { display: none; }

/* The four steps: number, who, title and one sentence; on the right the document the user gets. */
.iod-path { list-style: none; margin: 0; padding: 0; counter-reset: iod-path; display: flex; flex-direction: column; }
.iod-path__step { counter-increment: iod-path; position: relative; margin: 0; padding: 0 0 40px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px 48px; align-items: start; }
.iod-path__step::before { content: counter(iod-path); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--iod-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--iod-text-l); }
.iod-path__step::after { content: ""; position: absolute; top: 56px; bottom: 8px; left: 23px; width: 2px; background: var(--iod-border-strong); }
.iod-path__step:last-child { padding-bottom: 0; }
.iod-path__step:last-child::before { background: var(--iod-brand); color: var(--iod-text); }
.iod-path__step:last-child::after { display: none; }
.iod-path__body { display: flex; flex-direction: column; gap: 4px; max-width: 620px; }
.iod-path__who { font-size: var(--iod-text-s); font-weight: 600; color: var(--iod-muted); }
.iod-path__title { font-size: 22px; line-height: 30px; font-weight: 800; letter-spacing: -0.01em; }
.iod-path__text { font-size: var(--iod-text-m); line-height: 1.6; color: var(--iod-text-soft); }
.iod-path__doc { justify-self: start; margin-top: 4px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--iod-border-strong); border-radius: var(--iod-radius); background: var(--iod-card); font-size: var(--iod-text-m); font-weight: 700; color: var(--iod-text); }
.iod-path__doc::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--iod-primary); -webkit-mask: url("../icons/file-text.svg") center / contain no-repeat; mask: url("../icons/file-text.svg") center / contain no-repeat; }
.iod-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Valore legale: the title across, then photo and text aligned at the top (or the text alone, in a reading column). */
.iod-cf__duo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px 56px; align-items: start; }
.iod-cf__prose { display: flex; flex-direction: column; gap: 18px; }
.iod-cf__prose > .iod-text:first-child { margin-top: -0.3em; }
.iod-cf__prose--reading { max-width: 760px; }

/* Comparison: a table; three stacked blocks up to a tablet in portrait. */
.iod-compare__table { width: 100%; border-collapse: collapse; font-size: var(--iod-text-m); line-height: 1.5; table-layout: fixed; }
.iod-compare__table th, .iod-compare__table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--iod-border); }
.iod-compare__table thead th { font-size: var(--iod-text-l); font-weight: 800; color: var(--iod-text); border-bottom: 2px solid var(--iod-text); }
.iod-compare__table tbody th { width: 22%; font-weight: 700; color: var(--iod-text); }
.iod-compare__table td { color: var(--iod-text-soft); }
.iod-compare__table .iod-compare__ours { background: var(--iod-accent); color: var(--iod-text); }
.iod-compare__table thead .iod-compare__ours { border-bottom-color: var(--iod-primary); color: var(--iod-primary); }
.iod-compare__stack { display: none; }
.iod-compare__win { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--iod-primary); }
.iod-compare__win::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("../icons/check.svg") center / contain no-repeat; mask: url("../icons/check.svg") center / contain no-repeat; }
.iod-compare__soft { color: var(--iod-muted); }
.iod-compare .iod-price__amount { font-weight: 700; }
@media (max-width: 860px) {
	.iod-compare__table { display: none; }
	.iod-compare__stack { display: flex; flex-direction: column; gap: 16px; }
	.iod-compare__card { padding: 20px; border: 1px solid var(--iod-border); border-radius: var(--iod-radius); }
	.iod-compare__card--ours { border-color: var(--iod-primary); background: var(--iod-accent); }
	.iod-compare__card h3 { font-size: var(--iod-text-l); font-weight: 800; margin: 0 0 10px; }
	.iod-compare__card dl { margin: 0; display: flex; flex-direction: column; }
	.iod-compare__card dl > div { padding: 10px 0; border-top: 1px solid var(--iod-border); display: flex; flex-direction: column; gap: 2px; }
	.iod-compare__card dt { font-size: var(--iod-text-s); font-weight: 700; color: var(--iod-muted); }
	.iod-compare__card dd { margin: 0; font-size: var(--iod-text-m); line-height: 1.5; color: var(--iod-text); }
}
@media (max-width: 860px) {
	.iod-cf__after { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.iod-path__step { grid-template-columns: minmax(0, 1fr); }
	.iod-cf__duo { grid-template-columns: minmax(0, 1fr); }
	.iod-cf__photo { max-width: 560px; }
}
@media (max-width: 600px) {
	.iod-toc { margin-top: 4px; }
	.iod-toc__fold { display: block; border: 1px solid var(--iod-border-strong); border-radius: var(--iod-radius); background: var(--iod-card); }
	body.iod .iod-toc__fold summary { padding: 12px 16px; font-weight: 700; cursor: pointer; }
	.iod-toc__fold .iod-toc__list { flex-direction: column; gap: 10px; padding: 4px 16px 16px; }
	.iod-path__step { padding: 0 0 28px 50px; gap: 8px; }
	.iod-path__step::before { width: 36px; height: 36px; font-size: var(--iod-text-m); }
	.iod-path__step::after { top: 44px; left: 17px; }
	.iod-path__title { font-size: var(--iod-text-l); line-height: 1.4; }
	.iod-path__doc { font-size: var(--iod-text-s); padding: 8px 12px; }
	.iod-cf__duo { grid-template-columns: minmax(0, 1fr); }
	.iod-cf .iod-split__body > .iod-button { align-self: stretch; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.iod-hero__title { font-size: 46px; line-height: 54px; }
}
@media (max-width: 1024px) {
	.iod-form-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.iod-case-grid { grid-template-columns: minmax(0, 1fr); }
	.iod-split__inner, .iod-pricing__inner { grid-template-columns: minmax(0, 1fr); }
	.iod-firm-points__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.iod-pricing__inner > .iod-pricing__box { justify-self: start; max-width: none; }
	.iod-post-cards { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--iod-border); }
	.iod-post-cards > li { border-bottom: 1px solid var(--iod-border); }
	.iod-post-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 16px; padding: 16px 0; }
	body.iod .iod-post-card__image { grid-row: 1 / span 2; margin: 0; }
	.iod-post-card__title { font-size: var(--iod-text-m); }
	.iod-case-hero__inner, .iod-case-body { grid-template-columns: minmax(0, 1fr); }
	.iod-case-aside { position: static; }
	.iod-case-after > .iod-case-section { max-width: none; }
}

/* ---------- Phone (tavola Home-mobile) ---------- */
@media (max-width: 600px) {
	:root { --iod-section-y: 64px; --iod-section-gap: 24px; }
	.iod-hide-mobile { display: none !important; }
	.iod-wrap { padding-left: 16px; padding-right: 16px; }
	.iod-section__title { font-size: 26px; line-height: 32px; }
	.iod-section__lead, .iod-text { font-size: var(--iod-text-m); }

	.iod-hero__inner { padding: var(--iod-section-y) 16px; gap: 16px; }
	.iod-hero__title { font-size: 32px; line-height: 39px; letter-spacing: -0.025em; }
	.iod-hero__lead { font-size: var(--iod-text-m); line-height: 1.6; }
	.iod-hero__actions { align-self: stretch; margin-top: 0; }
	.iod-hero__actions .iod-button { flex: 1; min-height: 54px; font-size: var(--iod-text-m); }
	.iod-hero__link { display: none; }
	/* Logo and faces on one row, the sentence below; all centred. */
	.iod-firm-strip__inner { flex-wrap: wrap; justify-content: center; gap: 10px 20px; padding: 16px; }
	.iod-firm-strip__logo { height: 16px; }
	.iod-firm-strip__text { order: 3; flex: 1 1 100%; text-align: center; font-size: var(--iod-text-s); }

	.iod-case-card { gap: 12px; padding: 14px 2px; }
	.iod-case-card__foot { gap: 10px; font-size: var(--iod-text-s); }
	.iod-case-card__arrow { display: none; }

	.iod-split__inner { column-gap: 0; }

	.iod-firm-points__item { font-size: var(--iod-text-m); }
	.iod-firm-data__box { padding: 22px; }
	.iod-firm-data__row { grid-template-columns: minmax(0, 1fr); }

	.iod-steps { display: flex; flex-direction: column; gap: 0; }
	.iod-step { padding: 0 0 22px 50px; gap: 4px; }
	.iod-step:last-child { padding-bottom: 0; }
	.iod-step::before { width: 36px; height: 36px; font-size: var(--iod-text-m); }
	.iod-step::after { top: 42px; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; }
	.iod-step__title { font-size: var(--iod-text-m); line-height: 36px; }

	.iod-article-row { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; padding: 14px 2px; }
	body.iod .iod-article-row__thumb { width: 96px; }
	.iod-article-row__title { font-size: var(--iod-text-m); }

	.iod-faq__inner { flex-direction: column; }
	.iod-faq__title, .iod-faq__list { flex: none; }
	body.iod .iod-faq__item summary { padding: 16px 0; font-size: var(--iod-text-m); }

	.iod-cta-section { padding-left: 16px; padding-right: 16px; }
	.iod-cta { padding: 28px 20px; gap: 22px; flex-direction: column; align-items: stretch; }
	.iod-cta__body { flex: none; gap: 14px; }
	.iod-cta .iod-button { width: 100%; }
	.iod-cta .iod-button--arrow::after { display: none; }
	.iod-cta--low { padding: 24px 20px; flex-wrap: wrap; }
	body.iod .iod-cta--low .iod-cta__title { flex: none; font-size: 22px; line-height: 28px; }

	.iod-footer__inner { padding: 28px 16px 24px; gap: 20px; }
	.iod-footer__columns { display: flex; flex-direction: column; gap: 16px; }
	.iod-footer__brand { flex: none; }
	/* Phone: one list of links (tavola Home-mobile). */
	.iod-footer__title, .iod-footer__claim { display: none; }
	.iod-footer__nav { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; flex-basis: auto; }
	.iod-footer__columns > .iod-footer__nav + .iod-footer__nav { margin-top: -8px; }
	.iod-footer__legal { flex-direction: column; padding-top: 0; border-top: 0; gap: 4px; }

	.iod-page-head__inner { padding-top: 28px; padding-bottom: 28px; gap: 10px; }
	.iod-page-head__title, .iod-case-hero__title { font-size: 32px; line-height: 39px; }
	.iod-page-head__lead, .iod-case-hero__lead { font-size: var(--iod-text-m); }

	.iod-case-hero__inner { padding-top: 16px; padding-bottom: 24px; gap: 16px; }
	.iod-case-hero__main { gap: 12px; }
	.iod-case-hero__title { margin-top: 8px !important; }
	.iod-case-hero__name { margin-top: 6px; font-size: var(--iod-text-m); }
	.iod-form-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.iod-form-card { padding: 18px 18px 0; }
	.iod-catalog__scope { font-size: 22px; line-height: 28px; }
	body.iod .iod-search__input { min-height: 56px; font-size: var(--iod-text-m); padding-left: 50px; }
	.iod-search__icon { left: 16px; }
	.iod-tabs { margin: 0 -16px; padding: 0 16px; gap: 4px 18px; }
	.iod-pricing__box, .iod-pricing__inner > .iod-pricing__box { padding: 22px; }
	.iod-pricing__from .iod-price__amount { font-size: 32px; }
	.iod-fact--shield, .iod-fact--court { display: none; }
	.iod-facts { font-size: var(--iod-text-s); }
	.iod-price-card { margin-top: 0; padding: 20px; gap: 14px; }
	.iod-price-card__price .iod-price__amount { font-size: 32px; }
	.iod-price-card__summary { display: block; }

	.iod-case-body { column-gap: 0; }
	.iod-case-section__title { font-size: 26px; line-height: 32px; }
	.iod-when { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; }
	.iod-when__col--other { padding: 14px 16px; border-radius: var(--iod-radius); background: var(--iod-background); }
	.iod-when__col--other .iod-when__title { font-size: var(--iod-text-m); }
	.iod-why { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
	.iod-split--rows .iod-why { grid-template-columns: minmax(0, 1fr); }
	.iod-why__title { font-size: var(--iod-text-m); }
	.iod-needs { column-gap: 16px; }
	.iod-need { padding: 12px 0; }

	/* The bar at the bottom: price and button always at hand. */
	.iod-sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--iod-card); border-top: 1px solid var(--iod-border); }
	.iod-sticky-cta .iod-price { flex-direction: column; gap: 0; line-height: 1.2; }
	.iod-sticky-cta .iod-price__amount { font-size: 22px; }
	.iod-sticky-cta .iod-price__vat { font-size: var(--iod-text-s); }
	.iod-sticky-cta .iod-button { flex: 1; min-height: 50px; }
	body.iod:has(.iod-sticky-cta) .iod-footer { padding-bottom: 76px; }

	.iod-prose { font-size: var(--iod-text-m); }
	body.iod .iod-prose h2 { font-size: 22px; line-height: 28px; }

	.iod-article-row__excerpt { display: none; }
	.iod-form__row { grid-template-columns: minmax(0, 1fr); }
}
