/* ==========================================================================
   Terrazze Monachile - ritocchi al tema pubblico
   Caricato per ultimo (head.inc): sovrascrive style.css / content.css / shortcodes.css.

   1. Variabili
   2. Header: barra fissa            (trasparente in cima, scura scorrendo)
   3. Menu a tutto schermo
   4. Hero compatto pagine interne   (#hero.tm-hero, markup in _hero.php)
   5. Form contatti della home       (.tm-contact)
   6. Titoli: livello corretto, stesso aspetto
   7. Pagina Contatti e come arrivare (contatti.php)
   8. Form "Richiesta evento" (_form_richiesta_evento.php)

   Nota sugli !important: il tema colora logo, burger, link del menu e campi dei
   form con stili inline via GSAP (scripts.js > ModifyColor), diversi da pagina a
   pagina. Qui i colori sono fissati apposta, cosi' restano uguali ovunque.
   ========================================================================== */

/* 1. Variabili
   ========================================================================== */
:root {
	--tm-teal: #4ca79d;
	--tm-teal-dark: #216961;
	--tm-teal-mid: #2f8379;
	--tm-slate: #344454;
	--tm-ink: #111B1F;
	--tm-ink-2: #192327;
	--tm-hh: 88px;                 /* altezza della barra */
	--tm-pad: 48px;                /* margine laterale della barra */
	--tm-ui: "Libre Baskerville", Georgia, serif;
}
html.tm-scrolled { --tm-hh: 72px; }

@media (max-width: 1024px) {
	:root { --tm-hh: 72px; --tm-pad: 28px; }
	html.tm-scrolled { --tm-hh: 64px; }
}
@media (max-width: 767px) {
	:root { --tm-hh: 64px; --tm-pad: 16px; }
	html.tm-scrolled { --tm-hh: 58px; }
}


/* 2. Header: barra fissa
   ========================================================================== */
.clapat-header.tm-header {
	height: var(--tm-hh);
	background: transparent !important;
	transition: height .3s ease;
	--tm-fg: #fff;                 /* colore di testi e icone della barra */
}

/* Il fondo sta su due pseudo-elementi e non sull'header stesso: un
   backdrop-filter sull'header "catturerebbe" il menu a tutto schermo
   (position:fixed) dentro la barra. */
.tm-header::before,
.tm-header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	transition: opacity .35s ease, background-color .35s ease, box-shadow .35s ease;
}

.tm-header #header-container {
	height: 100%;
	padding: 0 var(--tm-pad);
	margin: 0;
	background: none;
	gap: 20px;
}

/* --- logo --- */
.tm-header #clapat-logo {
	left: 0 !important;
	flex: 0 0 auto;
	overflow: visible;
}
.tm-header #clapat-logo a { position: relative; display: block; }
.tm-header #clapat-logo img {
	display: block;
	height: calc(var(--tm-hh) - 16px);
	width: auto;
	max-width: none;
	color: inherit !important;
	transform: none !important;
	-webkit-filter: none !important;
	filter: none !important;
	opacity: 1 !important;
	transition: height .3s ease;
}
/* se manca il logo chiaro (sitemenu.inc) si schiarisce quello a colori */
.tm-header--nolight #clapat-logo img {
	-webkit-filter: brightness(0) invert(1) !important;
	filter: brightness(0) invert(1) !important;
}

/* --- azioni a destra --- */
.tm-header-actions {
	position: relative;
	z-index: 12;
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
	pointer-events: auto;
}

.tm-header .language-selector {
	position: static;
	left: auto;
	padding: 0;
	font-family: var(--tm-ui);
	font-size: 12px;
	letter-spacing: .14em;
	line-height: 1;
	color: var(--tm-fg);
	white-space: nowrap;
	transition: opacity .25s ease;
}
.tm-header .language-selector span { opacity: .45; margin: 0 2px; }
.tm-header .language-selector a {
	color: var(--tm-fg) !important;
	opacity: .55;
	text-decoration: none;
	padding: 8px 2px;
	transition: opacity .2s ease;
}
.tm-header .language-selector a.is-current,
.tm-header .language-selector a:hover { opacity: 1 !important; }
.tm-header .language-selector a.is-current { font-weight: 700; }

/* pulsante Prenota */
.tm-book {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 24px;
	border: 1px solid var(--tm-teal-dark);
	border-radius: 999px;
	background: var(--tm-teal-dark);
	color: #fff !important;
	font-family: var(--tm-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, height .3s ease;
}
.tm-book:hover { background: var(--tm-teal-mid); border-color: var(--tm-teal-mid); }
.tm-book:focus-visible,
.tm-header #burger-wrapper:focus-visible,
.tm-header .language-selector a:focus-visible {
	outline: 2px solid var(--tm-teal);
	outline-offset: 3px;
}
html.tm-scrolled .tm-header .tm-book { height: 38px; }

/* burger + scritta MENU */
.tm-header .button-wrap.menu {
	position: relative;
	top: auto;
	right: auto !important;
	float: none;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	margin-right: -12px;
	color: var(--tm-fg) !important;
}
.tm-header .button-wrap.menu .icon-wrap { width: 44px; height: 44px; float: none; }
.tm-header .button-wrap.menu .button-text {
	display: block !important;
	margin: 0;
	padding: 0;
	line-height: 44px;
	font-size: 17px !important;
	letter-spacing: .06em;
	color: var(--tm-fg) !important;
	opacity: 1;
	pointer-events: auto;
}
.tm-header .burger-lines #menu-burger { width: 20px; }
.tm-header #menu-burger span { background-color: currentColor !important; }

/* --- fondo della barra: trasparente in cima, vetro scuro quando si scorre --- */
.tm-header::before {                         /* velo scuro in alto: leggibilita' sul video/foto */
	bottom: -40px;
	background: linear-gradient(180deg, rgba(17, 27, 31, .66) 0%, rgba(17, 27, 31, .32) 55%, rgba(17, 27, 31, 0) 100%);
	opacity: 1;
}
.tm-header::after {
	background-color: rgba(17, 27, 31, .88);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
	opacity: 0;
}
html.tm-scrolled .tm-header::before { opacity: 0; }
html.tm-scrolled .tm-header::after { opacity: 1; }

/* Prenota nella barra: contorno in cima, pieno quando si scorre */
.tm-header .tm-book {
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .75);
	color: #fff !important;
}
.tm-header .tm-book:hover { background: #fff; border-color: #fff; color: var(--tm-ink) !important; }
html.tm-scrolled .tm-header .tm-book { background: var(--tm-teal); border-color: var(--tm-teal); color: var(--tm-ink) !important; }
html.tm-scrolled .tm-header .tm-book:hover { background: #fff; border-color: #fff; }

/* --- menu aperto: la barra resta senza fondo sopra il menu ---
   html.tm-menu-open la mette tm-theme.js finche' il menu e' visibile. */
html.tm-menu-open .tm-header::before,
html.tm-menu-open .tm-header::after { opacity: 0 !important; }
html.tm-menu-open .tm-header .tm-book,
html.tm-menu-open.tm-scrolled .tm-header .tm-book {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
	color: #fff !important;
}
html.tm-menu-open .tm-header .tm-book:hover { background: #fff; border-color: #fff; color: var(--tm-ink) !important; }
html.tm-menu-open .tm-header .language-selector { opacity: 0; pointer-events: none; }

/* i pulsanti flottanti (cookie, parcheggio, Tripadvisor) non coprono il menu aperto */
.tm-float { transition: opacity .3s ease, visibility .3s ease; }
html.tm-menu-open .tm-float { opacity: 0 !important; visibility: hidden; pointer-events: none; }

@media (max-width: 767px) {
	.tm-header-actions { gap: 10px; }
	.tm-header .language-selector { display: none; }      /* su mobile la lingua e' nel menu aperto */
	.tm-header .button-wrap.menu { margin-right: -8px; }
	.tm-book { height: 36px; padding: 0 16px; font-size: 10.5px; letter-spacing: .16em; }
	html.tm-scrolled .tm-header .tm-book { height: 34px; }
	.tm-header #clapat-logo img { height: calc(var(--tm-hh) - 10px); }
}
@media (max-width: 420px) {
	.tm-header .button-wrap.menu .button-text { display: none !important; }
}


/* 3. Menu a tutto schermo
   ========================================================================== */
.tm-header .clapat-nav-wrapper,
.tm-header .clapat-nav-wrapper.open {
	background-color: var(--tm-ink) !important;
	background-image: radial-gradient(120% 80% at 50% 0%, rgba(76, 167, 157, .16) 0%, rgba(76, 167, 157, 0) 60%);
	padding: 0;
}
.tm-header .nav-height { padding: calc(var(--tm-hh) + 10px) 0 96px; }

.tm-header .flexnav li a,
.tm-header.fullscreen-menu .flexnav li a,
.tm-header.fullscreen-menu.invert-header .flexnav li a { color: #fff !important; }
.tm-header.fullscreen-menu.invert-header .flexnav li a.active { color: var(--tm-teal) !important; }   /* pagina corrente */
.tm-header .flexnav > li > a { border: 0; }

@media (min-width: 1025px) {
	.tm-header.fullscreen-menu .flexnav > li > a {
		font-size: clamp(2.4rem, 1rem + 3.3vw, 4.6rem);
		line-height: 1.12;
	}
	.tm-header.fullscreen-menu .flexnav .touch-button { height: clamp(2.7rem, 1.12rem + 3.7vw, 5.15rem); }
}
@media (max-width: 1024px) {
	.tm-header .flexnav > li > a,
	.tm-header .flexnav li a {
		padding: 10px 0 !important;
		font-size: clamp(1.9rem, 1rem + 4.4vw, 3rem) !important;
		line-height: 1.1 !important;
	}
}

/* riga di servizio in fondo */
.tm-nav-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: 22px var(--tm-pad) 26px;
	border-top: 1px solid rgba(255, 255, 255, .10);
	font-family: var(--tm-ui);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tm-nav-meta > div { display: flex; gap: 22px; flex: 1 1 0; }
.tm-nav-meta-contacts { justify-content: center; text-transform: none; letter-spacing: .04em; font-size: 14px; }
.tm-nav-meta-social { justify-content: flex-end; }
.tm-nav-meta a {
	color: rgba(255, 255, 255, .72) !important;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}
.tm-nav-meta a:hover,
.tm-nav-meta a.is-current { color: #fff !important; }
.tm-nav-meta a.is-current { box-shadow: 0 1px 0 var(--tm-teal); }

@media (max-width: 900px) {
	.tm-nav-meta { flex-direction: column; padding-bottom: 20px; gap: 12px; }
	.tm-nav-meta > div { flex: 0 0 auto; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }
	.tm-header .nav-height { padding-bottom: 150px; align-items: flex-start; }
	.tm-header .nav-height .flexnav { margin: auto; }
}


/* 4. Hero compatto pagine interne
   ==========================================================================
   Uguale su tutte le pagine: fondo blu-verde di marca, la foto della pagina
   (se c'e') entra solo come trama monocroma, e un arco con il sigillo della
   conchiglia lo stacca dal contenuto. */
#hero.tm-hero {
	--tm-edge: clamp(40px, 5.4vw, 84px);        /* altezza del bordo sagomato */
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(310px, 48vh, 470px);
	overflow: visible;                          /* il sigillo sporge sul contenuto */
	background: linear-gradient(155deg, #0d181c 0%, #11272a 52%, #1c4844 100%);
}
.tm-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tm-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	/* la foto prende la tinta del fondo: tutte le pagine hanno lo stesso tono */
	-webkit-filter: grayscale(1) contrast(1.2) brightness(.82);
	filter: grayscale(1) contrast(1.2) brightness(.82);
	mix-blend-mode: luminosity;
	opacity: .30;
}
#hero.tm-hero::before {                       /* piu' scuro in alto (barra) e ai lati: il titolo resta leggibile */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(13, 24, 28, .62) 0%, rgba(13, 24, 28, 0) 46%),
		radial-gradient(120% 90% at 50% 55%, rgba(13, 24, 28, 0) 35%, rgba(13, 24, 28, .55) 100%),
		linear-gradient(155deg, rgba(13, 24, 28, .30) 0%, rgba(26, 78, 72, .46) 100%);   /* velo di tinta sopra la foto */
}

/* bordo sagomato (SVG in _hero.php) */
.tm-hero-edge {
	position: absolute;
	left: 0;
	bottom: -1px;
	z-index: 2;
	display: block;
	width: 100%;
	height: var(--tm-edge);
	pointer-events: none;
}
.tm-hero-edge .tm-edge-back { fill: rgba(255, 255, 255, .16); }
.tm-hero-edge .tm-edge-front { fill: #fff; }
.tm-hero-edge .tm-edge-line { fill: none; stroke: var(--tm-teal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* sigillo con la conchiglia, a cavallo dell'arco */
.tm-hero-seal {
	position: absolute;
	left: 50%;
	bottom: calc(var(--tm-edge) * .205);        /* punto piu' basso dell'arco */
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border: 1px solid var(--tm-teal);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 6px #fff, 0 12px 26px -12px rgba(13, 24, 28, .45);
	transform: translate(-50%, 50%);
}
.tm-hero-seal img { display: block; width: auto; height: 44px; -webkit-filter: brightness(.5) contrast(1.5); filter: brightness(.5) contrast(1.5); }

#hero.tm-hero #hero-caption {
	position: relative;
	z-index: 3;
	display: block;
	width: 100%;
	height: auto;
	padding: calc(var(--tm-hh) - 6px) 24px calc(var(--tm-edge) + 6px);
	text-align: center;
	pointer-events: auto;
}
#hero.tm-hero #hero-caption .inner { margin: 0 auto; max-width: 980px; }
#hero.tm-hero .hero-title {
	margin: 0;
	padding: 4px 0;
	background: none;
	border-radius: 0;
	color: #fff !important;
	font-size: clamp(2.2rem, 1.1rem + 3.2vw, 4.2rem);
	line-height: 1.12;
}
.tm-hero-rule {                                /* filetto sotto il titolo */
	display: block;
	width: 46px;
	height: 1px;
	margin: 14px auto 0;
	background: var(--tm-teal);
}
#hero.tm-hero .hero-subtitle {
	position: static;
	margin: 14px auto 0;
	max-width: 720px;
	color: rgba(255, 255, 255, .88) !important;
	font-family: var(--tm-ui);
	font-size: clamp(15px, .8rem + .5vw, 19px);
	line-height: 1.5;
	font-style: italic;
}
#hero.tm-hero .hero-subtitle span { color: inherit !important; font-family: inherit; }
.tm-hero-crumb {
	display: inline-block;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, .78) !important;
	font-family: var(--tm-ui);
	font-size: 11.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .2s ease;
}
.tm-hero-crumb:hover { color: #fff !important; }
.tm-hero-crumb::before { content: "\2190"; margin-right: .6em; }

/* pagina 404: tre uscite utili */
.tm-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* il contenuto parte subito sotto, con un po' d'aria */
#hero.tm-hero ~ #main-content #main-page-content { padding-top: clamp(50px, 5vw, 76px); }
/* ...e uguale in tutte le pagine: si azzerano i distacchi che le prime righe
   avevano per staccarsi dal vecchio hero (row_padding_top, <hr> spaziatore).
   Ogni selettore c'e' due volte perche' a pagina caricata il tema avvolge le
   righe .light-section in .light-section-wrapper > .light-section-container. */
#hero.tm-hero ~ #main-content #main-page-content > :first-child.content-row,
#hero.tm-hero ~ #main-content #main-page-content > :first-child.content-row > .content-row:first-child,
#hero.tm-hero ~ #main-content #main-page-content > :first-child > .light-section-container > .content-row,
#hero.tm-hero ~ #main-content #main-page-content > :first-child > .light-section-container > .content-row > .content-row:first-child,
#hero.tm-hero ~ #main-content #main-page-content > :first-child > .light-section-container > .content-row > :first-child > .light-section-container > .content-row { padding-top: 0; }
#hero.tm-hero ~ #main-content #main-page-content > :first-child.content-row > hr:first-child,
#hero.tm-hero ~ #main-content #main-page-content > :first-child > .light-section-container > .content-row > hr:first-child { display: none; }

@media (max-width: 767px) {
	#hero.tm-hero { --tm-edge: clamp(26px, 8vw, 40px); height: clamp(250px, 40vh, 340px); }
	#hero.tm-hero #hero-caption { padding-left: 18px; padding-right: 18px; }
	.tm-hero-seal { width: 54px; height: 54px; box-shadow: 0 0 0 5px #fff, 0 10px 22px -12px rgba(13, 24, 28, .45); }
	.tm-hero-seal img { height: 34px; }
	.tm-hero-rule { margin-top: 10px; }
	#hero.tm-hero .hero-subtitle { margin-top: 10px; }
}


/* 5. Form contatti della home
   ========================================================================== */
.tm-contact { --tm-c-text: #fff; --tm-c-muted: rgba(255, 255, 255, .7); }
.tm-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: start;
}
.tm-contact-intro h3 { margin-bottom: 18px; }
.tm-contact-intro p {
	margin: 0 0 26px;
	color: var(--tm-c-muted) !important;
	font-size: 17px;
	line-height: 1.7;
}
.tm-contact-list { margin: 0; padding: 0; list-style: none; }
.tm-contact-list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: var(--tm-c-text) !important;
	font-size: 17px;
	line-height: 1.4;
}
.tm-contact-list span {
	color: var(--tm-teal) !important;
	font-family: var(--tm-ui);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.tm-contact-list a { color: var(--tm-c-text) !important; text-decoration: none; }
.tm-contact-list a:hover { color: var(--tm-teal) !important; }

.tm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin: 0; }
.tm-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tm-field--full { grid-column: 1 / -1; }
.tm-field > label:not(.error) {
	font-family: var(--tm-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	cursor: pointer;
}
.tm-form input[type="text"],
.tm-form input[type="email"],
.tm-form textarea {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	border-radius: 8px;
	font-family: var(--tm-ui);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	box-sizing: border-box;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tm-form textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; }
.tm-form ::placeholder { opacity: 1; }
.tm-form label.error {
	display: block;
	font-family: var(--tm-ui);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
}
.tm-form-foot {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	flex-wrap: wrap;
	margin-top: 4px;
}
.tm-form-note { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 1.6; }
.tm-form-note a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 40px;
	border: 1px solid var(--tm-teal);
	border-radius: 999px;
	background: var(--tm-teal);
	color: var(--tm-ink) !important;
	font-family: var(--tm-ui);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .2s ease;
}
.tm-btn:hover { background: #fff; border-color: #fff; }
.tm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tm-btn[disabled] { opacity: .6; cursor: progress; }
.tm-form-honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.tm-contact .form-message-success { margin: 0 0 22px; border-radius: 8px; font-family: var(--tm-ui); font-size: 15px; }

/* campi pieni sul fondo scuro della sezione */
.tm-contact .tm-field > label:not(.error) { color: rgba(255, 255, 255, .86) !important; }
.tm-contact .tm-form input[type="text"],
.tm-contact .tm-form input[type="email"],
.tm-contact .tm-form textarea {
	border: 1px solid rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .07);
	color: #fff !important;
}
.tm-contact .tm-form ::placeholder { color: rgba(255, 255, 255, .5) !important; }
.tm-contact .tm-form input:hover,
.tm-contact .tm-form textarea:hover { border-color: rgba(255, 255, 255, .5); }
.tm-contact .tm-form input:focus,
.tm-contact .tm-form textarea:focus {
	border-color: var(--tm-teal);
	background: rgba(255, 255, 255, .11);
	box-shadow: 0 0 0 3px rgba(76, 167, 157, .32);
	color: #fff !important;
}
.tm-contact .tm-form input.error,
.tm-contact .tm-form textarea.error { border-color: #ff9a8f; }
.tm-contact .tm-form label.error { color: #ff9a8f !important; }
.tm-contact .tm-form-note { color: rgba(255, 255, 255, .62) !important; }
.tm-contact .tm-form-note a { color: #fff !important; }

@media (max-width: 1024px) {
	.tm-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.tm-form { grid-template-columns: 1fr; }
	.tm-form-foot { flex-direction: column-reverse; align-items: stretch; }
	.tm-form-note { flex-basis: auto; }
	.tm-btn { width: 100%; }
}


/* 6. Titoli: livello corretto, stesso aspetto
   ==========================================================================
   Il tema da' la misura ai titoli in base al tag (h3, h4, h5). Dove un titolo
   di sezione e' diventato <h2> per avere una gerarchia leggibile dai motori di
   ricerca, queste classi gli lasciano la misura che aveva. */
.tm-h3 { font-size: calc(1.6rem + 2vw); line-height: calc(1rem + 2.5vw); }
.tm-h4 { font-size: calc(1.05rem + 1vw); line-height: calc(1rem + 1.3vw); }
.tm-h5 { font-size: calc(1rem + 0.6vw); line-height: calc(1rem + 1.5vw); }
div.tm-h4 { margin-bottom: 20px; font-weight: 500; }

/* home: l'<h1> contiene nome e sottotitolo; l'aspetto resta quello dei due elementi */
.tm-home-h1 {
	display: block;
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}
.tm-home-h1 > .hero-title,
.tm-home-h1 > .hero-subtitle { display: block; }

/* 7. Pagina Contatti e come arrivare (contatti.php)
   ==========================================================================
   Testo scuro su bianco: e' una pagina da leggere, non d'atmosfera. */
.tm-info { text-align: left; }
.tm-info p,
.tm-info li,
.tm-info dd,
.tm-info address {
	color: #46545f !important;
	font-family: var(--tm-ui);
	font-size: 17px;
	font-style: normal;
	line-height: 1.75;
}
.tm-info p { margin: 0 0 14px; }
.tm-info h2 { margin: 0 0 14px; color: var(--tm-teal-dark) !important; }
.tm-info p.tm-info-intro {
	max-width: 900px;
	margin: 0 0 clamp(28px, 4vw, 48px);
	color: var(--tm-ink) !important;
	font-size: clamp(19px, 1rem + .6vw, 24px);
	line-height: 1.6;
}

.tm-info-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
}
.tm-info-text h2:not(:first-child) { margin-top: 34px; }

/* scheda con i recapiti */
.tm-info-card {
	padding: clamp(22px, 3vw, 36px);
	border: 1px solid #dfe6e6;
	border-radius: 14px;
	background: #f3f6f6;
}
.tm-info-list { margin: 0; }
.tm-info-list > div { padding: 14px 0; border-top: 1px solid #dfe6e6; }
.tm-info-list > div:first-child { padding-top: 0; border-top: 0; }
.tm-info-list dt {
	margin: 0 0 4px;
	color: var(--tm-teal-dark) !important;
	font-family: var(--tm-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}
.tm-info .tm-info-list dd,
.tm-info .tm-info-list address { margin: 0; color: var(--tm-ink) !important; font-size: 18px; line-height: 1.5; }
.tm-info-list a { color: var(--tm-ink) !important; text-decoration: none; }
.tm-info-list a:hover { color: var(--tm-teal-dark) !important; }
.tm-info p.tm-info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 0; }
.tm-info-link {
	color: var(--tm-teal-dark) !important;
	font-family: var(--tm-ui);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.tm-info-link:hover { color: var(--tm-ink) !important; }

/* "In breve" e domande frequenti */
.tm-info h2.tm-info-title {
	margin-top: clamp(40px, 6vw, 76px);
	padding-top: clamp(28px, 4vw, 44px);
	border-top: 1px solid #dfe6e6;
}
.tm-info-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tm-info-facts li { position: relative; margin: 0; padding-left: 22px; }
.tm-info-facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .7em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tm-teal);
}
.tm-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.tm-info h3.tm-faq-q {
	margin: 0 0 8px;
	color: var(--tm-ink) !important;
	font-family: var(--tm-ui);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}
.tm-info p.tm-faq-a { margin: 0; }
.tm-faq-a a { color: var(--tm-teal-dark) !important; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
	.tm-info-grid,
	.tm-info-facts,
	.tm-faq { grid-template-columns: 1fr; }
}

/* 8. Form "Richiesta evento" (_form_richiesta_evento.php)
   ==========================================================================
   Stesso linguaggio del form contatti della home: etichette piccole in
   maiuscolo, campi pieni con bordo netto, pulsante "pill". Il file del form ha
   un suo <style> minimo (solo disposizione): qui i selettori partono da
   .er-wrap per avere la precedenza su quello. */
.er-wrap .er-form .er-field > label:not(.er-check),
.er-wrap .er-form legend {
	margin: 0 0 8px;
	color: var(--tm-slate) !important;
	font-family: var(--tm-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}
.er-wrap .er-form .er-field { margin-bottom: 20px; }
.er-wrap .er-form .er-section {
	margin: 34px 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dfe6e6;
	color: var(--tm-teal-dark) !important;
}
.er-wrap .er-form .er-section:first-of-type { margin-top: 10px; }

.er-wrap .er-form input[type="text"],
.er-wrap .er-form input[type="email"],
.er-wrap .er-form input[type="tel"],
.er-wrap .er-form input[type="number"],
.er-wrap .er-form input[type="date"],
.er-wrap .er-form select,
.er-wrap .er-form textarea {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #c3ccd3;
	border-radius: 8px;
	background-color: #f6f8f9;
	color: var(--tm-ink) !important;
	font-family: var(--tm-ui);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	box-sizing: border-box;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.er-wrap .er-form textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; }
.er-wrap .er-form ::placeholder { color: #7d8a93 !important; opacity: 1; }
.er-wrap .er-form input:not([type="checkbox"]):not([type="radio"]):hover,
.er-wrap .er-form select:hover,
.er-wrap .er-form textarea:hover { border-color: #8a98a3; }
.er-wrap .er-form input:not([type="checkbox"]):not([type="radio"]):focus,
.er-wrap .er-form select:focus,
.er-wrap .er-form textarea:focus {
	border-color: var(--tm-teal-dark);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(76, 167, 157, .28);
}
.er-wrap .er-form .er-has-error input:not([type="checkbox"]):not([type="radio"]),
.er-wrap .er-form .er-has-error select,
.er-wrap .er-form .er-has-error textarea { border-color: #c0392b; }
.er-wrap .er-form .er-check input[type="checkbox"],
.er-wrap .er-form .er-check input[type="radio"] { accent-color: var(--tm-teal-dark); }
.er-wrap .er-form .er-check,
.er-wrap .er-form .er-check span { color: #46545f !important; font-family: var(--tm-ui); font-size: 16px; line-height: 1.5; }
.er-wrap .er-form .er-check a { color: var(--tm-teal-dark) !important; text-decoration: underline; text-underline-offset: 3px; }
.er-wrap .er-form .er-hint { color: #5b6973 !important; }

/* pulsante di invio: lo stesso "pill" del form contatti */
.er-wrap .er-form .er-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	margin-top: 14px;
	padding: 0 40px;
	border: 1px solid var(--tm-teal-dark);
	border-radius: 999px;
	background: var(--tm-teal-dark);
	color: #fff !important;
	font-family: var(--tm-ui);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .25s ease, border-color .25s ease, opacity .2s ease;
}
.er-wrap .er-form .er-submit:hover { background: var(--tm-teal-mid); border-color: var(--tm-teal-mid); }
.er-wrap .er-form .er-submit:focus-visible { outline: 2px solid var(--tm-teal-dark); outline-offset: 3px; }
.er-wrap .er-form .er-submit[disabled] { opacity: .6; cursor: progress; }
.er-wrap .er-success { border-color: var(--tm-teal-dark); border-radius: 8px; }

@media (max-width: 600px) {
	.er-wrap .er-form .er-submit { width: 100%; }
}
