/**
 * Piemme Diagnostica Medica — stili del tema.
 *
 * Layout e misure replicano "design/Piemme Homepage Originale.dc.html".
 * Animazioni e transizioni replicano quelle del sito live (SP Page Builder
 * WOW + animate.css, RokSprocket Tabs, accordion jQuery, Revolution Slider).
 *
 * Indice
 *  1. Variabili e base
 *  2. Elementi comuni (container, titoli di sezione, pulsanti)
 *  3. Header e menu
 *  4. Hero
 *  5. Chi siamo e orari
 *  6. Gli esami
 *  7. Richiedi informazioni
 *  8. Cosa fare prima degli esami
 *  9. Raccolta campioni (accordion)
 * 10. Contatti e mappa
 * 11. Footer e pulsante cookie
 * 12. Animazioni
 * 13. Pagine interne
 * 14. Pagina 404
 *
 * Breakpoint unico del design: sotto i 1100px si passa al layout "stretto".
 */

/* ==========================================================================
   1. Variabili e base
   ========================================================================== */

:root {
	--navy: #002856;
	--sky: #2caee2;
	--slate: #335378;
	--ice: #f3fbfd;
	--header-h: 127px;
	--font-ui: 'Open Sans', sans-serif;
	--font-title: Raleway, sans-serif;
	/* Transizioni del sito live: colori 400ms; elementi interattivi "all .4s". */
	--t-color: color 400ms, background-color 400ms, border-color 400ms;
	--t-all: all .4s;
}

html {
	scroll-behavior: smooth;
	/* Le ancore si fermano sotto l'header fisso. */
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	background: #fff;
	color: var(--navy);
	font-family: Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
}

* {
	box-sizing: border-box;
}

a {
	color: var(--sky);
	text-decoration: none;
	transition: var(--t-color);
}

a:hover {
	color: var(--navy);
}

input,
textarea,
button {
	font-family: inherit;
}

input::placeholder,
textarea::placeholder {
	color: inherit;
	opacity: 1;
}

[hidden] {
	display: none !important;
}

/* Contenitore che evita lo scroll orizzontale durante le animazioni laterali. */
.site {
	position: relative;
	overflow-x: hidden;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 10px 16px;
	background: var(--navy);
	color: #fff;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

/* ==========================================================================
   2. Elementi comuni
   ========================================================================== */

.container {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Titolo di sezione con separatore "— + —". */
.section-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.section-heading__title {
	margin: 0;
	font-weight: 400;
	font-size: 40px;
	line-height: 46px;
	text-transform: uppercase;
	color: var(--sky);
}

.section-heading__divider {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--sky);
}

.section-heading__line {
	width: 70px;
	height: 2px;
	background: var(--sky);
}

.section-heading__plus {
	font-size: 22px;
	line-height: 14px;
	font-weight: 300;
}

.section-heading--dark-plus .section-heading__plus {
	color: var(--navy);
	font-weight: 400;
}

/* Pulsanti dell'hero (e riutilizzabili). */
.btn {
	width: 170px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	/* Come il pulsante del Revolution Slider sul sito live: 600ms lineare. */
	transition: color .6s linear, background-color .6s linear, border-color .6s linear;
}

.btn--primary {
	background: var(--navy);
	color: #fff;
}

.btn--primary:hover {
	background: var(--sky);
	color: #fff;
}

.btn--outline {
	border: 2px solid var(--navy);
	color: var(--navy);
}

.btn--outline:hover {
	border-color: var(--sky);
	color: var(--sky);
}

/* Campo trappola anti-spam: fuori schermo, non occupa spazio nel layout. */
.form-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-error {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: #e2574c;
}

.js-ajax-form.is-sending [type='submit'] {
	opacity: .6;
	cursor: progress;
}

/* ==========================================================================
   3. Header e menu
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	/* Sopra lo sfondo scurito del menu mobile (9997), sotto il pannello (9999): come sul sito live. */
	z-index: 9998;
	height: var(--header-h);
	background: #fff;
	border-bottom: 1px solid #eef1f4;
	transition: box-shadow .2s;
}

/* Ombra dell'header fisso del sito live, visibile dopo lo scroll. */
.site-header.is-stuck {
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

/* Fascia blu obliqua dietro al logo. */
.site-header__panel {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: calc(50% - 105px);
	background: var(--navy);
	clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 100%, 0 100%);
}

.site-header__inner {
	position: relative;
	max-width: 1170px;
	height: 100%;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
}

.site-header__logo {
	display: flex;
	align-items: center;
	padding-left: 40px;
	padding-top: 12px;
}

.site-header__logo img {
	display: block;
	width: 168px;
	height: 58px;
	object-fit: contain;
	object-position: left center;
}

.site-header__desktop {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	padding: 12px 0 33px;
}

.site-header__info {
	display: flex;
	gap: 44px;
	font-family: var(--font-ui);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--navy);
}

.site-header__info a {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--navy);
}

.site-header__info a:hover {
	color: var(--sky);
}

.site-header__info i {
	font-size: 12px;
}

.site-header__info .fa-envelope {
	font-size: 13px;
}

.site-nav {
	display: flex;
	gap: 32px;
	font-family: var(--font-ui);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.site-nav__link {
	color: var(--navy);
	transition: color .2s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
	color: var(--sky);
}

/* --- Mobile --- */

.site-header__mobile {
	display: none;
	align-items: center;
	gap: 10px;
}

.site-header__call {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sky);
	color: #fff;
	border-radius: 3px;
}

.site-header__call:hover {
	color: #fff;
}

.site-header__toggle {
	cursor: pointer;
	width: 44px;
	height: 44px;
	border: 1px solid #d9d9d9;
	background: #fff;
	color: var(--navy);
	font-size: 18px;
	border-radius: 3px;
}

/*
 * Menu mobile: pannello laterale (off-canvas) identico a quello del sito live.
 * Entra da destra sopra uno sfondo scurito; si usa solo sotto i 1100px.
 */
.offcanvas-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9997;
	background: rgba(0, 0, 0, .65);
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s, visibility 0s linear .3s;
}

.offcanvas-overlay.is-visible {
	visibility: visible;
	opacity: 1;
	transition: opacity .3s, visibility 0s;
}

.offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	left: auto;
	z-index: 9999;
	width: 300px;
	max-width: 85vw;
	height: 100vh;
	height: 100dvh;
	padding: 70px 24px 24px;
	overflow-y: auto;
	background: var(--navy);
	color: #fff;
	box-shadow: -4px 0 18px rgba(0, 0, 0, .25);
	visibility: hidden;
	opacity: 0;
	transform: translate3d(100%, 0, 0);
	transition: transform .35s ease-in-out, opacity .2s ease-in-out, visibility 0s linear .35s;
	will-change: transform;
}

.offcanvas.is-open {
	visibility: visible;
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: transform .35s ease-in-out, opacity .2s ease-in-out, visibility 0s;
}

.offcanvas__close {
	position: absolute;
	top: 14px;
	right: 18px;
	padding: 0;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.offcanvas__brand {
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.offcanvas__brand a {
	display: inline-block;
}

.offcanvas__brand img {
	display: block;
	width: 160px;
	max-width: 100%;
	height: auto;
}

.offcanvas__menu {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.offcanvas__link {
	display: block;
	padding: 14px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.offcanvas__link:hover,
.offcanvas__link.is-active {
	background: #229cd6;
	color: #fff;
}

/* Con la barra di amministrazione di WordPress il pannello parte sotto di essa. */
.admin-bar .offcanvas {
	top: 32px;
	height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .offcanvas {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

/* A menu aperto la pagina sottostante non scorre. */
body.has-offcanvas-open {
	overflow: hidden;
}

/* Layout desktop: il menu è nell'header, il pannello non serve. */
@media (min-width: 1100px) {
	.offcanvas,
	.offcanvas-overlay {
		display: none;
	}
}

@media (max-width: 1099.98px) {
	.site-header__panel {
		width: 100%;
		clip-path: none;
	}

	.site-header__logo {
		padding-left: 0;
	}

	.site-header__desktop {
		display: none;
	}

	.site-header__mobile {
		display: flex;
	}

	/* Senza JavaScript il pannello non si può aprire: il menu resta visibile sotto l'header. */
	html:not(.js) .site-header {
		position: relative;
	}

	html:not(.js) .offcanvas {
		position: static;
		width: auto;
		max-width: none;
		height: auto;
		padding: 0 24px 10px;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	html:not(.js) .offcanvas__close,
	html:not(.js) .offcanvas__brand,
	html:not(.js) .site-header__toggle {
		display: none;
	}
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.hero {
	position: relative;
}

/*
 * Riquadro delle foto: stesse proporzioni e posizione dell'immagine del design
 * (1472×782 a 1920px). Dentro, come nello slider del sito live: foto allineata
 * in alto a destra, velo azzurro al 15% e sagoma bianca (PNG) sovrapposta.
 */
.hero__media {
	position: absolute;
	top: 4px;
	right: 0;
	width: 76.67%;
	aspect-ratio: 1472 / 782;
	overflow: hidden;
	pointer-events: none;
}

.hero__slide {
	position: absolute;
	top: 0;
	right: 0;
	width: 95.72%;
	height: 104.48%;
	object-fit: cover;
	object-position: right top;
	opacity: 0;
	/* Dissolvenza fra le foto: 300ms come sul sito live. */
	transition: opacity .3s cubic-bezier(.645, .045, .355, 1);
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__media::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(52, 99, 156, .15);
}

.hero__shape {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	width: 171.2%;
	max-width: none;
	height: auto;
}

/* Indicatori dello slideshow, in basso a destra come sul sito live. */
.hero__bullets {
	position: absolute;
	top: 737px;
	right: 15px;
	display: flex;
	gap: 10px;
}

.hero__bullet {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 2px 1px rgba(130, 130, 130, .3);
	cursor: pointer;
	transition: background-color .3s;
}

.hero__bullet:hover,
.hero__bullet.is-active {
	background: rgba(255, 255, 255, .6);
}

.hero__content {
	position: relative;
	max-width: 1170px;
	margin: 0 auto;
	padding: 290px 15px 0;
}

.hero__title {
	margin: 0;
	max-width: 560px;
	font-family: var(--font-ui);
	font-weight: 400;
	font-size: 64px;
	line-height: 72px;
	text-transform: uppercase;
	color: var(--sky);
	text-shadow: rgb(0, 40, 86) 1px 1px 2px;
}

.hero__text {
	margin: 10px 0 0;
	max-width: 535px;
	font-family: var(--font-ui);
	font-size: 24px;
	line-height: 36px;
	color: var(--navy);
}

.hero__actions {
	display: flex;
	gap: 16px;
	margin-top: 26px;
}

@media (max-width: 1099.98px) {
	.hero__media {
		position: relative;
		top: 0;
		width: 100%;
	}

	.hero__bullets {
		display: none;
	}

	.hero__content {
		max-width: none;
		padding: 10px 20px 0;
	}

	.hero__title {
		max-width: none;
		font-size: 38px;
		line-height: 44px;
	}

	.hero__text {
		margin-top: 14px;
		max-width: none;
		font-size: 18px;
		line-height: 28px;
	}

	.hero__actions {
		flex-wrap: wrap;
		gap: 12px;
		margin-top: 24px;
	}
}

/* ==========================================================================
   5. Chi siamo e orari
   ========================================================================== */

.about-heading {
	padding: 234px 15px 75px;
}

/*
 * Come sul sito live: foto in alto a sinistra (adattata all'altezza della
 * fascia) su fondo bianco, coperta da un velo blu all'80%. Il blu che ne
 * risulta fuori dalla foto è il #335378 del design.
 */
.about {
	position: relative;
	background: #fff;
	overflow: hidden;
}

.about__bg {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left top;
	pointer-events: none;
}

.about::before,
.info::before {
	content: '';
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 40, 86, .8);
	pointer-events: none;
}

.about__inner {
	position: relative;
	z-index: 2;
	max-width: 1170px;
	margin: 0 auto;
	padding: 60px 15px 51px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 71px;
	align-items: flex-start;
}

.hours {
	flex: 0 1 360px;
	min-width: min(100%, 300px);
	color: #fff;
}

.hours__group {
	margin-bottom: 35px;
}

.hours__title {
	margin: 0 0 12px;
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
}

.hours__row {
	display: grid;
	grid-template-columns: 165px 1fr;
	align-items: center;
	height: 45px;
	border-bottom: 1px dashed rgba(255, 255, 255, .85);
	font-size: 14.5px;
}

.hours__time {
	text-align: center;
}

.about-card {
	flex: 1 1 480px;
	max-width: 709px;
	margin-top: 33px;
	background: var(--ice);
	padding: 27px 30px 31px;
}

.about-card__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
	color: var(--navy);
}

.about-card__title span {
	color: var(--sky);
}

.about-card__text {
	margin: 20px 0 0;
	font-size: 14.5px;
	line-height: 24px;
	color: #777;
}

.about-card__tagline {
	margin: 30px 0 0;
	font-style: italic;
	font-size: 30px;
	line-height: 36px;
	color: var(--sky);
}

.about-card__button {
	display: inline-block;
	margin-top: 32px;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	padding: 13px 17px;
	border-radius: 3px;
}

.about-card__button:hover {
	background: var(--sky);
	color: #fff;
}

@media (max-width: 1099.98px) {
	.about-heading {
		padding: 70px 15px 50px;
	}
}

/* ==========================================================================
   6. Gli esami
   ========================================================================== */

.exams {
	background: var(--ice);
	padding: 93px 0 95px;
}

.exams__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 60px;
	margin-top: 74px;
	min-height: 150px;
	padding-left: 13px;
}

.exam-tab {
	cursor: pointer;
	flex: none;
	width: 136px;
	height: 120px;
	margin: 0;
	background: #fff;
	color: var(--navy);
	border: none;
	padding: 0 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 14px;
	line-height: 15px;
	text-transform: uppercase;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 40, 86, .04);
	transition: var(--t-all);
}

.exam-tab__icon {
	display: block;
	width: auto;
	height: var(--icon-h, 49px);
	transition: var(--t-all);
}

/* Scheda attiva (e al passaggio del mouse, come sul sito live): più grande e blu. */
.exam-tab.is-active,
.exam-tab:hover,
.exam-tab:focus-visible {
	width: 161px;
	height: 150px;
	margin: 0 -12.5px;
	background: var(--navy);
	color: #fff;
}

.exam-tab.is-active .exam-tab__icon,
.exam-tab:hover .exam-tab__icon,
.exam-tab:focus-visible .exam-tab__icon {
	height: var(--icon-h-active, 58px);
}

.exams__panels {
	margin-top: 66px;
}

.exam-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
}

/* Senza JavaScript i pannelli restano tutti visibili, uno sotto l'altro. */
html:not(.js) .exam-panel + .exam-panel {
	margin-top: 40px;
}

/* Effetto "slide and fade" di RokSprocket Tabs: il pannello entra da destra. */
.js .exam-panel {
	position: absolute;
	width: 0;
	height: 0;
	margin-left: 200px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
}

.js .exam-panel.is-active {
	position: static;
	width: 100%;
	height: auto;
	margin-left: 0;
	overflow: visible;
	opacity: 1;
	visibility: visible;
	transition: margin .3s ease-out, opacity .4s ease-in;
}

.exam-panel__image {
	flex: 1 1 400px;
	max-width: 555px;
	width: 100%;
	height: auto;
	display: block;
}

.exam-panel__body {
	flex: 1 1 400px;
	min-width: 0;
	padding-top: 10px;
	font-family: var(--font-title);
}

.exam-panel__title {
	margin: 0;
	font-weight: 400;
	font-size: 26px;
	line-height: 32px;
	color: var(--navy);
}

.exam-panel__title span {
	color: var(--sky);
}

.exam-panel__text {
	margin: 26px 0 0;
	font-size: 15px;
	line-height: 24px;
	color: #8c8c8c;
}

/* ==========================================================================
   7. Richiedi informazioni
   ========================================================================== */

/* Stessa tecnica di "Chi siamo": foto in alto a destra sotto il velo blu. */
.info {
	position: relative;
	background: #fff;
	overflow: hidden;
}

.info__bg {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right top;
	pointer-events: none;
}

.info__inner {
	position: relative;
	z-index: 2;
	max-width: 1170px;
	margin: 0 auto;
	padding: 96px 15px 53px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 101px;
	align-items: flex-start;
}

.info-card {
	flex: 1 1 480px;
	max-width: 679px;
	min-height: 428px;
	background: #eef2f5 center / cover no-repeat;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	padding: 30px 20px;
}

.info-card__subtitle {
	margin: 18px 0 0;
	font-size: 15px;
	color: var(--navy);
}

.info-form {
	flex: 0 1 290px;
	min-width: min(100%, 260px);
	display: flex;
	flex-direction: column;
	gap: 27px;
	color: #d0dbe6;
	font-size: 13px;
}

.info-form__field {
	height: 30px;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, .75);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 13px;
	padding: 0;
	outline: none;
	transition: border-color ease-in-out .15s;
}

.info-form__field:focus {
	border-bottom-color: var(--sky);
}

.info-form__field--textarea {
	height: 90px;
	resize: vertical;
}

.info-form .form-privacy {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 8px;
	line-height: 17px;
	color: #0b1d33;
}

.info-form .form-privacy input {
	margin: 1px 0 0;
	width: 16px;
	height: 16px;
	flex: none;
}

.info-form .form-privacy a {
	color: var(--sky);
}

.info-form .form-error {
	color: #ffd0cc;
}

.info-form__submit {
	cursor: pointer;
	margin-top: 13px;
	width: 170px;
	height: 45px;
	border: none;
	background: var(--sky);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	transition: var(--t-color);
}

.info-form__submit:hover {
	background: #1f97c9;
}

.info-form__success {
	margin: 13px 0 0;
	color: #fff;
	font-size: 14px;
}

.info-form__success i {
	color: var(--sky);
	margin-right: 8px;
}

/* ==========================================================================
   8. Cosa fare prima degli esami
   ========================================================================== */

.prep {
	background: #fff;
	padding: 91px 0 100px;
}

.prep__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.prep__intro {
	margin: 16px 0 0;
	max-width: 800px;
	font-size: 15px;
	line-height: 24px;
	color: #333;
}

.prep__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 70px 40px;
	margin-top: 92px;
	padding-left: 38px;
}

.prep-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.prep-item__icon {
	flex: none;
	width: 46px;
	display: flex;
	justify-content: center;
}

.prep-item__icon img {
	height: 47px;
	width: auto;
	display: block;
}

.prep-item__body {
	max-width: 420px;
}

.prep-item__title {
	margin: 2px 0 0;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
	color: var(--navy);
}

.prep-item__text {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 24px;
	color: #8a8a8a;
}

@media (max-width: 1099.98px) {
	.prep__grid {
		padding-left: 0;
	}
}

/* ==========================================================================
   9. Raccolta campioni (accordion)
   ========================================================================== */

.samples {
	display: flex;
	flex-wrap: wrap;
	background: var(--ice);
}

.samples__image {
	position: relative;
	flex: 1 1 480px;
	min-height: 739px;
	background: left top / cover no-repeat;
}

/* Velo azzurro al 15% sopra la foto, come sul sito live. */
.samples__image::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(44, 174, 226, .15);
}

.samples__content {
	flex: 1 1 480px;
	min-width: 0;
	padding: 100px clamp(20px, 2.6vw, 50px) 110px;
}

.samples__title {
	margin: 0;
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
	color: var(--navy);
}

.accordion {
	max-width: 571px;
	margin-top: 29px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.accordion__toggle {
	cursor: pointer;
	width: 100%;
	min-height: 45px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 10px 20px;
	text-align: left;
	font-size: 15px;
	border: 1px solid #e1e1e1;
	background: #fff;
	color: #777;
	transition: var(--t-all);
}

.accordion__sign {
	font-size: 22px;
	line-height: 1;
	font-weight: 300;
}

.accordion__sign::before {
	content: '+';
}

.accordion__item.is-open .accordion__toggle {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.accordion__item.is-open .accordion__sign::before {
	content: '\2212';
}

/* L'altezza del pannello viene animata via JS (slideDown/slideUp, 400ms). */
.accordion__panel {
	overflow: hidden;
}

.js .accordion__item:not(.is-open) .accordion__panel {
	display: none;
}

.accordion__content {
	border: 1px solid #e1e1e1;
	border-top: none;
	background: #fff;
	padding: 22px 20px;
	font-size: 14px;
	line-height: 24px;
	color: #666;
}

.accordion__content p {
	margin: 0;
}

.accordion__content p + p {
	margin-top: 12px;
}

@media (max-width: 1099.98px) {
	.samples__image {
		min-height: 360px;
	}
}

/* ==========================================================================
   10. Contatti e mappa
   ========================================================================== */

.contact {
	background: #fff;
	padding: 93px 0 0;
}

.contact__row {
	display: flex;
	flex-wrap: wrap;
	gap: 50px 62px;
	margin-top: 75px;
	align-items: flex-start;
}

.contact__form-col {
	flex: 1 1 480px;
	max-width: 718px;
	min-width: 0;
	padding-top: 26px;
}

.contact-form {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 20px 30px;
}

.contact-form__field {
	height: 38px;
	border: 1px solid #d9d9d9;
	border-radius: 0;
	padding: 0 12px;
	font-size: 16px;
	color: #4c8397;
	outline: none;
	transition: border-color ease-in-out .15s;
}

.contact-form__field:focus {
	border-color: var(--sky);
}

.contact-form__field--textarea {
	grid-column: 1 / -1;
	height: 150px;
	padding: 10px 12px;
	resize: vertical;
}

.contact-form .form-privacy {
	grid-column: 1 / -1;
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 5px;
	font-size: 14px;
	color: #888;
}

.contact-form .form-privacy input {
	margin: 0;
	width: 13px;
	height: 13px;
	flex: none;
}

.contact-form .form-privacy a {
	color: var(--navy);
}

.contact-form .form-privacy a:hover {
	color: var(--sky);
}

.contact-form .form-error {
	grid-column: 1 / -1;
}

.contact-form__actions {
	grid-column: 1 / -1;
	margin-top: 10px;
}

.contact-form__submit {
	cursor: pointer;
	border: none;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	padding: 2px;
	border-radius: 4px;
	transition: var(--t-color);
}

.contact-form__submit:hover {
	background: var(--sky);
}

/* Conferma di invio. */
.contact-sent {
	border: 1px solid #d9d9d9;
	padding: 30px;
}

.contact-sent__title {
	margin: 0;
	font-weight: 400;
	font-size: 24px;
	color: var(--navy);
}

.contact-sent__text {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 24px;
	color: #888;
}

.contact-sent__reset {
	cursor: pointer;
	margin-top: 16px;
	border: none;
	background: none;
	padding: 0;
	color: var(--sky);
	font-size: 15px;
}

/* Recapiti. */
.contact__info {
	flex: 0 1 330px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.contact-info {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.contact-info > i {
	width: 36px;
	text-align: center;
}

.contact-info--address > i {
	font-size: 32px;
	color: var(--sky);
	margin-top: 10px;
}

.contact-info--phone > i {
	font-size: 28px;
	color: #1f8fd0;
	margin-top: 14px;
}

.contact-info--email > i {
	font-size: 30px;
	color: #1f8fd0;
	margin-top: 14px;
}

.contact-info__label {
	margin: 0;
	font-weight: 400;
	font-size: 18px;
	color: var(--navy);
}

.contact-info__value {
	display: block;
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 24px;
	color: #888;
}

a.contact-info__value:hover {
	color: var(--sky);
}

/* Mappa. */
.contact__map {
	margin-top: 97px;
	height: 500px;
	background: #eee;
}

.contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) contrast(.95) brightness(1.04);
}

/* Segnaposto mostrato al posto della mappa finché mancano i cookie di terze parti. */
.map-consent {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 20px;
	text-align: center;
}

.map-consent__text {
	margin: 0;
	max-width: 520px;
	font-size: 15px;
	line-height: 24px;
	color: #666;
}

.map-consent__button {
	cursor: pointer;
	border: none;
	border-radius: 3px;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	padding: 13px 17px;
	transition: var(--t-color);
}

.map-consent__button:hover {
	background: var(--sky);
}

.map-consent__link {
	font-size: 15px;
	color: var(--navy);
	text-decoration: underline;
}

.map-consent__link:hover {
	color: var(--sky);
}

.contact__spacer {
	height: 160px;
}

/* ==========================================================================
   11. Footer e pulsante cookie
   ========================================================================== */

.site-footer__top {
	background: #d7e8f3;
}

.site-footer__inner {
	max-width: 1170px;
	margin: 0 auto;
	padding: 25px 15px 26px;
	min-height: 131px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.site-footer__logo {
	padding-left: 55px;
}

.site-footer__logo img {
	display: block;
	width: 228px;
	height: 80px;
	object-fit: contain;
	object-position: left center;
}

.site-footer__phone {
	display: flex;
	gap: 20px;
	align-items: center;
	padding-right: 55px;
	font-family: var(--font-ui);
}

.site-footer__phone > i {
	font-size: 40px;
	color: var(--navy);
}

.site-footer__phone-label {
	font-size: 18px;
	color: #004da7;
}

.site-footer__phone-number {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
}

.site-footer__phone-number:hover {
	color: var(--sky);
}

.site-footer__bottom {
	background: #e7e7e7;
}

.site-footer__copy {
	max-width: 1170px;
	margin: 0 auto;
	padding: 12px 15px 12px 63px;
	font-family: var(--font-ui);
	font-size: 14px;
	line-height: 19px;
	color: #888;
}

.site-footer__copy a {
	color: var(--navy);
	font-weight: 700;
	margin-left: 4px;
}

.site-footer__copy a:hover {
	color: var(--sky);
}

@media (max-width: 1099.98px) {
	.site-footer__logo,
	.site-footer__phone {
		padding-left: 0;
		padding-right: 0;
	}

	.site-footer__copy {
		padding-left: 15px;
	}
}

/* Pulsante che riapre il banner cookie (visibile quando il banner è chiuso). */
.cookie-button {
	position: fixed;
	left: 48px;
	bottom: 0;
	z-index: 40;
	cursor: pointer;
	border: none;
	background: #000;
	color: #fff;
	border-radius: 4px 4px 0 0;
	padding: 7px 8px;
	font-size: 16px;
	line-height: normal;
}

/*
 * Banner cookie: barra nera in fondo alla pagina, come sul sito live.
 * "Rifiuto" e "Accetto" hanno stessa dimensione ed evidenza.
 */
.cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 1em 1.8em;
	background: #000;
	color: #fff;
	font-family: Helvetica, Calibri, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5em;
	animation: piemmeFadeIn .3s both;
}

.cookie-banner__message {
	flex: 1 1 auto;
	margin: 0;
}

.cookie-banner__link {
	margin-left: .4em;
	color: #fff;
	text-decoration: underline;
	white-space: nowrap;
	opacity: .8;
	transition: opacity .2s;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus {
	color: #fff;
	opacity: 1;
}

.cookie-banner__actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: .5em;
}

.cookie-banner__button {
	cursor: pointer;
	min-width: 140px;
	padding: .4em .8em;
	border: 2px solid #fff;
	font-family: inherit;
	font-size: .9em;
	font-weight: 700;
	line-height: 1.5em;
	text-align: center;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.cookie-banner__button--reject {
	background: #222;
	color: #fff;
}

.cookie-banner__button--reject:hover {
	background: #444;
}

.cookie-banner__button--accept {
	background: #fff;
	color: #000;
}

.cookie-banner__button--accept:hover {
	background: #e6e6e6;
}

.cookie-banner__button:focus-visible,
.cookie-button:focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
}

@media (max-width: 782px) {
	.cookie-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 1em;
		font-size: 14px;
	}

	.cookie-banner__button {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* ==========================================================================
   12. Animazioni
   ========================================================================== */

/* Keyframe di animate.css usati da SP Page Builder sul sito live. */
@keyframes fadeInLeft {
	0% {
		opacity: 0;
		transform: translateX(-20px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	0% {
		opacity: 0;
		transform: translateX(20px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes piemmeFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/*
 * Comparsa allo scroll (equivalente di WOW.js): l'elemento resta nascosto
 * finché non entra nell'area visibile, poi parte l'animazione indicata in
 * data-reveal. Durata e ritardo arrivano da data-reveal-duration/-delay.
 */
.js [data-reveal] {
	visibility: hidden;
}

.js [data-reveal].is-revealed {
	visibility: visible;
	animation-duration: var(--reveal-duration, 1s);
	animation-delay: var(--reveal-delay, 0s);
	animation-fill-mode: both;
}

.js [data-reveal='fadeInLeft'].is-revealed {
	animation-name: fadeInLeft;
}

.js [data-reveal='fadeInRight'].is-revealed {
	animation-name: fadeInRight;
}

/*
 * Hero: i livelli compaiono in dissolvenza come nel Revolution Slider
 * (opacity 0 → 1, 300ms, Power3.easeInOut).
 */
.js .hero__media,
.js .hero__title,
.js .hero__text,
.js .hero__actions {
	animation: piemmeFadeIn .3s cubic-bezier(.645, .045, .355, 1) .01s both;
}

/* Rispetto della preferenza di sistema "riduci movimento". */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-delay: 0s !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}

/* ==========================================================================
   13. Pagine interne (privacy, cookie, ecc.)
   ========================================================================== */

.inner-page {
	padding: 80px 0 100px;
}

.inner-page .entry + .entry {
	margin-top: 60px;
}

.entry__title {
	margin: 0 0 12px;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 26px;
	line-height: 32px;
}

.entry__content {
	max-width: 800px;
	margin: 50px auto 0;
	font-size: 15px;
	line-height: 24px;
	color: #555;
}

.entry__content h2,
.entry__content h3,
.entry__content h4 {
	margin: 36px 0 12px;
	font-family: var(--font-title);
	font-weight: 400;
	line-height: 1.25;
	color: var(--navy);
}

.entry__content h2 {
	font-size: 26px;
}

.entry__content h3 {
	font-size: 22px;
}

.entry__content h4 {
	font-size: 18px;
}

.entry__content img {
	max-width: 100%;
	height: auto;
}

.entry__content a {
	text-decoration: underline;
}

.inner-page .btn {
	display: inline-flex;
	text-decoration: none;
}

/* ==========================================================================
   14. Pagina 404
   ========================================================================== */

.error-404 {
	padding: 110px 0 130px;
	text-align: center;
}

.error-404 .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Numero grande, con lo stesso stile del titolo dell'hero. */
.error-404__code {
	margin: 0 0 18px;
	font-family: var(--font-ui);
	font-weight: 400;
	font-size: 160px;
	line-height: 1;
	color: var(--sky);
	text-shadow: rgb(0, 40, 86) 1px 1px 2px;
}

.error-404__button {
	width: auto;
	min-width: 170px;
	margin-top: 48px;
	padding: 0 24px;
	gap: 10px;
}

.error-404__button i {
	font-size: 12px;
}

@media (max-width: 1099.98px) {
	.error-404 {
		padding: 70px 0 90px;
	}

	.error-404__code {
		font-size: 110px;
	}

	.error-404 .section-heading__title {
		font-size: 30px;
		line-height: 36px;
	}
}

/* Tabelle e codice nelle pagine interne (es. elenco dei cookie). */
.entry__content .wp-block-table {
	margin: 24px 0;
	overflow-x: auto;
}

.entry__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 22px;
}

.entry__content th,
.entry__content td {
	border: 1px solid #dedede;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.entry__content th {
	background: var(--ice);
	color: var(--navy);
	font-weight: 700;
}

.entry__content code {
	font-size: 13px;
	color: var(--navy);
	word-break: break-all;
}

@media (max-width: 782px) {
	.entry__content table {
		min-width: 640px;
	}
}
