/*
	Theme Name: Farmacia Cavi
	Theme URI: https://farmaciacavi.it
	Description: Tema figlio di Hello Elementor per Farmacia Cavi. Design professionale con palette blu, teal e sabbia.
	Author: Giulio Nicolini
	Author URI: https://farmaciacavi.it
	Template: hello-elementor
	Version: 1.0.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: farmaciacavi
	Tags: custom-colors, custom-logo, elementor
*/

/* =====================================================
   VARIABILI CSS – PALETTE FARMACIA CAVI
   ===================================================== */

:root {
	/* Blu primario */
	--fc-blue:        #1A6BAA;
	--fc-blue-dark:   #0B3D6E;
	--fc-blue-light:  #3A9BD5;

	/* Teal secondario */
	--fc-teal:        #1E8C7A;
	--fc-teal-dark:   #155F54;
	--fc-teal-light:  #2DB39E;

	/* Sfondi ghost card */
	--fc-blue-ghost:  #EBF5FB;
	--fc-teal-ghost:  #D0F0EC;

	/* Neutri */
	--fc-sand:        #F7F4EF;
	--fc-sand-dark:   #EDE8DF;
	--fc-white:       #FFFFFF;
	--fc-gray-100:    #F2F2F2;
	--fc-gray-300:    #CCCCCC;
	--fc-gray-600:    #666666;
	--fc-gray-800:    #333333;
	--fc-black:       #111111;

	/* Tipografia */
	--fc-font-heading: 'Lato', sans-serif;
	--fc-font-body:    'Open Sans', sans-serif;
	--fc-font-size-base: 16px;
	--fc-line-height:  1.65;

	/* Spaziature */
	--fc-radius:       6px;
	--fc-radius-lg:    12px;
	--fc-shadow:       0 2px 12px rgba(11, 61, 110, 0.10);
	--fc-shadow-md:    0 4px 24px rgba(11, 61, 110, 0.16);

	/* Transizioni */
	--fc-transition:   0.25s ease;
}

/* =====================================================
   RESET / BASE
   ===================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: var(--fc-font-body);
	font-size: var(--fc-font-size-base);
	line-height: var(--fc-line-height);
	color: var(--fc-gray-800);
	background-color: var(--fc-white);
}

/* =====================================================
   LAYOUT
   ===================================================== */

.fc-container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

/* =====================================================
   TIPOGRAFIA
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--fc-blue-dark);
	margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem,  3vw, 2.1rem);  }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

a {
	color: var(--fc-blue);
	text-decoration: none;
	transition: color var(--fc-transition);
}

a:hover,
a:focus {
	color: var(--fc-blue-dark);
	text-decoration: underline;
}

/* =====================================================
   NAVBAR
   ===================================================== */

.fc-navbar {
	background-color: var(--fc-white);
	border-bottom: 2px solid var(--fc-sand-dark);
	box-shadow: var(--fc-shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.fc-navbar__inner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 70px;
}

/* Brand / logo */
.fc-navbar__brand {
	display: flex;
	align-items: center;
	text-decoration: none !important;
	flex-shrink: 0;
	margin-right: auto;
}

.fc-navbar__brand img {
	max-height: 52px;
	width: auto;
	display: block;
}

.fc-navbar__site-name {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--fc-blue-dark);
}

/* Nav container */
.fc-navbar__nav {
	display: flex;
	align-items: center;
}

/* Lista voci */
.fc-nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.fc-nav-list > li {
	position: relative;
}

.fc-nav-list > li > a {
	display: block;
	padding: 0.5rem 0.8rem;
	font-family: var(--fc-font-heading);
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	color: var(--fc-gray-800);
	text-decoration: none !important;
	white-space: nowrap;
	transition: color var(--fc-transition);
	line-height: 70px;
}

.fc-nav-list > li > a:hover,
.fc-nav-list > li.current-menu-item > a,
.fc-nav-list > li.current-menu-ancestor > a {
	color: var(--fc-blue);
}

/* Voce Fidelity Card nel nav list: visibile solo nel drawer mobile */
.fc-nav-list > li.menu-item-fidelity {
	display: none;
}

.fc-mobile-nav > li.menu-item-fidelity > a {
	color: var(--fc-teal);
	font-weight: 700;
}

/* Bottone Fidelity Card nel header (CTA desktop) */
.fc-navbar__fidelity {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: 0.5rem;
	padding: 0.5rem 1rem;
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--fc-white) !important;
	background-color: var(--fc-teal);
	border-radius: var(--fc-radius);
	text-decoration: none !important;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color var(--fc-transition), box-shadow var(--fc-transition);
}

.fc-navbar__fidelity:hover {
	background-color: var(--fc-teal-dark);
	box-shadow: var(--fc-shadow);
}

/* Dropdown */
.fc-nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: var(--fc-white);
	border-top: 3px solid var(--fc-blue);
	border-radius: 0 0 var(--fc-radius) var(--fc-radius);
	box-shadow: var(--fc-shadow-md);
	list-style: none;
	margin: 0;
	padding: 0.35rem 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition:
		opacity var(--fc-transition),
		visibility var(--fc-transition),
		transform var(--fc-transition);
	z-index: 200;
}

.fc-nav-list > li:hover > .sub-menu,
.fc-nav-list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fc-nav-list .sub-menu a {
	display: block;
	padding: 0.55rem 1.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fc-gray-800);
	text-decoration: none !important;
	border-bottom: 1px solid var(--fc-gray-100);
	line-height: 1.4;
	transition: background-color var(--fc-transition), color var(--fc-transition);
}

.fc-nav-list .sub-menu li:last-child > a {
	border-bottom: none;
}

.fc-nav-list .sub-menu a:hover {
	background-color: var(--fc-sand);
	color: var(--fc-blue);
}

/* CTA telefono nel header */
.fc-navbar__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: 0.75rem;
	padding: 0.5rem 1rem;
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--fc-white) !important;
	background-color: var(--fc-blue);
	border-radius: var(--fc-radius);
	text-decoration: none !important;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color var(--fc-transition), box-shadow var(--fc-transition);
}

.fc-navbar__cta:hover {
	background-color: var(--fc-blue-dark);
	box-shadow: var(--fc-shadow);
}

/* Toggle hamburger mobile – nascosto su desktop */
.fc-navbar__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.4rem;
	margin-left: 0.5rem;
	flex-shrink: 0;
}

.fc-navbar__bar {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--fc-gray-800);
	border-radius: 2px;
	transition: transform var(--fc-transition), opacity var(--fc-transition);
}

/* Animazione hamburger → X */
.fc-navbar--open .fc-navbar__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fc-navbar--open .fc-navbar__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fc-navbar--open .fc-navbar__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   NAVBAR – RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
	.fc-nav-list > li > a {
		padding: 0.5rem 0.6rem;
		font-size: 0.82rem;
	}
}

@media (max-width: 900px) {
	.fc-navbar__cta,
	.fc-navbar__fidelity { display: none; }
}

@media (max-width: 768px) {
	.fc-navbar__toggle { display: flex; }
	.fc-navbar__nav    { display: none; }   /* Il drawer sostituisce il nav su mobile */
}

/* =====================================================
   SCROLL LOCK (body quando drawer è aperto)
   ===================================================== */

body.fc-no-scroll {
	overflow: hidden;
	/* iOS: blocca lo scroll elastico */
	position: fixed;
	width: 100%;
}

/* =====================================================
   MOBILE OVERLAY
   ===================================================== */

.fc-mobile-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(11, 61, 110, 0.5);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 1100;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.fc-mobile-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* =====================================================
   MOBILE DRAWER
   ===================================================== */

.fc-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(340px, 88vw);
	background-color: var(--fc-white);
	z-index: 1200;
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -6px 0 40px rgba(11, 61, 110, 0.2);
	pointer-events: none;
}

.fc-mobile-drawer.is-open {
	transform: translateX(0);
	pointer-events: auto;
}

/* Testa: logo + pulsante chiudi */
.fc-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.25rem;
	height: 70px;
	min-height: 70px;
	border-bottom: 1px solid var(--fc-sand-dark);
	flex-shrink: 0;
}

.fc-mobile-drawer__brand {
	display: flex;
	align-items: center;
	text-decoration: none !important;
}

.fc-mobile-drawer__brand img {
	max-height: 46px;
	width: auto;
	display: block;
}

.fc-mobile-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 1.5px solid var(--fc-sand-dark);
	border-radius: var(--fc-radius);
	cursor: pointer;
	color: var(--fc-gray-800);
	flex-shrink: 0;
	transition: background-color var(--fc-transition), border-color var(--fc-transition), color var(--fc-transition);
}

.fc-mobile-drawer__close:hover {
	background-color: var(--fc-sand);
	border-color: var(--fc-gray-300);
	color: var(--fc-blue-dark);
}

/* Corpo scrollabile */
.fc-mobile-drawer__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* ── Lista voci mobile ── */
.fc-mobile-nav {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0.5rem;
}

.fc-mobile-nav > li {
	border-bottom: 1px solid var(--fc-sand-dark);
}

.fc-mobile-nav > li:last-child {
	border-bottom: none;
}

/* Voci con sottomenu: riga flex (link + chevron) */
.fc-mobile-nav > li.menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.fc-mobile-nav > li > a {
	display: block;
	flex: 1;
	padding: 0.95rem 1.5rem;
	font-family: var(--fc-font-heading);
	font-weight: 600;
	font-size: 1rem;
	color: var(--fc-gray-800);
	text-decoration: none !important;
	transition: color var(--fc-transition), background-color var(--fc-transition);
}

.fc-mobile-nav > li > a:hover,
.fc-mobile-nav > li.current-menu-item > a,
.fc-mobile-nav > li.current-menu-ancestor > a {
	color: var(--fc-blue);
	background-color: var(--fc-sand);
}

/* Pulsante chevron per aprire i sottomenu */
.fc-submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	background: none;
	border: none;
	border-left: 1px solid var(--fc-sand-dark);
	cursor: pointer;
	color: var(--fc-gray-600);
	flex-shrink: 0;
	padding: 0;
	transition: background-color var(--fc-transition), color var(--fc-transition);
}

.fc-submenu-toggle:hover {
	background-color: var(--fc-sand);
	color: var(--fc-blue);
}

.fc-submenu-toggle svg {
	transition: transform 0.28s ease;
}

.fc-submenu-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Sottomenu (altezza animata via JS) */
.fc-mobile-nav .sub-menu {
	flex-basis: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	background-color: var(--fc-sand);
	overflow: hidden;
	height: 0;
	transition: height 0.3s ease;
}

.fc-mobile-nav .sub-menu li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fc-mobile-nav .sub-menu li:last-child {
	border-bottom: none;
}

.fc-mobile-nav .sub-menu a {
	display: block;
	padding: 0.75rem 1.5rem 0.75rem 2rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--fc-gray-800);
	text-decoration: none !important;
	transition: color var(--fc-transition), background-color var(--fc-transition);
}

.fc-mobile-nav .sub-menu a::before {
	content: '–';
	margin-right: 0.5rem;
	color: var(--fc-teal);
	font-weight: 700;
}

.fc-mobile-nav .sub-menu a:hover {
	color: var(--fc-blue);
	background-color: var(--fc-sand-dark);
}

/* ── Piede del drawer: CTA ── */
.fc-mobile-drawer__foot {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-top: 2px solid var(--fc-sand-dark);
	flex-shrink: 0;
	background-color: var(--fc-white);
}

.fc-drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.8rem 0.5rem;
	border-radius: var(--fc-radius);
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none !important;
	transition: opacity var(--fc-transition), transform var(--fc-transition), box-shadow var(--fc-transition);
}

.fc-drawer-cta:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: var(--fc-shadow);
}

.fc-drawer-cta--phone {
	background-color: var(--fc-blue);
	color: var(--fc-white) !important;
}

.fc-drawer-cta--whatsapp {
	background-color: #25D366;
	color: var(--fc-white) !important;
}

/* =====================================================
   BOTTONI
   ===================================================== */

.elementor-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"],
.btn {
	font-family: var(--fc-font-heading);
	font-weight: 600;
	border-radius: var(--fc-radius);
	transition: background-color var(--fc-transition), box-shadow var(--fc-transition), transform var(--fc-transition);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

/* Bottone primario (blu) */
.btn-primary,
.elementor-button.elementor-button-primary,
.wp-block-button.is-style-primary .wp-block-button__link {
	background-color: var(--fc-blue);
	color: var(--fc-white) !important;
	border: 2px solid var(--fc-blue);
	padding: 0.7rem 1.6rem;
}

.btn-primary:hover,
.elementor-button.elementor-button-primary:hover,
.wp-block-button.is-style-primary .wp-block-button__link:hover {
	background-color: var(--fc-blue-dark);
	border-color: var(--fc-blue-dark);
	box-shadow: var(--fc-shadow-md);
	transform: translateY(-1px);
}

/* Bottone secondario (teal) */
.btn-secondary,
.elementor-button.elementor-button-secondary,
.wp-block-button.is-style-secondary .wp-block-button__link {
	background-color: var(--fc-teal);
	color: var(--fc-white) !important;
	border: 2px solid var(--fc-teal);
	padding: 0.7rem 1.6rem;
}

.btn-secondary:hover,
.elementor-button.elementor-button-secondary:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background-color: var(--fc-teal-dark);
	border-color: var(--fc-teal-dark);
	box-shadow: var(--fc-shadow-md);
	transform: translateY(-1px);
}

/* Bottone outline */
.btn-outline,
.elementor-button.elementor-button-outline {
	background-color: transparent;
	color: var(--fc-blue) !important;
	border: 2px solid var(--fc-blue);
	padding: 0.7rem 1.6rem;
}

.btn-outline:hover,
.elementor-button.elementor-button-outline:hover {
	background-color: var(--fc-blue);
	color: var(--fc-white) !important;
}

/* =====================================================
   FORM
   ===================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1.5px solid var(--fc-gray-300);
	border-radius: var(--fc-radius);
	font-family: var(--fc-font-body);
	font-size: 0.95rem;
	color: var(--fc-gray-800);
	background-color: var(--fc-white);
	transition: border-color var(--fc-transition), box-shadow var(--fc-transition);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--fc-blue);
	box-shadow: 0 0 0 3px rgba(26, 107, 170, 0.15);
}

label {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--fc-gray-800);
	margin-bottom: 0.35rem;
	display: block;
}

/* =====================================================
   SEZIONI DI PAGINA
   ===================================================== */

/* Sezione sfondo sabbia */
.section-sand,
.e-con.bg-sand,
.elementor-section.bg-sand .elementor-container {
	background-color: var(--fc-sand);
}

/* Sezione sfondo blu scuro */
.section-blue,
.e-con.bg-blue,
.elementor-section.bg-blue > .elementor-container {
	background-color: var(--fc-blue-dark);
	color: var(--fc-white);
}

.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue h4,
.section-blue p,
.e-con.bg-blue h1,
.e-con.bg-blue h2,
.e-con.bg-blue h3,
.e-con.bg-blue p {
	color: var(--fc-white);
}

/* Sezione sfondo teal */
.section-teal,
.e-con.bg-teal {
	background-color: var(--fc-teal);
	color: var(--fc-white);
}

/* =====================================================
   CARD
   ===================================================== */

.fc-card {
	background-color: var(--fc-white);
	border-radius: var(--fc-radius-lg);
	box-shadow: var(--fc-shadow);
	padding: 2rem;
	transition: box-shadow var(--fc-transition), transform var(--fc-transition);
}

.fc-card:hover {
	box-shadow: var(--fc-shadow-md);
	transform: translateY(-3px);
}

.fc-card--blue {
	background-color: var(--fc-blue);
	color: var(--fc-white);
}

.fc-card--teal {
	background-color: var(--fc-teal);
	color: var(--fc-white);
}

.fc-card--sand {
	background-color: var(--fc-sand);
}

/* =====================================================
   BADGE / ETICHETTE
   ===================================================== */

.fc-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fc-badge--blue  { background-color: var(--fc-blue);  color: var(--fc-white); }
.fc-badge--teal  { background-color: var(--fc-teal);  color: var(--fc-white); }
.fc-badge--sand  { background-color: var(--fc-sand-dark); color: var(--fc-blue-dark); }

/* =====================================================
   HERO SECTION
   ===================================================== */

.fc-hero {
	background: linear-gradient(135deg, var(--fc-blue-dark) 0%, var(--fc-blue) 60%, var(--fc-blue-light) 100%);
	color: var(--fc-white);
	padding: 5rem 2rem;
	text-align: center;
}

.fc-hero h1,
.fc-hero h2 {
	color: var(--fc-white);
}

.fc-hero p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.15rem;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
	background-color: var(--fc-blue-dark);
	color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color var(--fc-transition);
}

.site-footer a:hover {
	color: var(--fc-white);
}

/* ── Area principale ── */
.fc-footer-main {
	padding: 4rem 0 3rem;
}

.fc-footer-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

/* ── Col 1: Brand ── */
.fc-footer-site-name {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--fc-white);
}

.fc-footer-logo {
	margin-bottom: 0.85rem;
}

.fc-footer-logo img {
	max-height: 52px;
	width: auto;
	filter: brightness(0) invert(1);
}

.fc-footer-logo a {
	display: inline-block;
	color: inherit;
}

.fc-footer-tagline {
	color: rgba(255, 255, 255, 0.52);
	font-size: 0.88rem;
	line-height: 1.55;
	margin-bottom: 1.5rem;
}

/* Lista contatti */
.fc-footer-contact {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.fc-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.70);
	line-height: 1.45;
}

.fc-footer-contact svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--fc-teal-light);
}

.fc-footer-contact a {
	color: rgba(255, 255, 255, 0.70);
}

.fc-footer-contact a:hover {
	color: var(--fc-white);
}

/* Social icons */
.fc-footer-social {
	display: flex;
	gap: 0.5rem;
}

.fc-footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--fc-radius);
	background-color: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.11);
	color: rgba(255, 255, 255, 0.68);
	transition:
		background-color var(--fc-transition),
		border-color var(--fc-transition),
		color var(--fc-transition),
		transform var(--fc-transition);
}

.fc-footer-social__link:hover {
	background-color: var(--fc-teal);
	border-color: var(--fc-teal);
	color: var(--fc-white);
	transform: translateY(-2px);
}

/* ── Intestazioni colonne ── */
.fc-footer-col h3,
.fc-footer-col h4 {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fc-white);
	margin-bottom: 1.25rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* ── Tabella orari ── */
.fc-footer-hours {
	width: 100%;
	border-collapse: collapse;
}

.fc-footer-hours tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fc-footer-hours tr:last-child {
	border-bottom: none;
}

.fc-footer-hours td {
	padding: 0.65rem 0;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.68);
	vertical-align: top;
	line-height: 1.5;
}

.fc-footer-hours__day {
	font-weight: 600;
	color: var(--fc-white) !important;
	padding-right: 1rem !important;
	white-space: nowrap;
}

/* ── Link di navigazione ── */
.fc-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.fc-footer-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
	transition: color var(--fc-transition), gap var(--fc-transition);
}

.fc-footer-nav a::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	background-color: var(--fc-teal-light);
	border-radius: 50%;
	flex-shrink: 0;
	transition: transform var(--fc-transition);
}

.fc-footer-nav a:hover {
	color: var(--fc-white);
	gap: 0.65rem;
}

.fc-footer-nav a:hover::before {
	transform: scale(1.5);
}

/* ── Barra inferiore ── */
.fc-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	padding: 1.2rem 0;
}

.fc-footer-bottom .fc-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fc-footer-bottom p {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.38);
	margin: 0;
}

.fc-footer-bottom a {
	color: rgba(255, 255, 255, 0.38);
	transition: color var(--fc-transition);
}

.fc-footer-bottom a:hover {
	color: rgba(255, 255, 255, 0.75);
}

/* =====================================================
   PAGINE LEGALI / PRIVACY
   ===================================================== */

/* Layout: sidebar indice + contenuto */
.fc-legal-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 3rem;
	align-items: start;
}

/* Variante senza sidebar (solo testo, es. fidelity card) */
.fc-legal-layout--single {
	grid-template-columns: 1fr;
	max-width: 780px;
	margin-inline: auto;
}

/* ── Indice ── */
.fc-legal-toc__inner {
	position: sticky;
	top: 6rem;
	background: var(--fc-sand);
	border-radius: var(--fc-radius);
	padding: 1.4rem 1.6rem;
	border-left: 3px solid var(--fc-blue);
}

.fc-legal-toc__title {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fc-blue-dark);
	margin: 0 0 0.85rem;
}

.fc-legal-toc__list {
	margin: 0;
	padding-left: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.fc-legal-toc__list li {
	font-size: 0.86rem;
	line-height: 1.4;
}

.fc-legal-toc__list a {
	color: var(--fc-gray-600);
	text-decoration: none;
	transition: color var(--fc-transition);
}

.fc-legal-toc__list a:hover {
	color: var(--fc-blue);
}

/* ── Sezioni del documento ── */
.fc-legal-section {
	padding-top: 2.5rem;
	margin-top: 0;
	border-top: 1px solid var(--fc-sand-dark);
}

.fc-legal-section:first-child {
	padding-top: 0;
	border-top: none;
}

.fc-legal-section__title {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--fc-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--fc-blue-dark);
	margin: 0 0 1.1rem;
}

.fc-legal-section__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	background: var(--fc-blue);
	color: var(--fc-white);
	border-radius: 50%;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
}

.fc-legal-h3 {
	font-family: var(--fc-font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--fc-blue);
	margin: 1.4rem 0 0.5rem;
}

.fc-legal-content p {
	line-height: var(--fc-line-height);
	color: var(--fc-gray-800);
	margin: 0 0 0.9rem;
}

/* ── Box info titolare / responsabile ── */
.fc-legal-info-box {
	background: var(--fc-sand);
	border-left: 4px solid var(--fc-teal);
	border-radius: var(--fc-radius);
	padding: 1.1rem 1.4rem;
	margin: 1rem 0 1.2rem;
}

.fc-legal-info-box p {
	margin: 0 0 0.3rem;
	font-size: 0.94rem;
}

.fc-legal-info-box p:last-child {
	margin-bottom: 0;
}

/* ── Liste ── */
.fc-legal-list {
	padding-left: 1.3rem;
	margin: 0.5rem 0 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.fc-legal-list li {
	line-height: 1.6;
	color: var(--fc-gray-800);
}

.fc-legal-list--grid {
	list-style: none;
	padding-left: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}

.fc-legal-list--grid li {
	background: var(--fc-gray-100);
	border-radius: var(--fc-radius);
	padding: 0.9rem 1.1rem;
	font-size: 0.92rem;
}

.fc-legal-list--grid li strong {
	display: block;
	color: var(--fc-blue-dark);
	margin-bottom: 0.25rem;
}

/* ── Tabelle ── */
.fc-legal-table-wrap {
	overflow-x: auto;
	margin: 0.8rem 0 1.2rem;
	border-radius: var(--fc-radius);
	border: 1px solid var(--fc-sand-dark);
}

.fc-legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.fc-legal-table thead {
	background: var(--fc-blue-dark);
	color: var(--fc-white);
}

.fc-legal-table th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}

.fc-legal-table td {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--fc-sand-dark);
	vertical-align: top;
	line-height: 1.5;
}

.fc-legal-table tr:nth-child(even) td {
	background: var(--fc-sand);
}

.fc-legal-table code {
	font-family: monospace;
	font-size: 0.85em;
	background: var(--fc-gray-100);
	padding: 0.15em 0.4em;
	border-radius: 3px;
}

/* ── Placeholder notice (solo dev) ── */
.fc-legal-placeholder-notice {
	background: #fff8e1;
	border-left: 4px solid #f9a825;
	padding: 1rem 1.2rem;
	border-radius: var(--fc-radius);
	font-size: 0.9rem;
	color: #5d4037;
	margin: 1rem 0;
}

/* ── CTA in fondo alle pagine legali ── */
.fc-legal-cta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.fc-legal-cta p {
	margin: 0;
	font-size: 1rem;
	color: var(--fc-gray-800);
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.fc-legal-layout {
		grid-template-columns: 1fr;
	}

	.fc-legal-toc__inner {
		position: static;
	}
}

@media (max-width: 600px) {
	.fc-legal-list--grid {
		grid-template-columns: 1fr;
	}
}

/* =====================================================
   UTILITY
   ===================================================== */

.text-blue       { color: var(--fc-blue) !important; }
.text-blue-dark  { color: var(--fc-blue-dark) !important; }
.text-teal       { color: var(--fc-teal) !important; }
.text-sand       { color: var(--fc-sand) !important; }
.text-white      { color: var(--fc-white) !important; }

.bg-blue       { background-color: var(--fc-blue) !important; }
.bg-blue-dark  { background-color: var(--fc-blue-dark) !important; }
.bg-blue-light { background-color: var(--fc-blue-light) !important; }
.bg-teal       { background-color: var(--fc-teal) !important; }
.bg-sand       { background-color: var(--fc-sand) !important; }

/* Divisore colorato */
.fc-divider {
	border: none;
	height: 3px;
	background: linear-gradient(90deg, var(--fc-blue), var(--fc-teal));
	border-radius: 2px;
	margin: 2rem 0;
}

/* =====================================================
   ACCESSIBILITÀ
   ===================================================== */

:focus-visible {
	outline: 3px solid var(--fc-blue-light);
	outline-offset: 2px;
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
	.fc-footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.fc-footer-col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	:root {
		--fc-font-size-base: 15px;
	}

	.fc-hero {
		padding: 3rem 1.25rem;
	}

	.fc-card {
		padding: 1.4rem;
	}

	.fc-footer-main {
		padding: 2.5rem 0 1.5rem;
	}

	.fc-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem;
	}

	.fc-footer-col--brand {
		grid-column: 1 / -1;
	}

	.fc-footer-bottom .fc-container {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.fc-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	:root {
		--fc-font-size-base: 14px;
	}
}

/* Orari footer: fasce orarie vicino al giorno, su due righe */
.fc-footer-hours td:last-child { white-space: nowrap; }
.fc-footer-hours__day { padding-right: 0.75rem !important; }
.fc-footer-hours td.fc-footer-hours__note { white-space: normal; font-size: 0.85rem; padding-top: 0.75rem; }

/* Pulsante WhatsApp nell'intestazione */
.fc-navbar__cta--wa { background-color: #25d366; margin-left: 0.5rem; }
.fc-navbar__cta--wa:hover { background-color: #1ebe5b; }

/* Servizio notturno */
.fc-notturno { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 2rem; align-items: center; }
.fc-notturno__img { margin: 0; }
.fc-notturno__img img { width: 100%; height: auto; border-radius: 16px; display: block; }
@media (max-width: 700px) { .fc-notturno { grid-template-columns: 1fr; } }
