/* ==========================================================================
   Chiedi al Tipografo – stili del portale
   Idea guida: il foglio di stampa. Carta fredda, inchiostro blu notte,
   i quattro colori di processo come segnali, i crocini di taglio come firma.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Carta e inchiostro */
	--paper: #f6f7f9;
	--sheet: #ffffff;
	--ink: #15203a;
	--ink-soft: #2c3857;
	--muted: #586379;
	--rule: #d8dde6;

	/* Colori di processo */
	--cyan: #00a0e3;      /* decorativo */
	--cyan-ink: #006e9e;  /* testo e link */
	--cyan-btn: #0074a6;  /* sfondo pulsanti */
	--magenta: #c8006a;
	--yellow: #ffe500;
	--key: #15203a;

	--mark: #15203a;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wrap: 72rem;
	--measure: 42rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 4px;
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5rem;
	--step-3: clamp(1.75rem, 3vw, 2.25rem);
	--step-4: clamp(2.2rem, 5vw, 3.4rem);
	--step-5: clamp(2.6rem, 7vw, 5.4rem);
}

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.6;
	font-stretch: 100%;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 750; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section__title { font-size: var(--step-3); margin: 0; }
.section__more { font-weight: 600; }

.tp-small { font-size: var(--step--1); color: var(--muted); }

/* ---------- Pulsanti ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
	min-height: 44px; padding: 0.6em 1.15em;
	border: 2px solid transparent; border-radius: var(--radius);
	font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none;
	cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--cyan-btn); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--small { min-height: 38px; padding: 0.4em 0.85em; font-size: var(--step--1); }

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

.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; margin: 0; }
.brand__logo { max-height: 40px; width: auto; }
.brand__name { font-weight: 800; font-stretch: 118%; font-size: 1.3rem; letter-spacing: -0.01em; }

/* Segno di registro: i quattro inchiostri */
.brand__reg { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 2px; }
.brand__reg i { width: 9px; height: 9px; display: block; }
.brand__reg i:nth-child(1) { background: var(--cyan); }
.brand__reg i:nth-child(2) { background: var(--magenta); }
.brand__reg i:nth-child(3) { background: var(--yellow); }
.brand__reg i:nth-child(4) { background: var(--key); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
	display: block; padding: 0.55rem 0.8rem; color: var(--ink); text-decoration: none;
	font-weight: 550; border-radius: var(--radius);
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav [aria-current="page"] { background: var(--paper); }

.nav-toggle {
	display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.75rem;
	border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet);
	color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--sheet); border-bottom: 1px solid var(--rule); padding: 0.5rem var(--gutter) 1rem;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
}

/* ---------- Crocini di taglio (la firma del sito) ---------- */

.crop { position: relative; }
.crop__marks {
	position: absolute; inset: -14px; pointer-events: none;
	--l: linear-gradient(var(--mark), var(--mark));
	background:
		var(--l) left 0 top 14px / 10px 1px no-repeat,
		var(--l) left 14px top 0 / 1px 10px no-repeat,
		var(--l) right 0 top 14px / 10px 1px no-repeat,
		var(--l) right 14px top 0 / 1px 10px no-repeat,
		var(--l) left 0 bottom 14px / 10px 1px no-repeat,
		var(--l) left 14px bottom 0 / 1px 10px no-repeat,
		var(--l) right 0 bottom 14px / 10px 1px no-repeat,
		var(--l) right 14px bottom 0 / 1px 10px no-repeat;
}

/* ---------- Hero ---------- */

.hero { background: var(--sheet); border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }

.hero__title {
	font-size: var(--step-5); font-weight: 820; font-stretch: 122%;
	line-height: 0.98; letter-spacing: -0.025em;
	display: inline-block; padding: 0.15em 0.2em; margin: 14px 0 1.5rem 14px;
	max-width: 14ch;
}
.hero--sales .hero__title { font-size: var(--step-4); max-width: 22ch; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; }

.hero__search { display: flex; gap: 0.5rem; max-width: 34rem; margin-top: 1.5rem; }
.hero__search input { flex: 1; }

.hero__specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.hero__specs div { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.hero__specs div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--rule); }
.hero__specs div:nth-child(even) { padding-left: 1rem; }
.hero__specs dt { color: var(--muted); font-size: var(--step--1); }
.hero__specs dd { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 780; font-stretch: 75%; line-height: 1.05; }
.hero__specs div:nth-child(1) dd { color: var(--cyan-ink); }
.hero__specs div:nth-child(2) dd { color: var(--magenta); }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { margin-left: 14px; }
	.hero__search { flex-direction: column; }
}

/* ---------- Testate di pagina ---------- */

.page-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 1.5rem; }
.page-title { font-size: var(--step-4); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: 0.4em; }
.page-title--guide { max-width: 26ch; }
.page-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: var(--measure); }
.page-lead p:last-child { margin: 0; }

.breadcrumb ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: var(--step--1); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule); }
.breadcrumb a { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chips a {
	display: inline-flex; gap: 0.4em; align-items: center; min-height: 38px; padding: 0.3rem 0.85rem;
	border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet);
	color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 550;
}
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips span { color: var(--muted); }

/* ---------- Guide in elenco ---------- */

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 2rem; border-top: 2px solid var(--ink); }
.guide-item { padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.guide-item__cat { font-size: var(--step--1); font-weight: 600; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 0.35rem; }
.guide-item__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.guide-item__title a { color: var(--ink); text-decoration: none; }
.guide-item__title a:hover { color: var(--cyan-ink); text-decoration: underline; }
.guide-item__text { color: var(--ink-soft); margin-bottom: 0.5rem; }
.guide-item__meta { font-size: var(--step--1); color: var(--muted); margin: 0; }

.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 2rem; border-top: 2px solid var(--ink); }
.topic-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.topic-list strong { display: block; font-size: var(--step-1); }
.topic-list span { color: var(--ink-soft); }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Guida singola ---------- */

.guide__meta { color: var(--muted); font-size: var(--step--1); }
.guide__layout { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 20rem); gap: clamp(2rem, 5vw, 4rem); justify-content: space-between; align-items: start; }
.guide__aside { position: sticky; top: 1.5rem; }
@media (max-width: 960px) {
	.guide__layout { grid-template-columns: 1fr; }
	.guide__aside { position: static; }
}

.in-breve {
	background: var(--sheet); padding: 1.4rem 1.5rem 1.2rem; margin: 14px 14px 2.5rem;
	border-left: 6px solid var(--yellow);
	box-shadow: 0 0 0 1px var(--rule);
}
.in-breve__title { font-size: var(--step-0); font-weight: 750; margin-bottom: 0.35rem; }
.in-breve p { font-size: var(--step-1); line-height: 1.5; margin: 0; }

.prose { max-width: var(--measure); }
.prose--wide { max-width: 60rem; }
.prose--large { font-size: var(--step-1); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.35em; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--step--1); background: var(--sheet); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
.prose th { border-bottom: 2px solid var(--ink); }
.prose figure { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 1rem; border-left: 3px solid var(--cyan); color: var(--ink-soft); }

.tp-note-redazione { background: #fff8c4; border: 1px dashed #b49b00; padding: 1rem; border-radius: var(--radius); }

.faq { margin-top: 3rem; max-width: var(--measure); }
.faq h2 { font-size: var(--step-2); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--cyan-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); }

.linked, .fonti { margin-top: 3rem; max-width: var(--measure); }
.linked h2, .fonti h2 { font-size: var(--step-2); }
.linked ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.linked li { border-bottom: 1px solid var(--rule); }
.linked a { display: block; padding: 0.85rem 0; font-weight: 650; }
.fonti ol { padding-left: 1.25em; color: var(--muted); font-size: var(--step--1); }
.fonti li { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.author-box { margin-top: 3rem; max-width: var(--measure); padding: 1.25rem 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--magenta); border-radius: var(--radius); }
.author-box p { margin: 0 0 0.5rem; color: var(--ink-soft); }
.author-box p:last-child { margin-bottom: 0; }
.author-box__name { font-weight: 750; color: var(--ink) !important; }
.author-box__method { font-size: var(--step--1); }
.prose a.gloss { text-decoration-style: dotted; }

/* ---------- Riquadro trova tipografia ---------- */

.find-box { background: var(--ink); color: #fff; padding: 1.5rem; border-radius: var(--radius); }
.find-box__title { font-size: var(--step-2); }
.find-box p { color: #d7dcea; }
.find-box__form { display: flex; flex-direction: column; gap: 0.6rem; }
.find-box select { width: 100%; }
.find-box .btn--primary { background: var(--cyan-btn); }
.find-box .btn--primary:hover { background: #fff; color: var(--ink); }

/* ---------- Mappa ---------- */

.map-block { margin: 0; }
.map { height: clamp(320px, 55vh, 520px); border-radius: var(--radius); background: #e9edf3; box-shadow: 0 0 0 1px var(--rule); }
.city-layout__map .map, .shop-page__aside .map { height: 360px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step--1); color: var(--muted); margin-top: 0.75rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #8c96a8; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(21, 32, 58, 0.35); display: inline-block; }
.dot--cliente { background: var(--cyan-btn); }
.dot--plus { background: var(--magenta); width: 16px; height: 16px; }

.tp-pin { background: none; border: 0; }
.tp-pin span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; background: #8c96a8; box-shadow: 0 1px 3px rgba(21, 32, 58, 0.4); }
.tp-pin--cliente span { background: var(--cyan-btn); }
.tp-pin--plus span { background: var(--magenta); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { margin: 0.8rem 1rem; font-size: 0.95rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.leaflet-popup-content a { font-weight: 600; }

.empty-note { padding: 1.5rem; background: var(--sheet); border: 1px dashed var(--rule); border-radius: var(--radius); margin-top: 1rem; }

/* ---------- Regioni e città ---------- */

.region-list { list-style: none; margin: 0; padding: 0; columns: 3 14rem; column-gap: 2rem; border-top: 2px solid var(--ink); }
.region-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.region-list a { font-weight: 650; color: var(--ink); text-decoration: none; }
.region-list a:hover { color: var(--cyan-ink); text-decoration: underline; }
.region-list span { color: var(--muted); font-size: var(--step--1); }

.city-layout { padding-bottom: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.city-layout__map { position: sticky; top: 1.5rem; }
@media (max-width: 960px) {
	.city-layout { grid-template-columns: 1fr; }
	.city-layout__map { position: static; order: -1; }
}

/* Riga tipografia: come un biglietto di lavorazione */
.shop-list { border-top: 2px solid var(--ink); }
.shop {
	display: flex; justify-content: space-between; gap: 1rem; align-items: center;
	padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.shop--plus { background: var(--sheet); padding: 1.25rem 1rem; margin: 0 -1rem; border-left: 5px solid var(--magenta); }
.shop__name { font-size: var(--step-1); margin: 0 0 0.2rem; }
.shop__name a { color: var(--ink); text-decoration: none; }
.shop__name a:hover { text-decoration: underline; }
.shop__addr { margin: 0; color: var(--ink-soft); }
.shop__tags { margin: 0.25rem 0 0; font-size: var(--step--1); color: var(--muted); }
.shop__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.shop__link { font-weight: 600; }
@media (max-width: 560px) {
	.shop { flex-direction: column; align-items: flex-start; }
	.shop__side { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.badge--plus { background: var(--magenta); color: #fff; }

/* ---------- Scheda tipografia ---------- */

.shop-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.shop-page__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 2rem; }
@media (max-width: 860px) { .shop-page__grid { grid-template-columns: 1fr; } }
.shop-page__photo { margin: 0 0 1.5rem; }
.shop-page__photo img { border-radius: var(--radius); }
.shop-page__main h2 { font-size: var(--step-2); margin-top: 1.5em; }
.service-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-list li { padding: 0.35rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); font-size: var(--step--1); }

.contact-card { margin: 0 0 1.25rem; background: var(--sheet); border-top: 2px solid var(--ink); }
.contact-card div { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); }
.contact-card dt { font-size: var(--step--1); color: var(--muted); }
.contact-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Strumenti in home ---------- */

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }
.tool {
	display: block; padding: 1.75rem; background: var(--sheet); color: var(--ink); text-decoration: none;
	border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule);
}
.tool:hover { box-shadow: 0 0 0 2px var(--ink); }
.tool__title { font-size: var(--step-2); }
.tool p { color: var(--ink-soft); margin: 0; }

/* ---------- Banda tipografie ---------- */

.band { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.band__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band__title { font-size: var(--step-3); font-stretch: 112%; }
.band p { color: #d7dcea; margin: 0; max-width: 34rem; }
.band__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Glossario ---------- */

.az { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.az a { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 700; }
.az a:hover { border-color: var(--ink); }
.glossary { padding-bottom: 3rem; }
.glossary__group { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; border-top: 2px solid var(--ink); padding-top: 0.75rem; margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.glossary__letter { font-size: var(--step-4); font-stretch: 70%; margin: 0; line-height: 1; }
.glossary dl { margin: 0; }
.glossary__item { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); max-width: 48rem; }
.glossary__item dt { font-weight: 700; font-size: var(--step-1); }
.glossary__item dt a { color: var(--ink); text-decoration: none; }
.glossary__item dt a:hover { color: var(--cyan-ink); text-decoration: underline; }
.glossary__item dd { margin: 0.2rem 0 0; color: var(--ink-soft); }
.term__body { padding-bottom: 3rem; }
.term__sub { font-size: var(--step-2); margin-top: 2rem; }
.link-list { padding-left: 1.2em; }

/* ---------- Modelli ---------- */

.template-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.template-item { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.template-item__sheet { width: 34px; height: 46px; flex-shrink: 0; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); position: relative; }
.template-item__sheet::after { content: ""; position: absolute; inset: 5px; border: 1px dashed var(--magenta); }
.template-item__info { flex: 1; }
.template-item__title { font-size: var(--step-1); margin: 0; }
.template-item__title a { color: var(--ink); text-decoration: none; }
.template-item__info p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- Pagina vendita: prezzi e passaggi ---------- */

.tp-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 0.75rem; }
@media (max-width: 900px) { .tp-pricing { grid-template-columns: 1fr; } }
.tp-plan { background: var(--sheet); padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); display: flex; flex-direction: column; }
.tp-plan h3 { margin-top: 0; font-size: var(--step-2); }
.tp-plan__price { font-size: var(--step-2); font-weight: 780; font-stretch: 85%; line-height: 1.25; }
.tp-plan__price span { font-size: var(--step--1); font-weight: 500; color: var(--muted); font-stretch: 100%; }
.tp-plan ul { padding-left: 1.1em; flex: 1; }
.tp-plan--plus { box-shadow: 0 0 0 2px var(--magenta); }
.tp-plan--plus h3 { color: var(--magenta); }

.tp-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.tp-steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: baseline; }
.tp-steps li::before { content: counter(step); font-size: var(--step-3); font-weight: 800; font-stretch: 70%; color: var(--cyan-ink); line-height: 1; }

/* ---------- Moduli ---------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], select, textarea {
	width: 100%; min-height: 46px; padding: 0.6rem 0.8rem;
	font: inherit; color: var(--ink); background: var(--sheet);
	border: 1px solid #aab3c3; border-radius: var(--radius);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan-ink); outline: 3px solid rgba(0, 160, 227, 0.25); outline-offset: 0; }

.search-form { display: flex; gap: 0.5rem; max-width: 34rem; margin: 1rem 0; }

.tp-form { max-width: 44rem; margin: 1.5rem 0 3rem; }
.tp-form fieldset { border: 0; border-top: 2px solid var(--ink); padding: 1rem 0 0.5rem; margin: 0 0 1.5rem; }
.tp-form legend { font-weight: 750; font-size: var(--step-1); padding: 0 0.5rem 0 0; }
.tp-form label, .tp-form__label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.tp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .tp-form__row { grid-template-columns: 1fr; } }
.tp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.25rem 1rem; margin-bottom: 1rem; }
.tp-checks label, .tp-consent label { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; }
.tp-checks input, .tp-consent input, .tp-radios input { margin-top: 0.35rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--cyan-btn); }
.tp-radios { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.tp-radios label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; padding: 0.75rem 0.9rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.tp-radios label:has(input:checked) { border-color: var(--cyan-ink); box-shadow: 0 0 0 1px var(--cyan-ink); }
.tp-radios strong { display: block; }
.tp-consent { font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; }
.form-notice--ok { background: #e6f4ea; border-left: 5px solid #1d7a3a; }
.form-notice--err { background: #fdecef; border-left: 5px solid var(--magenta); }

/* ---------- Footer ---------- */

.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); margin-top: 0; padding-top: 3rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__title { font-size: var(--step-0); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ink); }
.site-footer__about p { color: var(--ink-soft); max-width: 22rem; }
.brand--footer { margin-bottom: 0.75rem; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.site-footer__legal p { margin: 0; }

/* ---------- Editor: allineamenti base dei blocchi ---------- */

.alignwide { max-width: 60rem; }
.alignfull { max-width: none; }
.wp-block-image figcaption { font-size: var(--step--1); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .find-box, .band, .guide__aside { display: none; }
	body { background: #fff; }
}
