/*
Theme Name: Assoc Comunita
Theme URI: https://example.org/
Author: Il tuo nome
Author URI: https://example.org/
Description: Tema WordPress creato da zero per un'associazione no-profit. Restyling basato sul mockup "Tra Noi Calabria APS" (header con mega-menu, hero con citazione, slider donazioni, bilancio sociale, carosello progetti, news, newsletter, riepilogo utilizzo donazioni, footer). Nessun codice copiato da temi di terze parti.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: assoc-comunita
*/

/* =========================================================
   0. FONT LOCALI (dal mockup fornito)
   ========================================================= */
@font-face {
	font-family: "Forward";
	src: url("assets/fonts/forward.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Edwardian";
	src: url("assets/fonts/edwardian.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   1. VARIABILI GLOBALI (palette e tipografia del mockup)
   ========================================================= */
:root {
	--red: #b61924;
	--white: #ffffff;
	--cream-orange: #f3b75c;
	--orange-soft: #f08630;
	--brown-orange: #b35100;
	--orange: #ff751f;
	--blue: #004aad;
	--pink: #ffe2e4;
	--gold: #d57e00;
	--olive-gray: #959474;
	--black: #111111;
	--text: #222222;
	--muted: #777777;
	--light-bg: #fff2ee;
	--font-title: "Antonio", sans-serif;
	--font-pope: "Forward", sans-serif;
	--font-body: "Quicksand", sans-serif;
	--font-ui: "Inter", sans-serif;
	--font-sing: "Edwardian", sans-serif;
	--container: 1120px;
	--radius-lg: 28px;
	--radius-md: 18px;

	/* Alias per compatibilità con i template non ridisegnati
	   (archivio progetti/gallerie, Team, singoli articoli, pagine) */
	--color-primary: var(--red);
	--color-primary-dark: var(--brown-orange);
	--color-secondary: var(--orange);
	--color-secondary-dark: var(--brown-orange);
	--color-dark: var(--black);
	--color-dark-soft: #2b2b2b;
	--color-text: var(--text);
	--color-muted: var(--muted);
	--color-light-bg: var(--light-bg);
	--color-page-bg: var(--white);
	--color-border: #f0dede;
	--color-ghost-border: #e3c9c9;
	--color-white: var(--white);
	--radius: var(--radius-md);
	--radius-pill: 999px;
	--container-width: var(--container);
	--gap: 1.75rem;
	--shadow-card: 0 12px 30px rgba(0, 0, 0, 0.1);
	--font-heading: var(--font-title);
}

/* =========================================================
   2. RESET BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--text);
	background: var(--pink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; }
.container { width: min(var(--container), calc(100% - 56px)); margin-inline: auto; }

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.75em;
	border-radius: var(--radius-pill);
	background: var(--orange);
	color: var(--white);
	font-weight: 700;
	font-family: var(--font-ui);
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--brown-orange); color: var(--white); transform: translateY(-1px); }
.btn-outline {
	background: transparent;
	color: var(--red);
	box-shadow: inset 0 0 0 2px var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.section { padding: 4.5rem 0; }
.section--muted { background: var(--light-bg); }
.section-heading { text-align: center; margin-bottom: 2.75rem; }
.section-heading .eyebrow { margin-bottom: 0.75rem; }
.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--orange);
	font-weight: 700;
	font-size: 0.8rem;
	font-family: var(--font-ui);
}

/* =========================================================
   3. HEADER E NAVIGAZIONE
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	box-shadow: 0 1px 0 rgba(182, 25, 36, 0.08);
}
.header-inner {
	width: min(1240px, calc(100% - 48px));
	min-height: 132px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.logo img { width: 112px; height: auto; }
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 48px; }
.main-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--red);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--orange); }
.dropdown { position: relative; }
.dropdown-menu {
	position: absolute;
	top: calc(100% + 22px);
	left: 0;
	min-width: 180px;
	padding: 14px;
	background: var(--white);
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.dropdown-menu li + li { margin-top: 8px; }
.dropdown-menu a {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	color: var(--red);
	font-size: 17px;
	font-weight: 700;
}
.dropdown-menu a:hover { background: var(--pink); }

.support-dropdown:hover .support-button {
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
	background: var(--orange);
}
.support-dropdown .dropdown-menu {
	background: var(--orange);
	right: 0;
	left: auto;
	top: 100%;
	margin-top: 0;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.support-dropdown .dropdown-menu a { color: var(--white) !important; }
.support-dropdown .dropdown-menu a:hover {
	background: var(--white);
	color: var(--orange) !important;
}
.support-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	color: var(--white) !important;
	background: var(--orange);
	border-radius: 12px;
	transition: background 0.2s ease, border-radius 0.2s ease;
}
.support-button .arrow-icon {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid var(--white);
	transition: transform 0.3s ease;
	transform-origin: center calc(50% - 2px);
}
.support-dropdown:hover .arrow-icon { transform: rotate(180deg); }

/* =========================================================
   4. HERO
   ========================================================= */
.hero { background: var(--pink); padding: 48px 0 62px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 80px; }
.hero h1 {
	margin: 0;
	color: var(--red);
	font-family: var(--font-title);
	font-size: clamp(24px, 6vw, 64px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.hero-quote {
	max-width: 500px;
	color: var(--gold);
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
}
.hero-quote p {
	margin-top: 80px;
	font-family: var(--font-pope);
	font-size: clamp(15px, 2.8vw, 25px);
	line-height: 1.08;
}
.hero-quote span {
	display: block;
	margin-top: 22px;
	font-size: 40px;
	font-family: var(--font-sing);
}

/* =========================================================
   5. SLIDER DONAZIONI
   ========================================================= */
.donation-slider-section {
	padding: 70px 0 50px;
	background: var(--pink);
	transition: background 0.6s ease;
	position: relative;
	overflow: hidden;
}
.slider-container {
	width: min(1280px, calc(100% - 48px));
	margin-inline: auto;
	position: relative;
}
.slider-wrapper {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
}
.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	z-index: 1;
}
.slide.active { position: relative; opacity: 1; visibility: visible; z-index: 2; }
.slide.active .slide-content { animation: slideTextIn 0.7s ease both; }
@keyframes slideTextIn {
	from { opacity: 0; transform: translateX(-30px); }
	to { opacity: 1; transform: translateX(0); }
}
.slide-content { padding-top: 0; }
.slide-content h2 { font-family: var(--font-body); font-size: 42px; color: var(--red); margin-bottom: 16px; margin-top: 0; }
.slide-content p { font-family: var(--font-body); font-size: 18px; color: #333; margin-bottom: 28px; line-height: 1.6; }
.slide-btn {
	display: inline-block;
	padding: 14px 28px;
	background: var(--orange);
	color: var(--white);
	text-decoration: none;
	font-weight: 700;
	border-radius: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.slide-btn:hover { transform: scale(1.06); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.slide.active .slide-image { animation: imageZoomIn 0.8s ease both; }
@keyframes imageZoomIn {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: scale(1); }
}
.slide-image img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: 22px;
	box-shadow: 0 16px 32px rgba(0,0,0,0.15);
	transition: transform 0.4s ease;
}
.slide-image:hover img { transform: scale(1.03); }
.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--white);
	border: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.slider-arrow:hover { background: var(--red); color: var(--white); transform: translateY(-50%) scale(1.1); }
.prev-arrow { left: -20px; }
.next-arrow { right: -20px; }
.slider-dots { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.slider-dots span {
	width: 12px; height: 12px;
	border-radius: 50%;
	background: rgba(182, 25, 36, 0.25);
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}
.slider-dots span:hover { background: rgba(182, 25, 36, 0.5); }
.slider-dots span.active { background: var(--red); transform: scale(1.3); }

@media (max-width: 820px) {
	.slide { grid-template-columns: 1fr; gap: 24px; text-align: center; }
	.slider-wrapper { min-height: 620px; }
	.slide-image img { height: 300px; }
	.prev-arrow { left: 4px; }
	.next-arrow { right: 4px; }
}

/* =========================================================
   6. BILANCIO SOCIALE
   ========================================================= */
.social-report { background: linear-gradient(180deg, #ffffff 0%, #ffe2e4 100%); padding: 0 0 70px; }
.report-card { position: relative; min-height: 610px; overflow: hidden; }
.report-card img { width: 100%; height: 610px; object-fit: cover; filter: blur(2px); transform: scale(1.01); }
.report-card::after { content: ""; position: absolute; inset: 0; background: rgba(40, 20, 10, 0.35); }
.report-overlay { position: absolute; inset: 0; z-index: 1; padding: 72px 62px; color: var(--white); display: flex; flex-direction: column; }
.report-overlay h2 { max-width: 850px; margin: 0 0 30px; font-family: var(--font-ui); font-size: clamp(26px, 4vw, 46px); line-height: 1.12; font-weight: 600; }
.report-overlay a { width: fit-content; font-size: 28px; font-weight: 600; font-family: var(--font-ui); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 5px; text-underline-offset: 7px; }
.stats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; text-align: center; }
.stats strong { display: block; font-family: var(--font-title); font-size: clamp(86px, 10vw, 145px); line-height: 0.9; }
.stats span { display: block; font-family: var(--font-ui); font-size: 30px; font-weight: 600; line-height: 1.08; margin-top: 30px; }

/* =========================================================
   7. CAROSELLO PROGETTI
   ========================================================= */
.projects .container { position: relative; }
.project-carousel-window { width: 100%; overflow: hidden; position: relative; padding: 20px 0; touch-action: pan-y; }
.project-carousel-track { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 24px; padding: 0; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }
.project-carousel-track .project-card {
	flex: 0 0 420px;
	width: 420px;
	height: 560px;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
	background: #333;
	isolation: isolate;
	transform: translateZ(0);
}
.project-card .main-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.project-card-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
	padding: 32px;
	display: flex; flex-direction: column; justify-content: space-between;
	color: var(--white);
	z-index: 2;
}
.project-badge { background: rgba(255, 255, 255, 0.95); color: #111; padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 700; width: fit-content; font-family: var(--font-ui); }
.project-card-content h3 { font-family: var(--font-ui); font-size: 26px; font-weight: 700; color: var(--white); margin: 0 0 12px 0; }
.project-card-content p { font-family: var(--font-body); font-size: 15px; color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; line-height: 1.5; }
.project-card-btn { display: inline-block; padding: 12px 24px; background: var(--white); color: var(--black); font-size: 14px; font-weight: 700; border-radius: 8px; font-family: var(--font-ui); text-align: center; }
.projects .section-title { font-size: 42px; font-weight: 800; color: var(--red); margin-bottom: 30px; font-family: var(--font-body); }
.project-arrows { position: absolute; top: 50%; left: -25px; right: -25px; width: calc(100% + 50px); display: flex; justify-content: space-between; pointer-events: none; z-index: 10; transform: translateY(-50%); }
.prev-proj, .next-proj { pointer-events: auto; background: var(--white); border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 20px; color: var(--black); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.carousel-footer { margin-top: 25px; display: flex; justify-content: center; }
.project-dots { display: flex; gap: 10px; }
.project-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(182,25,36,0.25); }
.project-dots span.active { background: var(--red); }

/* =========================================================
   8. NEWS ED EVENTI
   ========================================================= */
.news { padding: 70px 0 90px; background: linear-gradient(180deg, var(--pink) 0%, #ffffff 100%); }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; }
.view-all { display: inline-block; margin-top: 8px; color: var(--red); font-family: var(--font-ui); font-size: 30px; font-weight: 800; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 140px; margin-top: 36px; }
.news-card { position: relative; padding-top: 26px; border-top: 1px solid rgba(182, 25, 36, 0.65); }
.news-card .news-icon { position: absolute; right: 2px; top: 18px; width: 105px; height: auto; }
.news-card h3 { max-width: 430px; margin: 0 0 22px; color: var(--red); font-family: var(--font-title); font-size: clamp(40px, 4vw, 58px); line-height: 1.15; }
.news-card p { margin: 0; color: var(--black); font-size: 28px; font-family: var(--font-ui); line-height: 1.45; font-weight: 400; text-align: justify; }
.news-card time { display: block; margin-top: 24px; color: #aaaaaa; font-size: 24px; font-family: var(--font-ui); font-weight: 400; text-align: right; }

/* =========================================================
   9. NEWSLETTER
   ========================================================= */
.newsletter { padding: 55px 0 70px; background: linear-gradient(180deg, #ffffff 0%, #fff0e2 100%); text-align: center; margin-top: -80px; }
.newsletter-inner { display: flex; flex-direction: column; align-items: center; }
.paper-plane { width: 250px; margin-bottom: 15px; height: auto; }
.newsletter h2 { margin: 0; color: var(--red); font-family: var(--font-ui); font-size: clamp(54px, 6vw, 82px); line-height: 1.05; font-weight: 800; }
.newsletter p { max-width: 840px; margin: 18px auto 34px; color: var(--red); font-size: 32px; line-height: 1.2; font-weight: 500; }
.newsletter form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.newsletter input[type="email"] { padding: 0.9em 1.3em; border-radius: var(--radius-pill); border: 2px solid var(--red); min-width: 280px; font-family: var(--font-ui); font-size: 1rem; }
.red-button {
	display: inline-block;
	padding: 18px 42px;
	color: var(--white);
	margin-top: 15px;
	background: var(--red);
	border-radius: 999px;
	font-size: 40px;
	border: none;
	font-family: var(--font-ui);
	cursor: pointer;
}

/* =========================================================
   10. COME USIAMO GLI AIUTI
   ========================================================= */
.donation-usage { padding: 80px 0 120px; background: #fff0e2; }
.usage-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 70px; }
.usage-text h2 { margin: 0; color: var(--orange); font-family: var(--font-ui); font-size: clamp(36px, 5vw, 50px); line-height: 1.05; font-weight: 800; }
.usage-text p { margin: 8px 0; color: var(--orange); font-size: 22px; font-weight: 600; }
.usage-text > a { display: inline-block; margin-top: 8px; color: var(--orange); font-size: 22px; font-weight: 800; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.usage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 54px; }
.usage-stats strong { display: block; margin-bottom: 12px; font-family: var(--font-title); font-size: 78px; line-height: 1; }
.usage-stats div:nth-child(1) strong { color: var(--brown-orange); }
.usage-stats div:nth-child(2) strong { color: var(--orange); }
.usage-stats div:nth-child(3) strong { color: var(--cream-orange); }
.usage-stats span { display: block; color: var(--brown-orange); font-size: 22px; line-height: 1.22; font-weight: 600; }
.donut-chart {
	width: min(390px, 100%);
	aspect-ratio: 1;
	margin-inline: auto;
	border-radius: 50%;
	background: conic-gradient(var(--orange) 0 20%, var(--cream-orange) 20% 95%, var(--brown-orange) 95% 100%);
	position: relative;
}
.donut-chart::after { content: ""; position: absolute; inset: 25%; border-radius: 50%; background: #fff3e8; }

/* =========================================================
   11. FOOTER
   ========================================================= */
.site-footer { padding: 86px 0 60px; color: var(--white); background: var(--red); }
.footer-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 80px; }
.footer-brand img { width: 220px; margin-bottom: 40px; }
.footer-brand address { font-style: normal; font-family: var(--font-ui); font-size: 13px; line-height: 1.6; }
.social-links { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.social-links a img { width: 28px; height: auto; transition: transform 0.2s ease; filter: brightness(0) invert(1); }
.social-links a img:hover { transform: scale(1.15); }
.footer-content p { max-width: 780px; margin: 0 0 48px; font-family: var(--font-ui); font-size: 26px; line-height: 1.3; font-weight: 400; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.55); }
.footer-links ul { padding: 0; margin: 0; list-style: none; }
.footer-links li + li { margin-top: 16px; }
.footer-links a { font-family: var(--font-ui); font-size: 24px; font-weight: 800; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-top: 58px; }
.legal-links a { font-family: var(--font-ui); font-size: 18px; font-weight: 800; }

/* =========================================================
   12. COMPONENTI RIUTILIZZATI (archivi, pagine, team, gallerie)
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card__title { font-size: 1.1rem; margin: 0; font-family: var(--font-ui); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 2.5rem; text-align: center; }
.page-thumbnail { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.page-content { line-height: 1.7; }
.archive-description { color: var(--muted); max-width: 640px; margin: 0.5rem auto 0; }
.video-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: linear-gradient(135deg, var(--black) 0%, #2b2b2b 100%); }
.video-box img { width: 100%; }

.gallery-badge {
	position: absolute; top: 0.75rem; right: 0.75rem;
	width: 32px; height: 32px; border-radius: 50%;
	background: rgba(0,0,0,0.6); color: var(--white);
	display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid__item { padding: 0; border: none; border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; background: none; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery-grid__item:hover img { transform: scale(1.05); }
.assoc-lightbox { border: none; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.assoc-lightbox::backdrop { background: rgba(0,0,0,0.9); }
.assoc-lightbox__image { max-width: 92vw; max-height: 92vh; display: block; margin: 0 auto; }
.assoc-lightbox__close, .assoc-lightbox__prev, .assoc-lightbox__next {
	position: fixed; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,0.15); color: var(--white); border: none;
	width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; cursor: pointer;
}
.assoc-lightbox__close { top: 1.5rem; right: 1.5rem; transform: none; }
.assoc-lightbox__prev { left: 1.5rem; }
.assoc-lightbox__next { right: 1.5rem; }
.assoc-lightbox__close:hover, .assoc-lightbox__prev:hover, .assoc-lightbox__next:hover { background: rgba(255,255,255,0.3); }

.team-intro { max-width: 640px; margin: 1rem auto 0; color: var(--muted); text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.5rem 1rem; text-align: center; }
.team-card__photo { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--light-bg); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo .partner-fallback { width: 100%; height: 100%; margin: 0; font-size: 1.2rem; }
.team-card__name { font-size: 0.95rem; margin: 0 0 0.25rem; font-family: var(--font-ui); }
.team-card__ruolo { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.4; }
.partner-fallback {
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--light-bg); color: var(--red);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 0.75rem; font-family: var(--font-title); font-weight: 700; font-size: 0.85rem;
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
	.header-inner { min-height: auto; padding: 20px 0; align-items: flex-start; }
	.main-nav > ul { flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
	.main-nav a { font-size: 20px; }
	.hero-grid, .usage-grid, .footer-grid { grid-template-columns: 1fr; }
	.news-grid { gap: 55px; }
}
@media (max-width: 820px) {
	body { font-size: 16px; }
	.container { width: min(100% - 32px, var(--container)); }
	.header-inner { width: min(100% - 32px, 1240px); flex-direction: column; gap: 18px; }
	.logo img { width: 92px; }
	.main-nav > ul { justify-content: flex-start; gap: 16px; }
	.main-nav a { font-size: 18px; }
	.support-button { padding: 12px 16px; }
	.dropdown-menu { position: static; display: none; min-width: 100%; margin-top: 12px; box-shadow: none; background: #fff7f7; }
	.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
	.hero { padding: 40px 0 50px; }
	.hero-grid { gap: 40px; }
	.hero h1 { font-size: 50px; }
	.hero-quote p { font-size: 24px; }
	.report-card, .report-card img { min-height: 720px; height: 720px; }
	.report-overlay { padding: 42px 28px; }
	.stats { grid-template-columns: 1fr; gap: 24px; }
	.stats strong { font-size: 82px; }
	.stats span { font-size: 24px; }
	.news-grid, .usage-stats { grid-template-columns: 1fr; }
	.news-card p { font-size: 22px; }
	.carousel-footer { justify-content: flex-start; }
	.newsletter h2 { font-size: 48px; }
	.newsletter p { font-size: 24px; }
	.red-button { font-size: 32px; }
	.footer-brand img { margin-bottom: 32px; }
	.footer-links { grid-template-columns: 1fr; gap: 22px; }
	.legal-links { justify-content: flex-start; }
}
@media (max-width: 520px) {
	.main-nav > ul { flex-direction: column; align-items: flex-start; }
	.hero h1 { font-size: 42px; }
	.hero-quote p { font-size: 21px; }
	.projects .section-title { font-size: 46px; }
	.news-card h3 { font-size: 40px; }
	.usage-text h2 { font-size: 42px; }
	.usage-stats strong { font-size: 64px; }
	.footer-content p { font-size: 21px; }
}
