/* ==========================================================================
   Ki Kai Dojo – www.karatecarbonera.com
   Foglio di stile unico. Palette e tipografia riprese dal sito originale.
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/inter-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: "Oswald";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/oswald-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/oswald-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;
}

/* ---------- Variabili ---------- */
:root {
	--ink-50: #f6f6f6;
	--ink-100: #e7e7e7;
	--ink-200: #d1d1d1;
	--ink-300: #b0b0b0;
	--ink-400: #888888;
	--ink-500: #6d6d6d;
	--ink-600: #5d5d5d;
	--ink-700: #4f4f4f;
	--ink-800: #454545;
	--ink-900: #1a1a1a;
	--ink-950: #0d0d0d;
	--accent-300: #f7a8a8;
	--accent-400: #f07171;
	--accent-500: #c41e1e;
	--accent-600: #a31818;
	--font-heading: "Oswald", sans-serif;
	--font-body: "Inter", sans-serif;
}

/* ---------- Reset e base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
	overflow-x: hidden;
	width: 100%;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	overflow-x: hidden;
	width: 100%;
	font-family: var(--font-body);
	color: var(--ink-900);
	background: #fff;
	line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
	outline: 2px solid #f97316;
	outline-offset: 2px;
}

.container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* ---------- Animazione reveal (solo con JS attivo) ---------- */
html.js .reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease var(--reveal-delay, 0s), transform 0.7s ease var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	html.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Bottoni ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 2rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.btn-white { background: #fff; color: var(--ink-900); }
.btn-white:hover { background: rgba(255, 255, 255, 0.9); }
.btn-outline-white { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; font-weight: 300; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }
.btn-accent { background: var(--accent-500); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--accent-500); }
.btn-whatsapp { background: #10b981; color: #fff; white-space: nowrap; padding: 0.75rem 1.5rem; }
.btn-whatsapp:hover { background: #059669; }

/* ---------- Sezioni ---------- */
.section { padding-block: 6rem; }
.bg-white { background: #fff; }
.bg-ink-50 { background: var(--ink-50); }
.bg-ink-900 { background: var(--ink-900); }

.section-intro {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
	margin-bottom: 4rem;
}
.eyebrow {
	color: var(--accent-500);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	margin-bottom: 1rem;
}
.section-intro h1,
.section-intro h2 {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 1.5rem;
}
.divider {
	width: 3rem;
	height: 1px;
	background: var(--ink-200);
	margin: 0 auto 1.5rem;
}
.divider.accent { background: var(--accent-500); }
.section-intro .lead { color: var(--ink-400); line-height: 1.7; }

.section-intro.dark h2 { color: #fff; }
.section-intro.dark .divider { background: rgba(255, 255, 255, 0.2); }
.section-intro.dark .lead { color: rgba(255, 255, 255, 0.5); }
.section-intro.dark .eyebrow { color: var(--accent-400); }

.section-cta { text-align: center; margin-top: 4rem; }

@media (min-width: 768px) {
	.section { padding-block: 8rem; }
	.section-intro h1,
	.section-intro h2 { font-size: 3rem; }
}

/* ---------- Colori badge / linee / puntini ---------- */
.card-topline { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	margin-bottom: 1.5rem;
	border: 1px solid;
}
.dot { width: 4px; height: 4px; border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }

.line-orange { background: #f97316; }  .badge-orange { border-color: #fdba74; color: #c2410c; }  .dot-orange { background: #fb923c; }
.line-emerald { background: #10b981; } .badge-emerald { border-color: #6ee7b7; color: #047857; } .dot-emerald { background: #34d399; }
.line-amber { background: #f59e0b; }   .badge-amber { border-color: #fcd34d; color: #b45309; }   .dot-amber { background: #fbbf24; }
.line-sky { background: #0ea5e9; }     .badge-sky { border-color: #7dd3fc; color: #0369a1; }     .dot-sky { background: #38bdf8; }
.line-violet { background: #8b5cf6; }  .badge-violet { border-color: #c4b5fd; color: #6d28d9; }  .dot-violet { background: #a78bfa; }
.line-rose { background: #f43f5e; }    .badge-rose { border-color: #fda4af; color: #be123c; }    .dot-rose { background: #fb7185; }
.line-accent { background: var(--accent-500); } .badge-accent { border-color: var(--accent-300); color: var(--accent-600); } .dot-accent { background: var(--accent-400); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; }

.skip-link {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	width: auto; height: auto;
	clip: auto;
	top: 1rem; left: 5rem;
	background: #fff; color: #000;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	z-index: 1000;
}

.nav-burger { position: fixed; top: 1rem; left: 1rem; z-index: 999; }
.nav-burger-circle {
	width: 3rem; height: 3rem;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.nav-burger svg { width: 1.25rem; height: 1.25rem; color: #fff; transition: color 0.3s ease; }
.nav-burger .icon-close { display: none; }
.navbar.is-scrolled .nav-burger-circle { background: rgba(255, 255, 255, 0.95); box-shadow: 0 1px 6px rgba(0,0,0,0.15); }
.navbar.is-scrolled .nav-burger svg { color: var(--ink-900); }
.navbar.menu-open .nav-burger-circle { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.15); }
.navbar.menu-open .nav-burger svg { color: var(--ink-900); }
.navbar.menu-open .icon-open { display: none; }
.navbar.menu-open .icon-close { display: block; }

.mobile-menu {
	position: fixed; inset: 0;
	background: var(--ink-950);
	z-index: 998;
	display: flex; align-items: center; justify-content: center;
	opacity: 1;
	transition: opacity 0.4s ease;
}
.mobile-menu.is-closing { opacity: 0; }
.mobile-menu-links { text-align: center; }
.mobile-menu-links a {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.125rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	margin-block: 2.5rem;
	transition: color 0.3s ease;
}
.mobile-menu-links a:hover { color: #fff; }

.nav-desktop { display: none; transition: background-color 0.5s ease, box-shadow 0.5s ease; }
.navbar.is-scrolled .nav-desktop {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.nav-desktop-inner {
	display: flex; justify-content: space-between; align-items: center;
	padding-block: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand img { height: 2.5rem; width: 2.5rem; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.navbar.is-scrolled .nav-brand img { filter: none; }
.nav-brand span {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #fff;
	transition: color 0.3s ease;
}
.navbar.is-scrolled .nav-brand span { color: var(--ink-900); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.navbar.is-scrolled .nav-links a { color: var(--ink-500); }
.navbar.is-scrolled .nav-links a:hover { color: var(--ink-900); }

@media (min-width: 768px) {
	.nav-burger { display: none; }
	.mobile-menu { display: none; }
	.nav-desktop { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { height: 100vh; height: 100svh; position: relative; overflow: hidden; }
.hero-slides, .hero-slides img { position: absolute; inset: 0; }
.hero-slide {
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.5s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}
.hero-content {
	position: relative; z-index: 10;
	height: 100%;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	padding-inline: 1.5rem;
	text-align: center;
}
.hero-title-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.hero-logo { height: 3rem; width: auto; filter: brightness(0) invert(1) drop-shadow(0 4px 3px rgba(0,0,0,0.3)); }
.hero-title-row h1 {
	font-size: 1.875rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.05em;
	line-height: 1;
	white-space: nowrap;
}
.hero-subtitle {
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	margin-bottom: 1.5rem;
}
.hero-divider { width: 4rem; height: 1px; background: var(--accent-500); margin-bottom: 1.5rem; }
.hero-tagline {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.125rem;
	font-weight: 300;
	max-width: 32rem;
	line-height: 1.7;
	margin-bottom: 3rem;
}
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; }
.sm-only-br { display: none; }

.hero-scroll-hint {
	position: absolute;
	bottom: 2rem; left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}
html.js .hero-scroll-hint.reveal { transform: translateX(-50%) translateY(40px); }
html.js .hero-scroll-hint.reveal.is-visible { transform: translateX(-50%); }
.hero-scroll-track {
	width: 1px; height: 3rem;
	background: rgba(255, 255, 255, 0.3);
	margin: 0 auto 0.5rem;
	overflow: hidden;
}
.hero-scroll-line {
	width: 100%; height: 100%;
	background: rgba(255, 255, 255, 0.7);
	animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
	0% { transform: translateY(-100%); }
	100% { transform: translateY(100%); }
}

@media (min-width: 640px) {
	.hero-title-row { gap: 1rem; }
	.hero-logo { height: 5rem; }
	.hero-title-row h1 { font-size: 3.75rem; }
	.hero-ctas { flex-direction: row; }
	.sm-only-br { display: inline; }
}
@media (min-width: 768px) {
	.hero-title-row { gap: 1.5rem; }
	.hero-logo { height: 7rem; }
	.hero-title-row h1 { font-size: 6rem; }
	.hero-subtitle { font-size: 1.5rem; }
	.hero-tagline { font-size: 1.25rem; }
}

/* ==========================================================================
   FILOSOFIA
   ========================================================================== */
.values-grid {
	display: grid;
	gap: 3rem;
	max-width: 64rem;
	margin-inline: auto;
}
.value-item { text-align: center; }
.value-kanji {
	font-size: 3rem;
	font-weight: 300;
	color: var(--ink-200);
	margin-bottom: 1rem;
	transition: color 0.7s ease;
	user-select: none;
}
.value-kanji.is-active { color: var(--accent-500); }
.value-item h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ink-900);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.75rem;
}
.value-item p {
	color: var(--ink-400);
	font-size: 0.875rem;
	line-height: 1.7;
	max-width: 20rem;
	margin-inline: auto;
}

.quote-block { max-width: 48rem; margin: 6rem auto 0; text-align: center; }
.quote-block blockquote { position: relative; }
.quote-mark {
	color: var(--ink-100);
	font-size: 6rem;
	font-family: Georgia, serif;
	position: absolute;
	top: -2rem; left: 0;
	user-select: none;
}
.quote-block p {
	color: var(--ink-600);
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.7;
	padding-inline: 2rem;
}
.quote-block footer {
	margin-top: 1rem;
	color: var(--ink-400);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

@media (min-width: 768px) {
	.values-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
	.value-kanji { font-size: 3.75rem; }
	.quote-block p { font-size: 1.25rem; }
}

/* ==========================================================================
   CORSI
   ========================================================================== */
.sede-nome {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ink-900);
	text-align: center;
	letter-spacing: 0.05em;
}
.sede-nome.mt-sede { margin-top: 5rem; }
.sede-indirizzo {
	display: flex; align-items: center; justify-content: center;
	gap: 0.5rem;
	margin: 0.75rem 0 3rem;
}
.sede-indirizzo svg { width: 1.25rem; height: 1.25rem; color: var(--accent-500); flex-shrink: 0; }
.sede-indirizzo p { color: var(--ink-600); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.025em; }

.courses-grid {
	display: grid;
	gap: 2rem;
	max-width: 64rem;
	margin-inline: auto;
}
.course-card { position: relative; padding: 2rem; background: var(--ink-50); display: flex; flex-direction: column; }
.course-subtitle { font-size: 1.25rem; font-family: var(--font-heading); font-weight: 700; color: var(--ink-900); margin-bottom: 0.25rem; }
.course-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-900); margin-bottom: 1rem; }
.course-desc { font-size: 0.875rem; color: var(--ink-400); line-height: 1.7; margin-bottom: 2rem; }
.course-schedule { margin-top: auto; }
.schedule-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-300);
	margin-bottom: 0.75rem;
}
.course-schedule li {
	font-size: 0.875rem;
	color: var(--ink-600);
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.btn-course-gallery { margin-top: 2rem; width: 100%; padding: 0.75rem 1.25rem; }

@media (min-width: 768px) {
	.courses-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
	.courses-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 48rem; }
	.courses-grid.cols-1 { max-width: 32rem; }
	.sede-nome { font-size: 1.875rem; }
}

/* ---------- Modal galleria corso ---------- */
.modal-backdrop {
	position: fixed; inset: 0;
	z-index: 50;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
	padding: 1rem;
}
.modal-box {
	position: relative;
	background: #fff;
	max-width: 56rem;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.5rem;
}
.modal-close { position: absolute; top: 1rem; right: 1rem; color: var(--ink-400); transition: color 0.2s; }
.modal-close:hover { color: var(--ink-900); }
.modal-close svg { width: 1.5rem; height: 1.5rem; }
.modal-box h3 { font-size: 1.5rem; font-weight: 700; color: var(--ink-900); margin-bottom: 0.5rem; }
.modal-subtitle { color: var(--ink-400); font-size: 0.875rem; margin-bottom: 2rem; }
.modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.modal-grid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.2s;
}
.modal-grid img:hover { opacity: 0.8; }
.modal-empty { color: var(--ink-300); text-align: center; padding-block: 3rem; }

@media (min-width: 768px) {
	.modal-box { padding: 2.5rem; }
	.modal-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0;
	z-index: 60;
	background: rgba(0, 0, 0, 0.95);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
}
.lightbox-swipe { position: absolute; inset: 0; z-index: 61; touch-action: none; }
.lightbox img {
	position: relative; z-index: 60;
	max-height: 85vh;
	max-width: 90vw;
	object-fit: contain;
}
.lightbox button {
	position: absolute;
	z-index: 62;
	color: rgba(255, 255, 255, 0.6);
	transition: color 0.2s;
}
.lightbox button:hover { color: #fff; }
.lightbox button svg { width: 2rem; height: 2rem; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
	position: absolute;
	z-index: 62;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	background: rgba(0, 0, 0, 0.4);
	padding: 0.25rem 0.75rem;
	pointer-events: none;
}

/* ==========================================================================
   ISTRUTTORI
   ========================================================================== */
.instructors-grid {
	display: grid;
	gap: 2rem;
	max-width: 56rem;
	margin-inline: auto;
}
.instructor-photo { overflow: hidden; margin-bottom: 1.5rem; }
.instructor-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.instructor-card h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.instructor-rank {
	color: var(--accent-400);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1rem;
}
.instructor-bio { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; line-height: 1.7; }

@media (min-width: 768px) {
	.instructors-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

/* ==========================================================================
   ARBITRI E PDG
   ========================================================================== */
.referees-grid {
	display: grid;
	gap: 2rem;
	max-width: 64rem;
	margin-inline: auto;
}
.referee-card {
	position: relative;
	padding: 2rem;
	background: #fff;
	border: 1px solid var(--ink-100);
}
.referee-photo { overflow: hidden; margin-bottom: 1.5rem; }
.referee-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.referee-card .badge { margin-bottom: 1rem; }
.referee-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-900); margin-bottom: 0.5rem; }
.referee-desc { color: var(--ink-400); font-size: 0.875rem; line-height: 1.7; }

@media (min-width: 768px) {
	.referees-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   SOSTENITORI
   ========================================================================== */
.supporters-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	max-width: 64rem;
	margin-inline: auto;
}
.supporter-card {
	display: flex; flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	width: 10rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(196, 30, 30, 0.4);
	transition: border-color 0.3s ease, background-color 0.3s ease;
}
.supporter-card:hover { background: rgba(255, 255, 255, 0.1); }
.supporter-card img { width: 100%; height: auto; object-fit: contain; }
.supporter-card span {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
}
@media (min-width: 640px) {
	.supporter-card { width: 12rem; }
}

/* ==========================================================================
   FOTO (anteprima home + pagina)
   ========================================================================== */
.gallery-preview-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	max-width: 64rem;
	margin-inline: auto;
}
.gallery-preview-grid a { display: block; overflow: hidden; border-radius: 0.25rem; background: #000; }
.gallery-preview-grid img {
	width: 100%;
	height: 10rem;
	object-fit: contain;
	transition: transform 0.5s ease;
}
.gallery-preview-grid a:hover img { transform: scale(1.05); }

@media (min-width: 640px) {
	.gallery-preview-grid img { height: 14rem; }
}
@media (min-width: 768px) {
	.gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

.subpage-container { padding-block: 5rem; }
.foto-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	max-width: 72rem;
	margin-inline: auto;
}
.foto-thumb { display: block; overflow: hidden; border-radius: 0.25rem; }
.foto-thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	image-orientation: from-image;
	transition: transform 0.3s ease;
}
.foto-thumb:hover img { transform: scale(1.05); }

@media (min-width: 640px) { .foto-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .foto-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   ARTICOLI (card notizie / blog)
   ========================================================================== */
.articles-grid { display: grid; gap: 2rem; }
.article-card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--ink-100);
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
	border-color: var(--ink-300);
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.article-card-img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-950); }
.article-card-img img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-img.is-empty { display: flex; align-items: center; justify-content: center; }
.article-card-img.is-empty span { font-size: 3.75rem; color: var(--ink-800); font-weight: 300; user-select: none; }
.page-blog .article-card-img { background: #000; }
.page-blog .article-card-img img { object-fit: contain; }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.article-card-body h2,
.article-card-body h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ink-900);
	line-height: 1.375;
	margin-bottom: 0.75rem;
	transition: color 0.3s ease;
}
.article-card:hover .article-card-body h2,
.article-card:hover .article-card-body h3 { color: var(--accent-600); }
.article-card-desc {
	color: var(--ink-400);
	font-size: 0.875rem;
	line-height: 1.7;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.article-card-footer {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ink-100);
}
.article-card-footer time { color: var(--ink-300); font-size: 0.75rem; }
.article-card-read {
	color: var(--accent-500);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	display: flex; align-items: center; gap: 0.25rem;
}
.article-card-read svg { width: 0.75rem; height: 0.75rem; }
.no-articles { text-align: center; padding-block: 5rem; color: var(--ink-300); font-size: 1.125rem; }

@media (min-width: 768px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.whatsapp-cta {
	max-width: 48rem;
	margin: 0 auto 4rem;
	background: var(--ink-900);
	padding: 2rem;
	display: flex; flex-direction: column;
	align-items: center; justify-content: space-between;
	gap: 1.5rem;
	text-align: center;
}
.whatsapp-cta h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.whatsapp-cta p { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; }

.contact-links {
	display: flex; flex-direction: column;
	justify-content: center; align-items: center;
	gap: 2rem;
	max-width: 42rem;
	margin: 0 auto 4rem;
}
.contact-links a {
	color: var(--ink-400);
	font-size: 0.875rem;
	display: flex; align-items: center; gap: 0.5rem;
	transition: color 0.2s ease;
}
.contact-links a:hover { color: var(--accent-500); }
.contact-links svg { width: 1rem; height: 1rem; color: var(--ink-300); }

.sedi-wrap { max-width: 64rem; margin-inline: auto; }
.sedi-title {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ink-500);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	text-align: center;
	margin-bottom: 2.5rem;
}
.sedi-grid { display: grid; gap: 2rem; }
.sede-card { background: #fff; overflow: hidden; }
.sede-map { height: 200px; }
.sede-map iframe { width: 100%; height: 200px; border: 0; filter: grayscale(1) contrast(1.1); display: block; }
.map-placeholder {
	width: 100%; height: 200px;
	background: var(--ink-100);
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	gap: 0.75rem;
	padding-inline: 1rem;
}
.map-placeholder svg { width: 2rem; height: 2rem; color: var(--ink-300); }
.map-placeholder p { color: var(--ink-400); font-size: 0.75rem; text-align: center; line-height: 1.6; }
.map-placeholder button { font-size: 0.75rem; font-weight: 600; color: var(--accent-500); transition: color 0.2s; }
.map-placeholder button:hover { color: var(--accent-600); }

.sede-info { padding: 1.25rem; text-align: center; }
.sede-info h4 {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--ink-900);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
}
.sede-info > a { color: var(--ink-400); font-size: 0.75rem; line-height: 1.6; transition: color 0.2s; }
.sede-info > a:hover { color: var(--accent-500); }
.sede-orari { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--ink-100); }
.sede-giorni { font-size: 0.75rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.25rem; }
.sede-ore { font-size: 0.75rem; color: var(--ink-400); }

@media (min-width: 640px) { .contact-links { flex-direction: row; } }
@media (min-width: 768px) {
	.whatsapp-cta { flex-direction: row; text-align: left; padding: 2.5rem; }
	.sedi-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 48rem; margin-inline: auto; }
.faq-item { padding-block: 1.5rem; border-bottom: 1px solid var(--ink-100); }
.faq-item:first-child { border-top: 0; }
.faq-question {
	width: 100%;
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 1rem;
	text-align: left;
}
.faq-question h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ink-900);
	transition: color 0.2s ease;
}
.faq-question:hover h3 { color: var(--accent-500); }
.faq-icon {
	flex-shrink: 0;
	width: 1.5rem; height: 1.5rem;
	display: flex; align-items: center; justify-content: center;
	color: var(--accent-500);
	transition: transform 0.3s ease;
}
.faq-icon svg { width: 1.25rem; height: 1.25rem; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { overflow: hidden; }
.faq-answer p {
	margin-top: 1rem;
	color: var(--ink-500);
	line-height: 1.7;
	font-size: 0.875rem;
}
.section-faq { padding-block: 4rem; background: #fff; }

@media (min-width: 768px) {
	.faq-question h3 { font-size: 1.125rem; }
	.faq-answer p { font-size: 1rem; }
	.section-faq { padding-block: 6rem; }
}

/* ==========================================================================
   SEZIONE SEO
   ========================================================================== */
.section-seo { padding-block: 5rem; }
.seo-prose { max-width: 56rem; margin-inline: auto; }
.seo-prose h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 1.5rem;
}
.seo-prose p { color: var(--ink-500); line-height: 1.75; margin-bottom: 2.5rem; }
.seo-prose p:last-child { margin-bottom: 0; }
.seo-prose strong { color: var(--ink-900); font-weight: 600; }

@media (min-width: 768px) {
	.section-seo { padding-block: 7rem; }
	.seo-prose h2 { font-size: 1.875rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink-950); color: #fff; padding-block: 4rem; }
.footer-grid {
	display: grid;
	gap: 3rem;
	max-width: 56rem;
	margin-inline: auto;
}
.footer-brand { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-motto { color: rgba(255, 255, 255, 0.4); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255, 255, 255, 0.3); transition: color 0.3s ease; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer-heading {
	font-size: 0.75rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 1rem;
	font-family: var(--font-heading);
}
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a,
.footer-contacts a,
.footer-contacts p {
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.875rem;
	transition: color 0.3s ease;
}
.footer-contacts p { margin-bottom: 0.5rem; }
.footer-contacts a { display: block; margin-bottom: 0.5rem; }
.footer-nav a:hover, .footer-contacts a:hover { color: #fff; }

.footer-affiliations {
	max-width: 56rem;
	margin: 3rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex; flex-direction: column; align-items: center;
}
.footer-aff-label {
	color: rgba(255, 255, 255, 0.3);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 1rem;
}
.footer-aff-logos { display: flex; align-items: flex-start; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.footer-aff-logos a {
	display: flex; flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.7);
}
.footer-aff-logos img { height: 3rem; width: auto; object-fit: contain; }
.footer-aff-logos span {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
	line-height: 1.3;
	max-width: 100px;
}

.footer-bottom {
	max-width: 56rem;
	margin: 2rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}
.footer-policies { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-policies a { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; transition: color 0.3s ease; }
.footer-policies a:hover { color: #fff; }
.footer-copyright { color: rgba(255, 255, 255, 0.25); font-size: 0.75rem; letter-spacing: 0.05em; }

@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   PAGINE SECONDARIE
   ========================================================================== */
.dark-header {
	background: var(--ink-950);
	padding-top: 8rem;
	padding-bottom: 5rem;
	text-align: center;
}
.dark-header .container { max-width: 56rem; }
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent-400);
	font-size: 0.875rem;
	margin-bottom: 2.5rem;
	transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent-300); }
.back-link svg { width: 1rem; height: 1rem; }
.back-link.muted { color: var(--ink-500); margin-bottom: 0; }
.back-link.muted:hover { color: var(--ink-900); }
.dark-header h1 {
	font-size: 2.25rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}
.dark-header .eyebrow { color: var(--accent-500); }
.dark-header .lead { color: rgba(255, 255, 255, 0.5); max-width: 36rem; margin-inline: auto; line-height: 1.7; }

@media (min-width: 768px) {
	.dark-header h1 { font-size: 3.75rem; }
}

.blog-container { padding-block: 5rem; max-width: 64rem; }
.tag-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 3rem;
}
.tag-btn {
	padding: 0.375rem 1rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border: 1px solid var(--ink-200);
	color: var(--ink-500);
	transition: all 0.3s ease;
}
.tag-btn:hover { border-color: var(--accent-500); color: var(--accent-500); }
.tag-btn.tag-all:hover { border-color: var(--ink-900); color: var(--ink-900); }
.tag-btn.is-active { background: var(--accent-500); color: #fff; border-color: var(--accent-500); }
.tag-btn.tag-all.is-active { background: var(--ink-900); border-color: var(--ink-900); }

/* ---------- Pagina articolo ---------- */
.article-hero { position: relative; overflow: hidden; }
.article-hero-bg { position: absolute; inset: 0; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: contain; }
.article-hero-overlay { position: absolute; inset: 0; background: rgba(13, 13, 13, 0.9); }
.article-hero-content { position: relative; max-width: 48rem; }
.article-hero h1 { font-size: 1.875rem; }
.article-date { display: block; color: rgba(255, 255, 255, 0.3); font-size: 0.875rem; margin-top: 1.5rem; }

.article-container { max-width: 48rem; padding-block: 4rem; }

.prose-blog { color: var(--ink-700); line-height: 1.85; font-size: 1.0625rem; }
.prose-blog h2, .prose-blog h3, .prose-blog h4 {
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: 0.02em;
}
.prose-blog h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose-blog h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.prose-blog h2:first-child, .prose-blog p:first-child { margin-top: 0; }
.prose-blog p { margin-bottom: 1.25rem; }
.prose-blog ul, .prose-blog ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }
.prose-blog li { margin-bottom: 0.4rem; }
.prose-blog a { color: var(--accent-500); text-decoration: underline; }
.prose-blog a:hover { color: var(--accent-600); }
.prose-blog blockquote {
	border-left: 3px solid var(--accent-500);
	padding-left: 1.25rem;
	color: var(--ink-400);
	font-style: italic;
	margin: 1.5rem 0;
}
.prose-blog strong, .prose-blog b { color: var(--ink-900); font-weight: 600; }
.prose-blog img { width: 100%; margin: 2rem 0; }
.prose-blog hr { border: 0; border-top: 1px solid var(--ink-100); margin: 2.5rem 0; }

.article-gallery { margin-top: 4rem; }
.article-gallery h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink-900);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1.5rem;
}
.article-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.article-gallery-item { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ink-100); }
.article-gallery-item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.article-gallery-item:hover img { transform: scale(1.05); }

.article-footer {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ink-100);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
}
.contact-cta {
	display: inline-flex; align-items: center; gap: 0.5rem;
	color: var(--accent-500);
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s ease;
}
.contact-cta:hover { color: var(--accent-600); }
.contact-cta svg { width: 1rem; height: 1rem; }

@media (min-width: 640px) {
	.article-gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.article-footer { flex-direction: row; align-items: center; }
}

/* ---------- Pagine policy / 404 ---------- */
.page-policy body { background: var(--ink-950); }
.policy-page { min-height: 100vh; background: var(--ink-950); color: #fff; }
.policy-container { max-width: 48rem; padding-block: 6rem; }
.policy-page h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 2rem; }
.policy-updated { color: rgba(255, 255, 255, 0.4); font-size: 0.875rem; margin-bottom: 3rem; }
.policy-page .back-link { margin-bottom: 3rem; }

.prose-policy h2 {
	font-size: 1.25rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: #fff;
	margin: 2.5rem 0 1rem;
}
.prose-policy h3 {
	font-size: 1.125rem;
	font-family: var(--font-heading);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	margin: 1.5rem 0 0.75rem;
}
.prose-policy p {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}
.prose-policy ul {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
	line-height: 1.7;
	margin-bottom: 1rem;
	list-style: disc inside;
}
.prose-policy li { margin-bottom: 0.25rem; }
.prose-policy a { color: var(--accent-400); text-decoration: underline; transition: color 0.2s; }
.prose-policy a:hover { color: var(--accent-300); }
.prose-policy strong { color: rgba(255, 255, 255, 0.8); }
.prose-policy code { font-family: ui-monospace, monospace; font-size: 0.75rem; }
.prose-policy .btn-cookie-accept { margin: 0.5rem 0 1.5rem; }

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.table-wrap th {
	text-align: left;
	padding: 0.5rem 1rem 0.5rem 0;
	color: rgba(255, 255, 255, 0.8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-weight: 600;
}
.table-wrap td { padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

@media (min-width: 768px) {
	.policy-page h1 { font-size: 3rem; }
}

.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; }
.notfound-kanji { font-size: 6rem; color: var(--ink-800); font-weight: 300; user-select: none; margin-bottom: 1rem; }
.notfound-text { color: rgba(255, 255, 255, 0.5); margin: 0 0 2.5rem; }

/* ==========================================================================
   COOKIE BANNER / SCROLL TOP
   ========================================================================== */
.cookie-banner {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	z-index: 9999;
	padding: 1rem;
}
.cookie-banner-box {
	max-width: 42rem;
	margin-inline: auto;
	background: var(--ink-900);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.cookie-banner p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	line-height: 1.7;
	margin-bottom: 1.25rem;
}
.cookie-banner a { color: var(--accent-400); text-decoration: underline; }
.cookie-banner a:hover { color: var(--accent-300); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-cookie-accept {
	padding: 0.5rem 1.5rem;
	background: var(--accent-500);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background-color 0.2s;
}
.btn-cookie-accept:hover { background: var(--accent-600); }
.btn-cookie-reject {
	padding: 0.5rem 1.5rem;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background-color 0.2s;
}
.btn-cookie-reject:hover { background: rgba(255, 255, 255, 0.2); }

@media (min-width: 768px) { .cookie-banner { padding: 1.5rem; } }

.scroll-top {
	position: fixed;
	bottom: 1.5rem; right: 1.5rem;
	z-index: 50;
	width: 2.5rem; height: 2.5rem;
	background: var(--ink-900);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}
.scroll-top:hover { background: var(--accent-500); }
.scroll-top svg { width: 1rem; height: 1rem; }
