/* Atlante Privacy – pagine legali (privacy, cookie, termini). Stile del sito: blu notte, oro, Montserrat. */

.atl-legal {
	--atl-navy: #061a3a;
	--atl-navy-2: #0b3a6e;
	--atl-blue: #1c5fa8;
	--atl-gold: #e8b52f;
	--atl-gold-2: #f6d27a;
	--atl-ink: #0f1d33;
	--atl-muted: #5b6b82;
	--atl-line: #e3e9f2;
	--atl-soft: #f5f7fb;
	--atl-head: Montserrat, "Open Sans", system-ui, sans-serif;
	--atl-ease: cubic-bezier(.2, .8, .2, 1);
	max-width: 980px;
	margin: 10px auto 40px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--atl-ink);
	counter-reset: atl-sec;
}
.atl-legal *,
.atl-legal *::before,
.atl-legal *::after { box-sizing: border-box; }
.atl-legal .atl-ico { flex: 0 0 auto; display: block; }

/* ---------- intestazione ---------- */

.atl-legal__hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin: 0 0 22px;
	padding: 34px 36px;
	color: #fff;
	background:
		radial-gradient(520px 240px at 100% 0%, rgba(232, 181, 47, .25), transparent 70%),
		radial-gradient(420px 220px at 0% 100%, rgba(95, 168, 232, .2), transparent 70%),
		linear-gradient(135deg, #061a3a 0%, #0a2b55 55%, #0b3a6e 100%);
	border-radius: 26px;
	box-shadow: 0 30px 60px -28px rgba(6, 26, 58, .55);
	overflow: hidden;
}
.atl-legal__hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--atl-gold) 20%, var(--atl-gold-2) 50%, var(--atl-gold) 80%, transparent);
}
.atl-legal__hero-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	color: var(--atl-navy);
	background: radial-gradient(circle at 30% 25%, #ffe9a8, var(--atl-gold) 60%, #c8931a);
	border-radius: 22px;
	box-shadow: 0 0 0 7px rgba(232, 181, 47, .15), 0 16px 30px -12px rgba(232, 181, 47, .6);
	transform: rotate(-4deg);
}
.atl-legal__hero-text { min-width: 0; }
.atl-legal p.atl-legal__eyebrow {
	margin: 0 0 4px;
	font-family: var(--atl-head);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atl-gold);
}
.atl-legal p.atl-legal__hero-title {
	margin: 0 0 8px;
	font-family: var(--atl-head);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: #fff;
}
.atl-legal p.atl-legal__lead {
	margin: 0 0 16px;
	font-size: 16px;
	color: #c8d4e6;
}
.atl-legal p.atl-legal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}
.atl-legal__meta > span,
.atl-legal__print {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
}
.atl-legal__meta .atl-ico { color: var(--atl-gold); }
.atl-legal__print {
	font-family: inherit;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.atl-legal__print:hover { background: rgba(255, 255, 255, .16); border-color: var(--atl-gold); }

/* ---------- indice ---------- */

.atl-legal__toc {
	margin: 0 0 28px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--atl-line);
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(6, 26, 58, .05), 0 16px 32px -24px rgba(6, 26, 58, .25);
}
.atl-legal p.atl-legal__toc-title {
	margin: 0 0 12px;
	font-family: var(--atl-head);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--atl-muted);
}
.atl-legal__toc ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.atl-legal__toc li { margin: 0; padding: 0; }
.atl-legal__toc li::before { display: none; }
.atl-legal__toc a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--atl-ink) !important;
	text-decoration: none !important;
	border-radius: 12px;
	transition: background-color .15s, color .15s;
}
.atl-legal__toc a .atl-ico { color: var(--atl-navy-2); }
.atl-legal__toc a:hover { background: var(--atl-soft); color: var(--atl-navy-2) !important; }
.atl-legal__toc a:hover .atl-ico { color: #c8931a; }

/* ---------- sezioni ---------- */

.atl-legal__section {
	margin: 0 0 18px;
	padding: 28px 30px;
	background: #fff;
	border: 1px solid var(--atl-line);
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(6, 26, 58, .05), 0 16px 32px -26px rgba(6, 26, 58, .3);
	scroll-margin-top: 110px;
	transition: border-color .2s, box-shadow .2s;
}
.atl-legal__section:target {
	border-color: rgba(232, 181, 47, .8);
	box-shadow: 0 0 0 4px rgba(232, 181, 47, .18), 0 16px 32px -26px rgba(6, 26, 58, .3);
}

.atl-legal__section-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	padding: 0 0 16px;
	border-bottom: 1px dashed var(--atl-line);
}
.atl-legal__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	color: #fff;
	background: linear-gradient(135deg, var(--atl-navy-2), var(--atl-blue));
	border-radius: 15px;
	box-shadow: 0 10px 20px -12px rgba(11, 58, 110, .8);
}
.atl-legal__section:nth-of-type(3n+2) .atl-legal__icon {
	color: var(--atl-navy);
	background: linear-gradient(135deg, #c8931a, var(--atl-gold));
	box-shadow: 0 10px 20px -12px rgba(200, 147, 26, .8);
}
.atl-legal .atl-legal__section-head h2 {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--atl-head) !important;
	font-size: 21px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: -.005em !important;
	text-transform: none !important;
	color: var(--atl-navy) !important;
}
.atl-legal__num {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .05em;
	color: #c8931a;
}

.atl-legal__body > :first-child { margin-top: 0; }
.atl-legal__body > :last-child { margin-bottom: 0; }
.atl-legal__body p { margin: 0 0 14px; }
.atl-legal__body a { color: var(--atl-navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.atl-legal__body a:hover { color: #c8931a; }
.atl-legal__body strong { color: var(--atl-navy); }

.atl-legal__body ul,
.atl-legal__body ol {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}
.atl-legal__body li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 28px;
}
.atl-legal__body ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .55em;
	width: 14px;
	height: 14px;
	background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8931a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.atl-legal__body ol { counter-reset: atl-ol; }
.atl-legal__body ol > li { counter-increment: atl-ol; }
.atl-legal__body ol > li::before {
	content: counter(atl-ol);
	position: absolute;
	left: 0;
	top: .2em;
	width: 20px;
	height: 20px;
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	color: var(--atl-navy);
	background: #fbecc1;
	border-radius: 50%;
}

.atl-legal__body h3 {
	margin: 22px 0 8px !important;
	padding: 0 !important;
	font-family: var(--atl-head) !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	text-transform: none !important;
	color: var(--atl-navy-2) !important;
}

/* riquadro evidenziato (usato nei testi: <p class="atl-legal__note">) */
.atl-legal__body .atl-legal__note {
	padding: 14px 18px;
	background: #fff8e5;
	border: 1px solid #f3dc9b;
	border-left: 4px solid var(--atl-gold);
	border-radius: 12px;
}

/* dati del titolare */
.atl-legal__controller {
	padding: 16px 20px;
	background: var(--atl-soft);
	border-left: 4px solid var(--atl-gold);
	border-radius: 12px;
}

/* tabelle */
.atl-legal__table-wrap,
.atl-legal__body > table {
	display: block;
	width: 100%;
	overflow-x: auto;
	margin: 6px 0 16px;
	border: 1px solid var(--atl-line);
	border-radius: 16px;
}
.atl-legal table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}
.atl-legal__body > table { min-width: 0; }
.atl-legal th,
.atl-legal td {
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--atl-line);
}
.atl-legal th {
	font-family: var(--atl-head);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--atl-navy-2);
}
.atl-legal tbody tr:nth-child(even) td { background: #f9fbfe; }
.atl-legal tbody tr:last-child td { border-bottom: 0; }
.atl-legal td small { color: var(--atl-muted); }

/* schede dei servizi */
.atl-legal__service {
	margin: 0 0 14px;
	padding: 18px 20px;
	background: var(--atl-soft);
	border: 1px solid var(--atl-line);
	border-radius: 16px;
}
.atl-legal__service h3 { margin-top: 0 !important; }
.atl-legal dl {
	display: grid;
	grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
	gap: 6px 16px;
	margin: 0;
	font-size: 14.5px;
}
.atl-legal dt { font-weight: 700; color: var(--atl-muted); }
.atl-legal dd { margin: 0; overflow-wrap: anywhere; }

.atl-legal .atl-cc-inline-prefs { margin-top: 4px; }

/* ---------- telefono ---------- */

@media (max-width: 767px) {
	.atl-legal { font-size: 15.5px; margin-top: 0; }
	.atl-legal__hero { flex-direction: column; gap: 16px; padding: 26px 20px; border-radius: 22px; }
	.atl-legal__hero-icon { width: 60px; height: 60px; border-radius: 18px; }
	.atl-legal p.atl-legal__hero-title { font-size: 23px; }
	.atl-legal p.atl-legal__lead { font-size: 15px; }
	.atl-legal__toc { padding: 18px 14px; }
	.atl-legal__toc ol { grid-template-columns: 1fr; }
	.atl-legal__section { padding: 22px 18px; border-radius: 20px; }
	.atl-legal__section-head { gap: 12px; }
	.atl-legal__icon { width: 42px; height: 42px; border-radius: 13px; }
	.atl-legal .atl-legal__section-head h2 { flex-direction: column; gap: 0; font-size: 18px !important; }
	.atl-legal dl { grid-template-columns: 1fr; gap: 0; }
	.atl-legal dd { margin-bottom: 8px; }
	.atl-legal table { min-width: 520px; }
	.atl-legal__body > table { min-width: 0; }
}

/* tabella delle finalità: su telefono ogni riga diventa una scheda */
@media (max-width: 640px) {
	.atl-legal__body > table { border: 0; overflow: visible; }
	.atl-legal__body > table thead { display: none; }
	.atl-legal__body > table,
	.atl-legal__body > table tbody,
	.atl-legal__body > table tr,
	.atl-legal__body > table td { display: block; width: 100%; }
	.atl-legal__body > table tr {
		margin: 0 0 12px;
		border: 1px solid var(--atl-line);
		border-radius: 14px;
		overflow: hidden;
	}
	.atl-legal__body > table td { border-bottom: 1px solid var(--atl-line); background: #fff !important; }
	.atl-legal__body > table td:first-child { font-weight: 700; color: var(--atl-navy); background: var(--atl-soft) !important; }
	.atl-legal__body > table td:last-child { border-bottom: 0; }
	.atl-legal__body > table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 11.5px;
		font-weight: 800;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: var(--atl-muted);
	}
}

@media print {
	.atl-legal__toc,
	.atl-legal__print { display: none !important; }
	.atl-legal__hero { color: #000; background: none; box-shadow: none; border: 1px solid #ccc; }
	.atl-legal p.atl-legal__hero-title,
	.atl-legal p.atl-legal__lead { color: #000; }
	.atl-legal__section { box-shadow: none; break-inside: avoid; }
}

/* ---------- difese dagli stili del tema (pagine.css usa selettori lunghi con !important):
   :is(#atl-legal-forza, ...) dà al selettore il peso di un id senza bisogno che l'id esista ---------- */
:is(#atl-legal-forza, .atl-legal) .atl-legal__hero p.atl-legal__eyebrow { margin: 0 0 4px !important; color: var(--atl-gold) !important; font-size: 12.5px !important; line-height: 1.4 !important; }
:is(#atl-legal-forza, .atl-legal) .atl-legal__hero p.atl-legal__hero-title { margin: 0 0 8px !important; color: #fff !important; font-family: var(--atl-head) !important; font-size: 30px !important; line-height: 1.2 !important; font-weight: 800 !important; }
:is(#atl-legal-forza, .atl-legal) .atl-legal__hero p.atl-legal__lead { margin: 0 0 16px !important; color: #c8d4e6 !important; font-size: 16px !important; line-height: 1.6 !important; }
:is(#atl-legal-forza, .atl-legal) p.atl-legal__meta { margin: 0 !important; }
:is(#atl-legal-forza, .atl-legal) p.atl-legal__toc-title { margin: 0 0 12px !important; font-size: 13px !important; color: var(--atl-muted) !important; }
:is(#atl-legal-forza, .atl-legal) .atl-legal__section-head h2 {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--atl-head) !important;
	font-size: 21px !important;
	line-height: 1.3 !important;
	color: var(--atl-navy) !important;
}
:is(#atl-legal-forza, .atl-legal) .atl-legal__body h3 { margin: 22px 0 8px !important; font-size: 17px !important; }
:is(#atl-legal-forza, .atl-legal) h2::before,
:is(#atl-legal-forza, .atl-legal) h2::after,
:is(#atl-legal-forza, .atl-legal) h3::before,
:is(#atl-legal-forza, .atl-legal) h3::after { display: none !important; content: none !important; }
:is(#atl-legal-forza, .atl-legal) .atl-legal__toc a,
:is(#atl-legal-forza, .atl-legal) .atl-legal__toc a:hover { border: 0 !important; box-shadow: none !important; background-image: none !important; text-decoration: none !important; }
@media (max-width: 767px) {
	:is(#atl-legal-forza, .atl-legal) .atl-legal__hero p.atl-legal__hero-title { font-size: 23px !important; }
	:is(#atl-legal-forza, .atl-legal) .atl-legal__hero p.atl-legal__lead { font-size: 15px !important; }
	:is(#atl-legal-forza, .atl-legal) .atl-legal__section-head h2 { font-size: 18px !important; }
}
