/* =============================================================
   ORARI E TURNI – Farmacia Cavi
   Caricato solo sulla pagina /orari-e-turni/
   ============================================================= */

/* -------------------------------------------------------------
   LAYOUT / SEZIONI
   ------------------------------------------------------------- */

.fc-section {
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

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

.fc-section-header {
	text-align: center;
	max-width: 680px;
	margin-inline: auto;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.fc-section-header__label {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fc-teal);
	margin-bottom: 0.6rem;
}

.fc-section-header h2 { margin-bottom: 0.75rem; }

.fc-section-header p {
	color: var(--fc-gray-600);
	font-size: 1.05rem;
	margin-bottom: 0;
}

/* -------------------------------------------------------------
   BOTTONI
   ------------------------------------------------------------- */

.fc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.75rem 1.6rem;
	border-radius: var(--fc-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition:
		background-color var(--fc-transition),
		color var(--fc-transition),
		border-color var(--fc-transition),
		box-shadow var(--fc-transition),
		transform var(--fc-transition);
	white-space: nowrap;
}

.fc-btn:hover  { transform: translateY(-2px); }
.fc-btn:active { transform: translateY(0); }

.fc-btn--white {
	background-color: var(--fc-white);
	color: var(--fc-blue-dark) !important;
	border-color: var(--fc-white);
}
.fc-btn--white:hover {
	background-color: var(--fc-sand);
	box-shadow: var(--fc-shadow-md);
}

.fc-btn--outline-white {
	background-color: transparent;
	color: var(--fc-white) !important;
	border-color: rgba(255,255,255,0.6);
}
.fc-btn--outline-white:hover {
	background-color: rgba(255,255,255,0.12);
	border-color: var(--fc-white);
}

/* -------------------------------------------------------------
   HERO PAGINA INTERNA
   ------------------------------------------------------------- */

.fc-page-hero {
	background: linear-gradient(135deg, var(--fc-blue-dark) 0%, var(--fc-blue) 100%);
	padding-top: clamp(3rem, 7vw, 5rem);
	overflow: hidden;
	position: relative;
}

.fc-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 85% 30%, rgba(58,155,213,.18) 0%, transparent 50%),
		radial-gradient(circle at 10% 70%, rgba(30,140,122,.15) 0%, transparent 40%);
	pointer-events: none;
}

.fc-page-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: end;
}

.fc-page-hero__text {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.fc-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: rgba(255,255,255,0.55);
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.fc-breadcrumb a {
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	transition: color var(--fc-transition);
}
.fc-breadcrumb a:hover    { color: var(--fc-white); text-decoration: none; }
.fc-breadcrumb__sep       { opacity: 0.4; }
.fc-breadcrumb__current   { color: var(--fc-white); }

.fc-page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	color: var(--fc-white) !important;
	line-height: 1.1;
	margin: 0 0 1rem;
}

.fc-page-hero__sub {
	font-size: clamp(1rem, 2vw, 1.15rem);
	color: rgba(255,255,255,0.80);
	line-height: 1.65;
	max-width: 480px;
	margin: 0;
}

.fc-page-hero__img-wrap {
	border-radius: 12px 12px 0 0;
	overflow: hidden;
	min-height: 480px;
}

.img-ph {
	width: 100%;
	height: 100%;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background-color: var(--fc-sand-dark);
	color: var(--fc-blue-dark);
	border-radius: inherit;
}

.img-ph svg { opacity: 0.22; }

/* =============================================================
   ORARI DI APERTURA
   ============================================================= */

.fc-orari-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.fc-orari-card {
	background-color: var(--fc-white);
	border: 1.5px solid var(--fc-sand-dark);
	border-radius: var(--fc-radius-lg);
	padding: 2rem 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	transition:
		box-shadow var(--fc-transition),
		transform var(--fc-transition),
		border-color var(--fc-transition);
}

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

.fc-orari-card--muted {
	opacity: 0.75;
}

.fc-orari-card--estate {
	background: linear-gradient(135deg, var(--fc-teal-dark) 0%, var(--fc-teal) 100%);
	border-color: var(--fc-teal-dark);
	color: var(--fc-white);
}

.fc-orari-card--estate:hover {
	border-color: var(--fc-teal-dark);
}

.fc-orari-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fc-orari-card__icon--blue {
	background-color: rgba(26,107,170,.10);
	color: var(--fc-blue);
}

.fc-orari-card__icon--gray {
	background-color: var(--fc-sand-dark);
	color: var(--fc-gray-600);
}

.fc-orari-card__icon--teal {
	background-color: rgba(255,255,255,.20);
	color: var(--fc-white);
}

.fc-orari-card h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.fc-orari-card--estate h3 {
	color: var(--fc-white);
}

.fc-orari-card__times {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.fc-orari-card__slot {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--fc-blue-dark);
	background-color: var(--fc-sand);
	padding: 0.3rem 0.75rem;
	border-radius: var(--fc-radius);
	white-space: nowrap;
}

.fc-orari-card--estate .fc-orari-card__slot {
	background-color: rgba(255,255,255,.20);
	color: var(--fc-white);
}

.fc-orari-card__sep {
	color: var(--fc-gray-600);
	font-weight: 700;
}

.fc-orari-card__closed {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 1rem;
	color: var(--fc-gray-600);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fc-orari-card__note {
	font-size: 0.82rem;
	color: rgba(255,255,255,0.78);
	margin: 0;
	line-height: 1.45;
}

.fc-orari-card__badge {
	display: inline-block;
	background-color: rgba(255,255,255,.22);
	color: var(--fc-white);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
}

/* =============================================================
   TURNI BIMESTRALI
   ============================================================= */

.fc-turni-content {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--fc-radius-lg);
	box-shadow: var(--fc-shadow);
}

/* Stili condivisi per tabella HTML diretta e blocco Gutenberg */
.fc-turni-content table,
.fc-turni-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.925rem;
	background-color: var(--fc-white);
	min-width: 520px;
}

.fc-turni-content .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

.fc-turni-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.925rem;
	background-color: var(--fc-white);
	min-width: 520px;
}

/* Intestazione */
.fc-turni-content thead th,
.fc-turni-content .wp-block-table thead th,
.fc-turni-table thead th {
	background-color: var(--fc-blue-dark);
	color: var(--fc-white);
	padding: 1rem 1.25rem;
	text-align: left;
	font-family: var(--fc-font-heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	border: none;
}

.fc-turni-content thead th:first-child,
.fc-turni-content .wp-block-table thead th:first-child,
.fc-turni-table thead th:first-child {
	border-radius: var(--fc-radius-lg) 0 0 0;
}

.fc-turni-content thead th:last-child,
.fc-turni-content .wp-block-table thead th:last-child,
.fc-turni-table thead th:last-child {
	border-radius: 0 var(--fc-radius-lg) 0 0;
}

/* Righe corpo */
.fc-turni-content tbody tr,
.fc-turni-content .wp-block-table tbody tr,
.fc-turni-table tbody tr {
	border-bottom: 1px solid var(--fc-sand-dark);
	transition: background-color var(--fc-transition);
}

.fc-turni-content tbody tr:last-child,
.fc-turni-content .wp-block-table tbody tr:last-child,
.fc-turni-table tbody tr:last-child {
	border-bottom: none;
}

.fc-turni-content tbody tr:hover,
.fc-turni-content .wp-block-table tbody tr:hover,
.fc-turni-table tbody tr:hover {
	background-color: var(--fc-sand);
}

/* Celle */
.fc-turni-content tbody td,
.fc-turni-content .wp-block-table tbody td,
.fc-turni-table tbody td {
	padding: 0.875rem 1.25rem;
	color: var(--fc-gray-800);
	vertical-align: middle;
	border: none;
	line-height: 1.5;
}

/* Prima colonna (data) – enfatizzata */
.fc-turni-content tbody td:first-child,
.fc-turni-content .wp-block-table tbody td:first-child,
.fc-turni-table tbody td:first-child {
	font-family: var(--fc-font-heading);
	font-weight: 700;
	color: var(--fc-blue-dark);
	white-space: nowrap;
}

/* Placeholder text */
.fc-turni-content tbody td[data-placeholder],
.fc-turni-table tbody td {
	color: var(--fc-gray-600);
}

/* Righe alternate zebrate */
.fc-turni-content tbody tr:nth-child(even),
.fc-turni-content .wp-block-table tbody tr:nth-child(even),
.fc-turni-table tbody tr:nth-child(even) {
	background-color: var(--fc-sand);
}

.fc-turni-content tbody tr:nth-child(even):hover,
.fc-turni-content .wp-block-table tbody tr:nth-child(even):hover,
.fc-turni-table tbody tr:nth-child(even):hover {
	background-color: var(--fc-sand-dark);
}

/* Nota sotto la tabella */
.fc-turni-note {
	margin-top: 1rem;
	font-size: 0.82rem;
	color: var(--fc-gray-600);
	text-align: right;
	font-style: italic;
}

/* Indicatore scroll – visibile solo su mobile */
.fc-turni-scroll-hint {
	display: none;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fc-teal);
	letter-spacing: 0.03em;
	margin-bottom: 0.65rem;
}

/* =============================================================
   FARMACIE DI ZONA
   ============================================================= */

.fc-farmacie-wrapper {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.fc-farmacie-gruppo__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.fc-farmacie-gruppo__city {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fc-blue-dark);
	margin: 0;
	white-space: nowrap;
}

.fc-farmacie-gruppo__line {
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--fc-blue-light), transparent);
	border-radius: 2px;
	opacity: 0.4;
}

.fc-farmacie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 0.85rem;
}

.fc-farmacia-card {
	background-color: var(--fc-white);
	border: 1.5px solid var(--fc-sand-dark);
	border-radius: var(--fc-radius);
	padding: 0.9rem 1rem;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	transition:
		box-shadow var(--fc-transition),
		border-color var(--fc-transition),
		transform var(--fc-transition);
}

.fc-farmacia-card:hover {
	border-color: var(--fc-blue);
	box-shadow: var(--fc-shadow);
	transform: translateY(-2px);
}

.fc-farmacia-card__icon {
	color: var(--fc-teal);
	flex-shrink: 0;
	margin-top: 1px;
}

.fc-farmacia-card__name {
	display: block;
	font-family: var(--fc-font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--fc-blue-dark);
	line-height: 1.35;
	margin-bottom: 0.2rem;
}

.fc-farmacia-card__address {
	display: block;
	font-size: 0.8rem;
	color: var(--fc-gray-600);
	line-height: 1.45;
}

.fc-farmacia-card__phone {
	display: block;
	font-size: 0.78rem;
	color: var(--fc-blue);
	text-decoration: none;
	margin-top: 0.2rem;
	transition: color var(--fc-transition);
}

.fc-farmacia-card__phone:hover {
	color: var(--fc-blue-dark);
	text-decoration: underline;
}

.fc-farmacia-card__maps {
	display: inline-block;
	font-size: 0.72rem;
	color: var(--fc-teal);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	margin-top: 0.35rem;
	cursor: pointer;
	transition: color var(--fc-transition);
}

.fc-farmacia-card__maps:hover {
	color: var(--fc-teal-dark);
	text-decoration: underline;
}

/* =============================================================
   CTA FINALE
   ============================================================= */

.fc-cta-final {
	position: relative;
	padding-block: clamp(3rem, 7vw, 5rem);
	background: linear-gradient(135deg, var(--fc-teal-dark) 0%, var(--fc-teal) 50%, #1A6BAA 100%);
	overflow: hidden;
}

.fc-cta-final::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 85% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
		radial-gradient(circle at 15% 50%, rgba(255,255,255,.05) 0%, transparent 40%);
	pointer-events: none;
}

.fc-cta-final__overlay { display: none; }

.fc-cta-final__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.fc-cta-final__text {
	flex: 1;
	min-width: 280px;
}

.fc-cta-final__text h2 {
	color: var(--fc-white);
	font-size: clamp(1.4rem, 3vw, 2rem);
	margin-bottom: 0.6rem;
}

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

.fc-cta-final__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	flex-shrink: 0;
}

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

/* =============================================================
   MOBILE – date abbreviate e scroll hint
   ============================================================= */

@media (max-width: 768px) {

	.fc-turni-scroll-hint {
		display: block;
	}

	/* Nasconde il testo lungo della cella data */
	.fc-turni-table tbody td:first-child,
	.fc-turni-content tbody td:first-child {
		font-size: 0;
		padding-inline: 0.75rem;
	}

	/* Mostra il testo abbreviato via data-mobile */
	.fc-turni-table tbody td[data-mobile]:first-child::before,
	.fc-turni-content tbody td[data-mobile]:first-child::before {
		content: attr(data-mobile);
		font-family: var(--fc-font-heading);
		font-size: 12px;
		font-weight: 700;
		color: var(--fc-blue-dark);
	}

	/* Celle corpo */
	.fc-turni-content tbody td,
	.fc-turni-content .wp-block-table tbody td,
	.fc-turni-table tbody td {
		padding: 4px 6px;
		font-size: 12px;
	}

	/* Intestazioni */
	.fc-turni-content thead th,
	.fc-turni-content .wp-block-table thead th,
	.fc-turni-table thead th {
		padding: 4px 6px;
		font-size: 11px;
	}
}

@media (max-width: 900px) {
	.fc-page-hero__inner {
		grid-template-columns: 1fr;
	}

	.fc-page-hero__inner > .fc-page-hero__image {
		display: none;
	}

	.fc-orari-cards {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-inline: auto;
	}

	.fc-cta-final__inner {
		flex-direction: column;
		text-align: center;
	}

	.fc-cta-final__actions { justify-content: center; }
}

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

@media (max-width: 480px) {
	.fc-orari-cards {
		max-width: 100%;
	}

	.fc-farmacie-grid {
		grid-template-columns: 1fr;
	}

	.fc-cta-final__actions {
		flex-direction: column;
		width: 100%;
	}

	.fc-cta-final__actions .fc-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Box "Di turno adesso" */
.fc-adesso{max-width:760px;margin:0 auto 28px;padding:20px 24px;border-radius:14px;background:#EBF5FB;border:1px solid #3A9BD5;text-align:center}
.fc-adesso[hidden]{display:none}
.fc-adesso__label{display:block;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#1E8C7A;font-weight:700;margin-bottom:10px}
.fc-adesso__row{display:flex;flex-wrap:wrap;gap:12px 40px;justify-content:center}
.fc-adesso__item[hidden]{display:none}
.fc-adesso__small{display:block;font-size:.85rem;color:#666}
.fc-adesso__item strong{font-size:1.5rem;color:#0B3D6E}
.fc-turni-table tr.fc-oggi td{background:#D0F0EC}
