/**
 * =========================================================================
 *  SITE.CSS - Stili per il sito vetrina Gibertini (area istituzionale)
 * =========================================================================
 *
 * Colori primari:
 * - Verde scuro: #1e4d2b (NCS 7020-G10Y)
 * - Oro: #E5A835 (da logo)
 *
 * Font: Inter (unico su tutto il sito dal 2026-05-22)
 */


/* =========================================================================
   FONT FACE
   ========================================================================= */
@font-face {
	font-family: 'Phyllis CG';
	src: url('../fonts/PhyllisCG-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* =========================================================================
   VARIABILI CSS
   ========================================================================= */
:root {
	/* Palette RC2 (15/06) — allineata a store.css. site.css viene caricato
	   dopo store.css sulle pagine unificate (home/catalogo/chi-siamo/servizi):
	   se qui restano i vecchi valori sovrascrivono il verde/oro RC2. */
	--primary-color: #1B4630;
	--primary-color-hover: #245C3F;
	--primary-color-active: #133523;
	--primary-color-light: #2C6B49;
	--primary-color-rgb: 27, 70, 48;

	--secondary-color: #F7B71D;
	--secondary-color-hover: #D89A2C;
	--secondary-color-active: #C0851F;
	--secondary-color-light: #F4D799;
	--secondary-color-rgb: 247, 183, 29;

	--footer-bg: var(--primary-color);
	--footer-text: #ffffff;
	--footer-muted: rgba(255, 255, 255, 0.65);
	--footer-link-hover: var(--secondary-color);

	--surface-bg: #f8f7f4;
	--card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--card-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.14);

	--site-header-height: 80px;
}


/* =========================================================================
   TIPOGRAFIA
   ========================================================================= */
body.site-body {
	font-family: var(--font-base);
	font-size: 0.95rem;
	color: #2d2d2d;
	background-color: #ffffff;
	overscroll-behavior-y: none;
	margin: 0;
	padding: 0;
}

.site-body h1, .site-body h2, .site-body h3,
.site-body h4, .site-body h5, .site-body h6,
.font-display {
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--primary-color);
}


/* =========================================================================
   UTILITY
   ========================================================================= */
.text-gold { color: var(--secondary-color) !important; }
.text-green { color: var(--primary-color) !important; }
.bg-gold { background-color: var(--secondary-color) !important; }
.bg-green { background-color: var(--primary-color) !important; }

.btn-gold {
	background-color: var(--secondary-color);
	/* RC2 (2026-06-18): testo verde (non bianco) su oro — uniforme e più leggibile. */
	color: var(--primary-color);
	border: none;
	/* RC2 (2026-06-18): peso bottoni uniformato a 500.
	   30/07/2026: 400, cioe' Outfit Regular, come chiesto dal designer. */
	font-weight: 400;
	border-radius: 8px;
	padding: 0.6rem 1.5rem;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}
.btn-gold:hover {
	background-color: var(--secondary-color-hover);
	/* RC2 (2026-06-18): testo verde anche in hover (era bianco) — uniforme. */
	color: var(--primary-color);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(229, 168, 53, 0.35);
}

.btn-outline-gold {
	background: transparent;
	color: var(--secondary-color);
	border: 2px solid var(--secondary-color);
	font-weight: 600;
	border-radius: 8px;
	padding: 0.55rem 1.5rem;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}
.btn-outline-gold:hover {
	background-color: var(--secondary-color);
	color: #fff;
}

.btn-outline-light-custom {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.7);
	font-weight: 600;
	border-radius: 8px;
	padding: 0.55rem 1.5rem;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}
.btn-outline-light-custom:hover {
	background: rgba(255,255,255,0.15);
	color: #fff;
	border-color: #fff;
}

.section-label {
	font-family: var(--font-base);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--secondary-color);
	margin-bottom: 0.75rem;
}

.section-title {
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1rem;
	position: relative;
}

.section-title-centered {
	text-align: center;
}

.section-title-centered::after {
	content: '';
	display: block;
	width: 48px;
	height: 2px;
	background: var(--secondary-color);
	margin: 0.85rem auto 0;
	border-radius: 1px;
}


/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--site-header-height);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	background-color: #fff;
	box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--site-header-height);
}

/* Transparent mode for homepage hero */
.site-header.header-transparent {
	background-color: transparent;
	box-shadow: none;
}
.site-header.header-transparent .site-nav-link {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.site-header.header-transparent .site-logo img {
	filter: brightness(0) invert(1);
}

/* Scrolled state — always solid */
.site-header.header-scrolled {
	background-color: #fff !important;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}
.site-header.header-scrolled .site-nav-link {
	color: var(--primary-color) !important;
	text-shadow: none !important;
}
.site-header.header-scrolled .site-logo img {
	filter: none !important;
}

.site-logo {
	display: flex;
	align-items: center;
}

.site-logo img {
	display: block;
	max-height: 40px;
	max-width: 240px;
	width: auto;
	height: auto;
	transition: filter 0.3s ease;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-nav-link {
	font-family: var(--font-base);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--primary-color);
	text-decoration: none;
	padding: 0.4rem 0;
	position: relative;
	transition: color 0.2s ease;
}
.site-nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--secondary-color);
	transition: width 0.25s ease;
}
.site-nav-link:hover::after,
.site-nav-link.active::after {
	width: 100%;
}
.site-nav-link:hover {
	color: var(--primary-color);
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.4rem;
	color: var(--primary-color);
	cursor: pointer;
	padding: 0.4rem;
}
.site-header.header-transparent .site-nav-toggle {
	color: #fff;
}
.site-header.header-scrolled .site-nav-toggle {
	color: var(--primary-color) !important;
}

/* Mobile nav */
.site-mobile-nav {
	display: none;
	position: fixed;
	top: var(--site-header-height);
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	padding: 1.5rem;
	z-index: 999;
	flex-direction: column;
	gap: 0.25rem;
	transform: translateY(-10px);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}
.site-mobile-nav.open {
	display: flex;
	transform: translateY(0);
	opacity: 1;
	pointer-events: all;
}
.site-mobile-nav a {
	display: block;
	padding: 0.75rem 1rem;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 8px;
	transition: background 0.2s;
}
.site-mobile-nav a:hover,
.site-mobile-nav a.active {
	background: var(--surface-bg);
}

.site-main {
	margin-top: var(--site-header-height);
}
.site-main.no-margin {
	margin-top: 0;
}


/* =========================================================================
   HERO SECTION
   ========================================================================= */
.site-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.site-hero-overlay {
	/* RC2 (13/07): overlay verde/nero rimosso — foto pulita, niente alterazioni davanti. */
	display: none;
}

.site-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	max-width: 700px;
	padding: 2rem 1.5rem;
}
.site-hero-content .hero-badge {
	font-family: var(--font-base);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--secondary-color);
	margin-bottom: 1.25rem;
}
.site-hero-content h1 {
	font-family: var(--font-serif);
	font-size: 3.8rem;
	font-weight: 400;
	color: #fff;
	margin-bottom: 1rem;
	line-height: 1.15;
}
.site-hero-content .hero-subtitle {
	font-size: 1.15rem;
	color: rgba(255,255,255,0.9);
	margin-bottom: 2rem;
	line-height: 1.6;
}
.site-hero-content .hero-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: rgba(255,255,255,0.7);
	font-size: 1.5rem;
	animation: heroScroll 2s ease-in-out infinite;
}
@keyframes heroScroll {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
	50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* Page hero — smaller, for inner pages.
   Decisione cliente 2026-05-05: ridotti uniformemente (era 40vh, troppo alti).
   La variante .page-hero-compact serve per le pagine catalogo categoria
   con cover_image — vedi anche .page-hero-with-cover per il bg overlay. */
.page-hero {
	position: relative;
	min-height: 22vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	padding: 2rem 1rem;
	color: #fff;
	text-align: center;
}
.page-hero-compact {
	min-height: 18vh;
}
.page-hero h1 {
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	color: #fff;
	margin: 0;
	text-shadow: none; /* RC2 (2026-07): titoli hero senza ombra/effetti */
}
.page-hero-subtitle {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1rem;
	margin: 0.5rem 0 0;
}
/* Variante con cover image categoria — overlay scuro sul bg */
.page-hero-with-cover {
	background-color: var(--primary-color, #1e4d2b);
}
.page-hero-with-cover::before {
	/* 2026-05-23: patina rimossa su richiesta cliente — fornira' lui foto
	   gia' scure abbastanza. Tenuta la regola con display:none per facile
	   reintroduzione (basta cambiare a display:block). */
	content: '';
	display: none;
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
	z-index: 1;
}
.page-hero-with-cover .container {
	position: relative;
	z-index: 2;
}
/* Hero senza cover (pagine senza immagine): sfondo verde solido */
.page-hero:not(.page-hero-with-cover) {
	background-color: var(--primary-color, #1e4d2b);
}
/* Hero categoria: niente overlay scuro (decisione cliente 2026-05-07) e
   nome categoria piu grande. Solo per .category-hero-cover, non impatta
   le altre pagine che usano page-hero-with-cover (es. /marca/{slug}). */
.category-hero-cover.page-hero-with-cover::before {
	display: none;
}
/* Hero della categoria: stesso rapporto dei banner che carica il cliente
   (1920x600). Prima l'altezza era in vh e su schermi diversi l'immagine
   veniva tagliata sopra e sotto; con il contenitore dello stesso rapporto
   dell'immagine si vede sempre intera, dal telefono al desktop.
   Richiesta di Paolo, 04/08/2026. */
.page-hero.category-hero-cover {
	aspect-ratio: 1920 / 600;
	min-height: 0;          /* batte i min-height in vh, anche nelle media query */
	padding: 0;
	background-size: cover; /* stesso rapporto del blocco, quindi non taglia nulla */
	background-position: center;
	/* Sui monitor molto grandi (XXL non ha un limite di larghezza) il rapporto
	   fisso farebbe crescere l'hero fino a mangiarsi lo schermo: 2560 di
	   larghezza vorrebbero dire 800 di altezza. Si ferma all'altezza del
	   banner originale, 600. Oltre quella larghezza l'immagine viene
	   ritagliata un filo sopra e sotto, in parti uguali, e i soggetti dei
	   banner stanno al centro. */
	max-height: 600px;
	/* Senza questo, il rapporto piu' il limite di altezza fanno restringere il
	   blocco a 1920 e lo lasciano a sinistra, con una fascia vuota a destra.
	   La fascia si vedeva a 2560. */
	width: 100%;
}
.category-hero-cover h1 {
	font-size: clamp(2.4rem, 5.5vw, 4rem);
	text-shadow: none; /* RC2 (2026-07): titoli hero senza ombra/effetti */
}
.category-hero-cover .page-hero-subtitle {
	font-size: 1.05rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.page-hero-overlay {
	/* 2026-05-23: patina rimossa su richiesta cliente — display:none. */
	display: none;
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(30, 77, 43, 0.65) 0%,
		rgba(0, 0, 0, 0.5) 100%
	);
	z-index: 1;
}
/* Pagina marca: logo brand sopra il nome (restyling 2026-05-05) */
.brand-page-hero .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.brand-page-hero-logo {
	max-height: 70px;
	max-width: 220px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	padding: 8px 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	margin-bottom: 0.25rem;
}

/* Pagina marca: banner del brand mostrato INTERO (nessun crop; i banner hanno rapporti diversi) */
.brand-banner-section { padding: 1.5rem 0 0; }
.brand-banner-full {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 18px 38px -18px rgba(27, 70, 48, 0.35);
}
/* Placeholder (nessun banner): stesso box del banner nel container, foto negozio + logo/nome centrato */
.brand-placeholder {
	position: relative;
	width: 100%;
	aspect-ratio: 8 / 3;
	background-size: cover;
	background-position: center;
	border-radius: 16px;
	box-shadow: 0 18px 38px -18px rgba(27, 70, 48, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.brand-placeholder-title { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); margin: 0; }

.page-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 1rem 1rem;
}
.page-hero-content h1 {
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.4rem;
}

/* Hero Contatti: foto del negozio + titolo verde scuro, più grande */
.page-hero-contatti { min-height: 26vh; }
.page-hero-contatti .page-hero-content { text-align: left; }
.page-hero-contatti .page-hero-content h1 {
	color: var(--primary-color, #1B4630);
	font-size: clamp(2.6rem, 6vw, 4.5rem);
	text-shadow: none;
}
.page-hero-content .breadcrumb {
	justify-content: center;
	margin-bottom: 0;
}
.page-hero-content .breadcrumb-item,
.page-hero-content .breadcrumb-item a {
	color: rgba(255,255,255,0.8);
	font-size: 0.9rem;
}
.page-hero-content .breadcrumb-item a:hover {
	color: var(--secondary-color);
}
.page-hero-content .breadcrumb-item.active {
	color: rgba(255,255,255,0.6);
}
.page-hero-content .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255,255,255,0.5);
}


/* =========================================================================
   HERO EFFECTS — parallax + ken burns (paired with assets/js/hero-effects.js)
   - Parallax: il JS modifica background-position-y in tempo reale, qui solo
     hint: smooth transitions disabled per non interferire con rAF, e
     background-attachment scroll (no fixed: iOS lo rompe).
   - Ken Burns: applicato via classe .hero-fx-ken-burns sull'.home-eg-hero, il
     bg si sposta su un ::before per poter animare transform/scale senza
     toccare gli altri figli (overlay e content).
   ========================================================================= */
.page-hero,
.home-eg-hero,
.inspire-block-banner {
	will-change: background-position;
	background-attachment: scroll; /* iOS-safe */
}

/* Disattiva ogni effetto se l'utente preferisce motion ridotto */
@media (prefers-reduced-motion: reduce) {
	.page-hero,
	.home-eg-hero,
	.inspire-block-banner {
		will-change: auto;
	}
	.hero-fx-ken-burns::before {
		animation: none !important;
	}
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.site-section {
	padding: 5rem 0;
}
.site-section-alt {
	background-color: var(--surface-bg);
}
.site-section-dark {
	background-color: var(--primary-color);
	color: #fff;
}
.site-section-dark h2,
.site-section-dark h3 {
	color: #fff;
}


/* =========================================================================
   TRUST BAR
   ========================================================================= */
.trust-bar {
	padding: 3rem 0;
	border-bottom: 1px solid #eee;
}
.trust-item {
	text-align: center;
	padding: 1rem 0.5rem;
}
.trust-item .trust-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(30, 77, 43, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.75rem;
	font-size: 1.3rem;
	color: var(--primary-color);
	transition: all 0.3s ease;
}
.trust-item:hover .trust-icon {
	background: var(--primary-color);
	color: #fff;
	transform: scale(1.05);
}
.trust-item h6 {
	font-family: var(--font-base);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--primary-color);
	margin-bottom: 0.25rem;
}
.trust-item p {
	font-size: 0.82rem;
	color: #888;
	margin: 0;
}


/* =========================================================================
   ABOUT PREVIEW
   ========================================================================= */
.about-preview-img {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	position: relative;
}
.about-preview-img img {
	width: 100%;
	height: auto;
	display: block;
	filter: sepia(10%);
}
.about-preview-img::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--secondary-color);
}


/* =========================================================================
   SERVICE CARDS
   ========================================================================= */
.service-card {
	background: #fff;
	border-radius: 12px;
	padding: 2rem 1.5rem;
	text-align: center;
	box-shadow: var(--card-shadow);
	transition: all 0.3s ease;
	height: 100%;
}
.service-card:hover {
	box-shadow: var(--card-shadow-hover);
	transform: translateY(-4px);
}
.service-card .service-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	font-size: 1.4rem;
	color: #fff;
}
.service-card h5 {
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
	font-size: 1.1rem;
}
.service-card p {
	font-size: 0.88rem;
	color: #666;
	margin-bottom: 0;
	line-height: 1.6;
}
.service-card .badge-free {
	display: inline-block;
	background: var(--secondary-color);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
	margin-bottom: 0.75rem;
}

/* Service detail card (servizi page) */
.service-detail {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: all 0.3s ease;
	height: 100%;
}
.service-detail:hover {
	box-shadow: var(--card-shadow-hover);
	transform: translateY(-2px);
}
.service-detail .service-detail-img {
	height: 220px;
	background-size: cover;
	background-position: center;
}
.service-detail .service-detail-body {
	padding: 1.5rem;
}
.service-detail h4 {
	font-size: 1.15rem;
}
.service-detail ul {
	padding-left: 1.2rem;
	margin-bottom: 0;
}
.service-detail ul li {
	font-size: 0.88rem;
	color: #555;
	margin-bottom: 0.3rem;
}


/* =========================================================================
   ATMOSPHERE GALLERY
   ========================================================================= */
.gallery-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}
.gallery-item {
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.gallery-item:hover img {
	transform: scale(1.03);
}
.gallery-item-large {
	grid-row: 1 / 3;
}


/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner {
	position: relative;
	padding: 6rem 0;
	background-size: cover;
	background-position: center;
	background-attachment: scroll; /* RC2 (2026-07): niente parallax, immagine fissa */
}
.cta-banner-overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 77, 43, 0.8);
}
.cta-banner-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
}
.cta-banner-content h2 {
	font-family: var(--font-serif);
	color: #fff;
	font-size: 2.2rem;
	margin-bottom: 1rem;
}
.cta-banner-content p {
	font-size: 1.1rem;
	color: rgba(255,255,255,0.85);
	margin-bottom: 2rem;
	max-width: 550px;
	margin-left: auto;
	margin-right: auto;
}


/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-quick-item {
	text-align: center;
	padding: 2rem 1rem;
}
.contact-quick-item .contact-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--primary-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.2rem;
}
.contact-quick-item h6 {
	font-family: var(--font-base);
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}
.contact-quick-item p,
.contact-quick-item a {
	font-size: 0.88rem;
	color: #666;
	text-decoration: none;
	line-height: 1.7;
}
.contact-quick-item a:hover {
	color: var(--secondary-color);
}

/* Contact page cards */
.contact-card {
	background: #fff;
	border-radius: 12px;
	padding: 1.75rem;
	box-shadow: var(--card-shadow);
	margin-bottom: 1rem;
}
/* Annulla il margin-bottom dell'ultimo elemento interno per evitare che
   il margin di paragrafi/div si sommi al padding della card. */
.contact-card > *:last-child {
	margin-bottom: 0;
}
.contact-card > i,
.contact-card h6 > i,
.contact-card p > i {
	color: var(--secondary-color);
	margin-right: 0.5rem;
}
.contact-card .social-links a > i {
	color: inherit;
	margin-right: 0;
}
.contact-card h6 {
	font-family: var(--font-base);
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}
.contact-card p,
.contact-card a {
	font-size: 0.9rem;
	color: #555;
	text-decoration: none;
}
.contact-card a:hover {
	color: var(--secondary-color);
}

.contact-map {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	height: 100%;
	min-height: 500px;
	/* La colonna di sinistra (recapiti + orari + prossime chiusure + social)
	   può superare i 1000px: con height:100% la mappa la seguiva e restava
	   mezza grigia, perché Leaflet carica i tile sull'altezza che il
	   contenitore aveva all'avvio. Le mettiamo un tetto e la teniamo in
	   vista mentre si scorre la colonna. */
	max-height: 640px;
	position: sticky;
	top: 96px;
}
.contact-map iframe {
	width: 100%;
	height: 100%;
	min-height: 400px;
	border: 0;
}
/* Pagina contatti: stessa spaziatura simmetrica sopra (hero) e sotto
   (footer). Combina padding ridotto della section con annullamento del
   margin-top del footer (di default 48px). */
.site-section-contatti {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}
/* Section e footer stanno in parent diversi (main vs body), uso :has()
   per identificare il footer della pagina contatti tramite la presenza
   della .site-section-contatti nel documento. */
body:has(.site-section-contatti) .store-footer,
body:has(.site-section-contatti) > footer {
	margin-top: 0;
}

/* Mappa Leaflet con tema verde/oro Gibertini */
#gibertini-map {
	width: 100%;
	height: 100%;
	min-height: 500px;
	background: #f5f1e8;
	/* Stacking context locale: i controlli zoom Leaflet (z-index 1000)
	   non escono dal container e quindi non finiscono sopra header/altri
	   elementi sticky del sito (es. .store-header z-index 100). */
	position: relative;
	z-index: 0;
	isolation: isolate;
}
/* Vira la palette dei tile CartoDB Voyager (di base blu/beige) verso
   verdi caldi e dorati. Il filter agisce solo sui tile, NON sui marker
   (che sono SVG separati con colori espliciti). */
#gibertini-map .leaflet-tile-pane {
	filter: hue-rotate(35deg) saturate(0.85) brightness(0.98) sepia(0.18);
}
.gibertini-pin {
	background: transparent;
	border: none;
}
.leaflet-popup-content-wrapper {
	border-radius: 8px;
	border: 1px solid rgba(200, 155, 60, 0.4);
}
.leaflet-popup-content {
	margin: 12px 16px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #333;
}
.leaflet-popup-content strong {
	color: var(--primary-color);
	font-family: var(--font-serif);
	font-size: 1.05rem;
}
.popup-directions {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	background: var(--primary-color);
	color: #fff !important;
	border-radius: 6px;
	font-size: 0.85rem;
	text-decoration: none;
	font-weight: 600;
}
.popup-directions:hover {
	background: var(--primary-color-active, #163a20);
	color: #fff !important;
}

/* Bottoni CTA della pagina contatti: stessa dimensione per uniformita,
   colori distinti applicati separatamente. */
.btn-contact-cta {
	font-weight: 600;
	border-radius: 8px;
	padding: 0.7rem 1.5rem;
	font-size: 1rem;
	border: none;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}

.btn-whatsapp {
	background: #25D366;
	color: #fff;
	border: none;
	font-weight: 600;
	border-radius: 8px;
	padding: 0.7rem 1.5rem;
	font-size: 1rem;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}
.btn-whatsapp:hover {
	background: #1da851;
	color: #fff;
	transform: translateY(-1px);
}

/* Hours table */
.hours-table {
	width: 100%;
	font-size: 0.88rem;
}
.hours-table td {
	padding: 0.3rem 0;
	color: #555;
}
.hours-table td:first-child {
	font-weight: 500;
	color: #333;
}
.hours-table .closed {
	color: #c0392b;
}

/* Stato negozio (aperto/chiuso) sopra la tabella orari di /contatti */
.hours-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}
.hours-status.is-open {
	background: rgba(74, 222, 128, 0.12);
	color: #166534;
}
.hours-status.is-closed {
	background: rgba(239, 68, 68, 0.10);
	color: #991b1b;
}
.hours-status .status-dot {
	font-size: 0.55rem;
}
.hours-status.is-open .status-dot {
	color: #4ade80;
	animation: hoursStatusPulse 2s ease-in-out infinite;
}
.hours-status.is-closed .status-dot {
	color: #ef4444;
}
@keyframes hoursStatusPulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.45; }
}
/* Riga "oggi" nella tabella orari evidenziata */
.hours-table tr.is-today td {
	background: rgba(192, 158, 86, 0.08);
	font-weight: 600;
}
/* Avviso chiusure (festività/ferie) sotto la tabella orari di /contatti */
.hours-closures {
	margin-top: 0.75rem;
	padding: 0.6rem 0.8rem;
	background: #fff8e6;
	border: 1px solid #f0d98a;
	border-radius: 6px;
	font-size: 0.85rem;
	color: #7a5b1e;
}
.hours-closures strong { color: #7a5b1e; }
.hours-closures ul {
	margin: 0.4rem 0 0;
	padding-left: 1.1rem;
}
.hours-closures li { margin-bottom: 0.2rem; }

/* Social links */
.social-links a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.8);
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	transition: all 0.2s ease;
	text-decoration: none;
}
.social-links a:hover {
	background: var(--secondary-color);
	color: #fff;
}
.social-links-dark a {
	background: rgba(30, 77, 43, 0.08);
	color: var(--primary-color);
}
.social-links-dark a:hover,
.contact-card .social-links a:hover {
	background: var(--secondary-color);
	color: #fff !important;
}


/* =========================================================================
   TIMELINE (Chi Siamo)
   ========================================================================= */
.timeline {
	position: relative;
	padding: 2rem 0;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #e0ddd8;
	transform: translateX(-50%);
}
.timeline-item {
	position: relative;
	margin-bottom: 3rem;
	display: flex;
	align-items: flex-start;
}
.timeline-item:nth-child(odd) {
	flex-direction: row-reverse;
}
.timeline-dot {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--secondary-color);
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--secondary-color);
	z-index: 2;
}
.timeline-content {
	width: 42%;
	background: #fff;
	border-radius: 12px;
	padding: 1.75rem;
	box-shadow: var(--card-shadow);
}
.timeline-item:nth-child(odd) .timeline-content {
	margin-right: auto;
	margin-left: 6%;
}
.timeline-item:nth-child(even) .timeline-content {
	margin-left: auto;
	margin-right: 6%;
}
.timeline-year {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--secondary-color);
	margin-bottom: 0.5rem;
}
.timeline-content h4 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}
.timeline-content p {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 0;
	line-height: 1.6;
}
.timeline-content img {
	width: 100%;
	border-radius: 8px;
	margin-top: 1rem;
}

/* Values cards */
.value-card {
	text-align: center;
	padding: 2rem 1.5rem;
}
.value-card .value-icon {
	font-size: 2rem;
	color: var(--secondary-color);
	margin-bottom: 1rem;
}
.value-card h5 {
	font-size: 1.05rem;
}
.value-card p {
	font-size: 0.88rem;
	color: #666;
	line-height: 1.6;
}


/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
	background-color: var(--footer-bg);
	color: var(--footer-text);
	padding-top: 3.5rem;
}
.site-footer h6 {
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--secondary-color);
	font-size: 1rem;
	margin-bottom: 1.25rem;
}
.site-footer p,
.site-footer a {
	font-size: 0.88rem;
	color: var(--footer-muted);
	text-decoration: none;
	line-height: 1.8;
}
.site-footer a:hover {
	color: var(--footer-link-hover);
}
.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-footer ul li a {
	display: block;
	padding: 0.15rem 0;
	transition: color 0.2s;
}
.site-footer ul li {
	color: var(--footer-muted);
	font-size: 0.88rem;
	line-height: 1.8;
}
.site-footer .contact-item {
	display: flex;
	align-items: baseline;
	gap: 0;
}
.site-footer .contact-item > i {
	flex-shrink: 0;
	width: 1.5em;
}
.footer-logo {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	margin-bottom: 1rem;
}
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 1.25rem 0;
	margin-top: 2.5rem;
}
.footer-bottom p {
	font-size: 0.82rem;
	margin: 0;
}
.footer-bottom a {
	font-size: 0.82rem;
}


/* =========================================================================
   CMS PAGE
   ========================================================================= */
.cms-page {
	max-width: 800px;
	margin: 0 auto;
}
.cms-content {
	font-size: 0.95rem;
	line-height: 1.8;
	color: #444;
}
.cms-content h2,
.cms-content h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.cms-content p {
	margin-bottom: 1rem;
}
.cms-content ul, .cms-content ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}
.cms-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Breadcrumb styling for CMS pages */
.site-breadcrumb {
	padding: 1rem 0;
}
.site-breadcrumb .breadcrumb {
	margin-bottom: 0;
	background: none;
	padding: 0;
}
.site-breadcrumb .breadcrumb-item a {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.88rem;
}
.site-breadcrumb .breadcrumb-item a:hover {
	color: var(--secondary-color);
}
.site-breadcrumb .breadcrumb-item.active {
	color: #888;
	font-size: 0.88rem;
}


/* =========================================================================
   404 PAGE — rifatta 30/07/2026
   Fondo verde come la banda "Lasciati ispirare" della home, perche' il
   disegno che ci sta dentro e' oro chiaro: su bianco sparirebbe.
   Il vecchio 404 era un "404" grigio #ddd da 6rem, roba pre-restyle.
   ========================================================================= */
/* `.store-main` ha `flex: 1` per tenere il footer in fondo anche con poco
   contenuto: su questa pagina quello stiramento si vedeva come una fascia
   BIANCA fra il verde e il footer. Il verde lo mettiamo quindi anche sul
   contenitore, e la sezione si allunga a riempirlo. */
main.store-main:has(.error-page) {
	background: var(--grad-forest-light, #1B4630);
	display: flex;
}
.error-page {
	flex: 1;
	background: var(--grad-forest-light, #1B4630);
	color: #fff;
	padding: clamp(3rem, 9vw, 5.5rem) 0;
	min-height: 52vh;
	display: flex;
	align-items: center;
}
.error-page > .container {
	width: 100%;
}
.error-figure {
	display: block;
	width: clamp(150px, 22vw, 260px);
	height: auto;
	margin: 0 auto 1.75rem;
	opacity: 0.92;
}
.error-code {
	font-family: var(--font-condensed);
	font-size: clamp(3.5rem, 12vw, 6rem);
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--c-gold-500, #F7B71D);
	margin: 0 0 0.75rem;
}
/* .store-body h1 (0,1,1) imporrebbe il serif: due classi per batterlo. */
.store-body .error-page .error-title,
.site-body .error-page .error-title {
	font-family: var(--font-base);
	font-weight: 700;
	font-size: clamp(1.1rem, 3.4vw, 1.5rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-gold-200, #F4D799);
	margin: 0 0 0.85rem;
}
.error-page .error-text {
	font-family: var(--font-base);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
	max-width: 32rem;
	margin: 0 auto 2rem;
}
.error-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}
/* Il bordo oro pieno sul verde e' troppo acceso: si usa l'oro pallido.
   Il maiuscolo lo mette `.btn-gold`, non `.btn-outline-gold`: senza questa
   riga i due bottoni affiancati avrebbero scritte una MAIUSCOLA e una no. */
.error-page .btn-outline-gold {
	color: var(--c-gold-200, #F4D799);
	border-color: var(--c-gold-200, #F4D799);
	text-transform: uppercase;
}
.error-page .btn-outline-gold:hover {
	background-color: var(--c-gold-200, #F4D799);
	color: var(--c-forest-700, #1B4630);
}


/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 991.98px) {
	.site-nav { display: none !important; }
	.site-nav-toggle { display: block !important; }

	.site-hero-content h1 { font-size: 2.4rem; }

	.gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}
	.gallery-item-large {
		grid-row: auto;
		grid-column: 1 / -1;
	}

	.timeline::before { left: 24px; }
	.timeline-dot { left: 24px; }
	.timeline-content { width: calc(100% - 60px); margin-left: 60px !important; margin-right: 0 !important; }
	.timeline-item,
	.timeline-item:nth-child(odd) { flex-direction: row; }
	.timeline-item:nth-child(odd) .timeline-content { margin-left: 60px !important; margin-right: 0 !important; }

	.cta-banner { background-attachment: scroll; }
}

@media (max-width: 767.98px) {
	.site-section { padding: 3.5rem 0; }

	.site-hero-content h1 { font-size: 2rem; }
	.site-hero-content .hero-subtitle { font-size: 1rem; }

	.page-hero { min-height: 22vh; }
	.page-hero-content h1 { font-size: 1.7rem; }

	.cta-banner { padding: 4rem 0; }
	.cta-banner-content h2 { font-size: 1.6rem; }

	.contact-map iframe { min-height: 300px; }
}

@media (max-width: 575.98px) {
	:root { --site-header-height: 64px; }
	.site-logo img { max-height: 30px; max-width: 180px; }
	.btn-gold.btn-sm-header { font-size: 0.78rem; padding: 0.4rem 0.9rem; }

	.site-hero-content h1 { font-size: 1.75rem; }
	.site-hero { min-height: 85vh; }

	.trust-item .trust-icon { width: 48px; height: 48px; font-size: 1.1rem; }
}
