/*
 * Sito vetrina superconvenienza.com — foglio di stile condiviso da tutte le
 * pagine statiche in web/. I colori riprendono i token dell'app
 * (app/src/app.css) così il sito e l'applicazione sembrano la stessa cosa.
 */
:root {
	--primary: #e2001a;
	--primary-dark: #b30015;
	--accent: #f0c000;
	--bg: #ffffff;
	--surface: #f2f2f7;
	--text: #1c1c1e;
	--text-2: #6e6e73;
	--border: rgba(60, 60, 67, 0.18);
	--radius: 16px;
	--max: 1080px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 20px;
}

.narrow {
	max-width: 760px;
}

a {
	color: var(--primary-dark);
}

h1,
h2,
h3 {
	line-height: 1.2;
	margin: 0 0 12px;
}

h2 {
	margin-top: 32px;
}

h3 {
	margin-top: 24px;
	font-size: 19px;
}

/* ── Header ─────────────────────────────────────────────────────── */
header.site {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.93);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	min-height: 64px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	text-decoration: none;
	color: var(--text);
	margin-right: auto;
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 9px;
}

.nav a.link {
	text-decoration: none;
	color: var(--text-2);
	font-size: 15px;
}

.nav a.link:hover,
.nav a.link[aria-current='page'] {
	color: var(--primary);
}

.btn {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
}

.btn:hover {
	background: var(--primary-dark);
}

.btn.ghost {
	background: transparent;
	color: var(--primary-dark);
	border: 1px solid var(--border);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
	padding: 72px 0 56px;
	text-align: center;
	background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.hero h1 {
	font-size: clamp(32px, 6vw, 52px);
	letter-spacing: -0.02em;
}

.hero p.lead {
	font-size: clamp(17px, 2.2vw, 21px);
	color: var(--text-2);
	max-width: 640px;
	margin: 0 auto 28px;
}

.hero .cta {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.eyebrow {
	display: inline-block;
	background: var(--accent);
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 18px;
}

/* ── Intestazione pagine interne ─────────────────────────────────── */
.page-head {
	padding: 48px 0 8px;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}

.page-head h1 {
	font-size: clamp(28px, 5vw, 40px);
}

.page-head p {
	color: var(--text-2);
	margin: 0 0 32px;
	max-width: 680px;
}

/* ── Sezioni ────────────────────────────────────────────────────── */
section {
	padding: 56px 0;
}

section.alt {
	background: var(--surface);
}

.section-title {
	text-align: center;
	margin-bottom: 36px;
}

.section-title h2 {
	font-size: clamp(24px, 4vw, 34px);
	margin-top: 0;
}

.section-title p {
	color: var(--text-2);
	margin: 0;
}

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
}

.card .ico {
	font-size: 28px;
	display: block;
	margin-bottom: 10px;
}

.card h3 {
	font-size: 19px;
	margin-top: 0;
}

.card p {
	margin: 0;
	color: var(--text-2);
	font-size: 15px;
}

.card p + p {
	margin-top: 10px;
}

/* ── Testo lungo (privacy, termini, supporto) ────────────────────── */
article {
	padding: 40px 0 64px;
}

article p,
article li {
	color: #2c2c2e;
}

article ul,
article ol {
	padding-left: 22px;
}

article li {
	margin-bottom: 6px;
}

.callout {
	background: var(--surface);
	border-left: 4px solid var(--primary);
	border-radius: 8px;
	padding: 16px 20px;
	margin: 28px 0;
}

.callout :last-child {
	margin-bottom: 0;
}

.meta {
	color: var(--text-2);
	font-size: 14px;
	font-style: italic;
}

table.data {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 15px;
}

table.data th,
table.data td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

table.data th {
	background: var(--surface);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-2);
}

.table-scroll {
	overflow-x: auto;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
details {
	border-bottom: 1px solid var(--border);
	padding: 14px 0;
}

details summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

details summary::-webkit-details-marker {
	display: none;
}

details summary::after {
	content: '+';
	color: var(--primary);
	font-weight: 700;
	flex: none;
}

details[open] summary::after {
	content: '−';
}

details p {
	margin: 10px 0 0;
	color: var(--text-2);
}

/* ── Liste descrittive (contatti, dati legali) ───────────────────── */
.contact-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

dl {
	margin: 0;
}

dt {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-2);
	margin-top: 16px;
}

dd {
	margin: 2px 0 0;
	font-size: 16px;
}

dd a {
	text-decoration: none;
}

/* ── Orari ──────────────────────────────────────────────────────── */
table.hours {
	border-collapse: collapse;
	font-size: 16px;
}

table.hours td {
	padding: 6px 18px 6px 0;
	border-bottom: 1px solid var(--border);
}

table.hours td:first-child {
	color: var(--text-2);
}

table.hours tr.closed td {
	color: var(--text-2);
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site {
	border-top: 1px solid var(--border);
	padding: 40px 0 56px;
	font-size: 14px;
	color: var(--text-2);
	background: var(--surface);
}

footer.site .cols {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 28px;
}

footer.site h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-2);
	margin: 0 0 8px;
}

footer.site ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

footer.site li {
	margin-bottom: 4px;
}

footer.site a {
	color: var(--text-2);
}

footer.site .legal {
	border-top: 1px solid var(--border);
	padding-top: 20px;
	line-height: 1.7;
}

@media print {
	header.site,
	footer.site .cols {
		display: none;
	}
}
