/* ==========================================================================
   Le Due Torrette — stili base del tema
   --------------------------------------------------------------------------
   REGOLE (vedi GUIDA-TEMA.md):
   - Nessun !important.
   - Colori e font arrivano dalle variabili globali di Elementor
     (Elementor > Impostazioni del sito > Colori / Font globali) tramite gli alias --ldt-*.
   - Gli stili degli elementi HTML (h1, p, a...) sono dentro :where() = specificità zero,
     così qualsiasi impostazione di Elementor (sito o widget) li sovrascrive.
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */
body {
	--ldt-heading: var(--e-global-color-primary, #222222);
	--ldt-dark: var(--e-global-color-secondary, #0C0C0C);
	--ldt-text: var(--e-global-color-text, #000000);
	--ldt-accent: var(--e-global-color-accent, #A8B593);
	--ldt-light: var(--e-global-color-ldtlight, #F1F2EC);
	--ldt-white: var(--e-global-color-ldtwhite, #FFFFFF);
	--ldt-muted: var(--e-global-color-ldtgrey, #BBBBBB);

	--ldt-font-head: var(--e-global-typography-primary-font-family, "Montserrat"), "Helvetica Neue", Arial, sans-serif;
	--ldt-font-serif: var(--e-global-typography-secondary-font-family, "Playfair Display"), Georgia, serif;
	--ldt-font-body: var(--e-global-typography-text-font-family, "Montserrat"), "Helvetica Neue", Arial, sans-serif;
	--ldt-font-accent: var(--e-global-typography-accent-font-family, "Playfair Display"), Georgia, serif;

	--ldt-container: 1440px;
	--ldt-gutter: clamp(20px, 4vw, 40px);
	--ldt-header-h: 76px;
	--ldt-ease: cubic-bezier(.77, 0, .175, 1);
	--ldt-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. Reset leggero + tipografia (specificità zero) ----------------------- */
:where(*, *::before, *::after) { box-sizing: border-box; }

:where(body) {
	margin: 0;
	background: var(--ldt-white);
	color: var(--ldt-text);
	font-family: var(--ldt-font-body);
	font-size: 15px;
	line-height: 1.8;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 .6em;
	color: var(--ldt-heading);
	font-family: var(--ldt-font-head);
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1.2;
}
:where(h1) { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: .12em; font-weight: 300; }
:where(h2) { font-size: clamp(26px, 2.7vw, 40px); letter-spacing: .12em; font-weight: 300; line-height: 1.15; }
:where(h3) { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: .1em; }
:where(h4) { font-size: clamp(17px, 1.5vw, 20px); letter-spacing: .1em; }
:where(h5) { font-size: 17px; letter-spacing: .1em; }
:where(h6) { font-size: 13px; letter-spacing: .14em; font-weight: 500; }

:where(p) { margin: 0 0 1em; }
:where(a) { color: inherit; text-decoration: none; transition: color .3s ease; }
:where(a:hover) { color: var(--ldt-accent); }
:where(img) { max-width: 100%; height: auto; vertical-align: middle; }
:where(strong, b) { font-weight: 600; }
:where(em) { font-style: italic; }
:where(::selection) { background: var(--ldt-accent); color: var(--ldt-white); }

:where(:focus-visible) { outline: 2px solid var(--ldt-accent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ldt-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ldt-white); padding: 10px 16px; }
.ldt-skip:focus { left: 8px; }

.ldt-container {
	width: 100%;
	max-width: calc(var(--ldt-container) + var(--ldt-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ldt-gutter);
}

.ldt-main { display: block; padding-top: var(--ldt-header-h); min-height: 60vh; }

.ldt-rule { display: block; width: 40px; height: 1px; background: var(--ldt-heading); margin: 1.2em 0 1.4em; }

/* Pulsante del tema (widget + pagine non Elementor). Il pulsante nativo Elementor si stila da Elementor. */
.ldt-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .8em;
	padding: 14px 34px;
	border: 1px solid currentColor;
	background: transparent;
	color: var(--ldt-heading);
	font-family: var(--ldt-font-serif);
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: .02em;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: color .45s var(--ldt-ease), border-color .45s var(--ldt-ease);
}
.ldt-btn::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: var(--ldt-accent);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .55s var(--ldt-ease);
}
.ldt-btn:hover { color: var(--ldt-white); border-color: var(--ldt-accent); }
.ldt-btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.ldt-btn--light { color: var(--ldt-white); }
.ldt-btn--small { padding: 8px 16px; font-size: 12px; }

/* Pulsante nativo Elementor: stesso look di .ldt-btn.
   Sovrascrive solo lo stile base di Elementor (grigio); le impostazioni del widget
   e di Impostazioni del sito > Pulsanti hanno selettori più specifici e vincono. */
.elementor-button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: transparent;
	color: var(--ldt-heading);
	fill: currentColor;
	border: 1px solid currentColor;
	font-family: var(--ldt-font-serif);
	transition: color .45s var(--ldt-ease), border-color .45s var(--ldt-ease), background-color .45s var(--ldt-ease);
}
.elementor-button:hover, .elementor-button:focus, .elementor-button:visited { color: var(--ldt-heading); }
.elementor-button::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: var(--ldt-accent);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .55s var(--ldt-ease);
}
.elementor-button:hover::before { transform: scaleX(1); transform-origin: left center; }
.elementor-button:hover { color: var(--ldt-white); border-color: var(--ldt-accent); }
.elementor-button.elementor-size-sm { padding: 14px 34px; font-size: 14px; border-radius: 0; line-height: 1.3; letter-spacing: .02em; }

/* Regole richieste da Lenis (attive solo se lo smooth scroll è acceso in Personalizza) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* 3. Sipario di caricamento ---------------------------------------------- */
.ldt-loader {
	position: fixed; inset: 0; z-index: 9999;
	display: grid; place-items: center; align-content: center; gap: 22px;
	background: var(--ldt-light);
	transition: clip-path 1.1s var(--ldt-ease);
	clip-path: inset(0 0 0 0);
	pointer-events: none;
}
.ldt-loader__logo { opacity: 0; transform: translateY(14px); animation: ldt-loader-in .9s var(--ldt-ease-out) .1s forwards; }
.ldt-loader__logo img { width: 200px; height: auto; }
.ldt-loader__line { display: block; width: 120px; height: 1px; background: var(--ldt-accent); transform: scaleX(0); transform-origin: left; animation: ldt-loader-line 1.2s var(--ldt-ease) .2s forwards; }
body.ldt-loaded .ldt-loader { clip-path: inset(0 0 100% 0); }
@keyframes ldt-loader-in { to { opacity: 1; transform: none; } }
@keyframes ldt-loader-line { to { transform: scaleX(1); } }

/* 4. Header ----------------------------------------------------------------- */
.ldt-header {
	position: fixed; inset: 0 0 auto 0; z-index: 900;
	background: var(--ldt-white);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	transition: transform .6s var(--ldt-ease), box-shadow .4s ease;
}
.admin-bar .ldt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ldt-header { top: 46px; } }
.ldt-header.is-scrolled { box-shadow: 0 6px 30px rgba(0, 0, 0, .05); }
.ldt-header.is-hidden { transform: translateY(-110%); }
.ldt-header__bar { height: var(--ldt-header-h); display: flex; align-items: center; justify-content: space-between; }
.ldt-header__logo { display: inline-flex; align-items: center; }
.ldt-header__logo img { width: auto; max-height: 44px; transition: max-height .4s ease; }
.ldt-header__sitename { font-family: var(--ldt-font-head); letter-spacing: .2em; text-transform: uppercase; font-size: 18px; color: var(--ldt-heading); }

.ldt-burger {
	position: relative; width: 44px; height: 44px; margin-right: -10px;
	border: 0; background: none; cursor: pointer; color: var(--ldt-heading);
}
.ldt-burger__line {
	position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
	transition: transform .5s var(--ldt-ease), background-color .3s ease, width .4s var(--ldt-ease);
}
.ldt-burger__line:nth-of-type(2) { top: 18px; }
.ldt-burger__line:nth-of-type(3) { top: 25px; }
.ldt-burger:hover { color: var(--ldt-accent); }
.ldt-burger[aria-expanded="true"] { color: var(--ldt-accent); }
.ldt-burger[aria-expanded="true"] .ldt-burger__line:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.ldt-burger[aria-expanded="true"] .ldt-burger__line:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu a tendina */
.ldt-menu {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--ldt-white);
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	transition: clip-path .8s var(--ldt-ease), visibility 0s linear .8s;
	max-height: calc(100vh - var(--ldt-header-h));
	overflow-y: auto;
}
.ldt-header.is-open .ldt-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ldt-ease); }
.ldt-menu__inner { padding-top: 6px; padding-bottom: 28px; }
.ldt-nav, .ldt-nav ul, .ldt-menu .menu ul { list-style: none; margin: 0; padding: 0; }
.ldt-nav > li {
	position: relative;
	opacity: 0; transform: translateY(18px);
	transition: opacity .5s ease, transform .7s var(--ldt-ease-out);
}
.ldt-header.is-open .ldt-nav > li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .055s); }
.ldt-nav a {
	display: inline-block; padding: 7px 0;
	font-family: var(--ldt-font-head); font-size: 15px; letter-spacing: .02em; color: var(--ldt-heading);
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	transition: color .3s ease, background-size .5s var(--ldt-ease);
}
.ldt-nav a:hover, .ldt-nav .current-menu-item > a, .ldt-nav .current-menu-ancestor > a { color: var(--ldt-accent); }
.ldt-nav a:hover { background-size: 100% 1px; }
.ldt-nav .sub-menu { overflow: hidden; max-height: 0; padding-left: 18px; transition: max-height .6s var(--ldt-ease); }
.ldt-nav .sub-menu a { font-size: 13px; color: #464646; }
.ldt-nav li.is-expanded > .sub-menu { max-height: 600px; }
.ldt-nav .ldt-sub-toggle {
	position: absolute; right: 0; top: 2px; width: 40px; height: 36px;
	border: 0; background: none; cursor: pointer; color: #999;
	transition: transform .4s var(--ldt-ease), color .3s;
}
.ldt-nav .ldt-sub-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); }
.ldt-nav li.is-expanded > .ldt-sub-toggle { transform: rotate(90deg); color: var(--ldt-accent); }

.ldt-langs { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 0 0; margin: 0; }
.ldt-langs a { display: inline-flex; align-items: center; min-height: 32px; opacity: .55; transition: opacity .3s ease, transform .3s var(--ldt-ease-out); }
.ldt-langs a:hover, .ldt-langs .current-lang a { opacity: 1; }
.ldt-langs a:hover { transform: translateY(-1px); }

/* Menu orizzontale sempre visibile sui monitor grandi */
@media (min-width: 1025px) {
	body { --ldt-header-h: 88px; }
	.ldt-burger { display: none; }
	.ldt-header__logo img { max-height: 52px; }
	.ldt-header__bar { gap: 40px; }
	.ldt-menu {
		position: static;
		flex: 1 1 auto;
		max-height: none;
		overflow: visible;
		background: none;
		clip-path: none;
		visibility: visible;
		transition: none;
	}
	.ldt-menu__inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; max-width: none; padding: 0; }
	.ldt-nav { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 44px); }
	.ldt-nav > li { opacity: 1; transform: none; transition: none; }
	.ldt-nav > li > a {
		display: flex; align-items: center; gap: 6px;
		height: var(--ldt-header-h);
		padding: 0;
		font-size: 15px; letter-spacing: .04em; white-space: nowrap;
		background-position: left calc(50% + 12px);
	}
	.ldt-nav > .menu-item-has-children > a::after {
		content: ""; width: 5px; height: 5px; margin-top: -3px;
		border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
		transform: rotate(45deg); opacity: .6;
	}
	.ldt-nav .ldt-sub-toggle { display: none; }
	.ldt-nav .sub-menu {
		position: absolute; top: 100%; left: -22px; z-index: 2;
		min-width: 210px; max-height: none; overflow: visible;
		padding: 14px 22px 16px;
		background: var(--ldt-white);
		border-top: 1px solid var(--ldt-accent);
		box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
		opacity: 0; visibility: hidden; transform: translateY(10px);
		transition: opacity .35s ease, transform .45s var(--ldt-ease-out), visibility 0s linear .45s;
	}
	.ldt-nav li:hover > .sub-menu,
	.ldt-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .45s var(--ldt-ease-out); }
	.ldt-nav .sub-menu a { display: block; padding: 8px 0; font-size: 14px; white-space: nowrap; }
	.ldt-langs { padding: 0 0 0 26px; border-left: 1px solid rgba(0, 0, 0, .12); gap: 12px; }
	.ldt-menu-backdrop { display: none; }
}
/* La barra non deve schiacciare le voci: sotto i 1025px resta l'hamburger */
@media (min-width: 1025px) and (max-width: 1199px) {
	.ldt-header__bar { gap: 24px; }
	.ldt-nav { gap: 18px; }
	.ldt-nav > li > a { font-size: 13px; letter-spacing: .02em; }
}
@media (min-width: 1025px) and (max-width: 1099px) {
	.ldt-nav { gap: 14px; }
	.ldt-langs { padding-left: 18px; gap: 10px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
	.ldt-nav { gap: 26px; }
	.ldt-nav > li > a { font-size: 14px; }
}

.ldt-menu-backdrop {
	position: fixed; inset: 0; z-index: 800;
	background: rgba(12, 12, 12, .35);
	opacity: 0; visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
	backdrop-filter: blur(2px);
}
body.ldt-menu-open .ldt-menu-backdrop { opacity: 1; visibility: visible; transition: opacity .6s ease; }

/* 5. Breadcrumb ----------------------------------------------------------- */
.ldt-breadcrumbs { padding: 34px 0 30px; font-family: var(--ldt-font-serif); font-size: 12px; color: #464646; }
.ldt-breadcrumbs a:hover { color: var(--ldt-accent); }
.ldt-breadcrumbs__sep { margin: 0 .6em; color: var(--ldt-muted); }
.ldt-breadcrumbs span:last-child { color: var(--ldt-heading); }

/* 6. Footer ----------------------------------------------------------------- */
.ldt-footer { position: relative; z-index: 1; }
.ldt-footer-fallback { background: var(--ldt-dark); color: var(--ldt-white); padding: 40px 0; font-size: 13px; }
.ldt-footer-fallback a { color: var(--ldt-accent); }

.ldt-totop {
	position: fixed; right: 18px; bottom: 34px; z-index: 700;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	border: 0; background: none; cursor: pointer; padding: 6px;
	color: var(--ldt-heading);
	font-family: var(--ldt-font-head); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	opacity: 0; transform: translateY(20px); pointer-events: none;
	transition: opacity .5s ease, transform .6s var(--ldt-ease-out), color .3s;
	/* niente mix-blend-mode su elementi fissi: costringe a ridisegnare la pagina a ogni frame di scroll */
	padding: 12px 6px;
	background: rgba(255, 255, 255, .85);
}
.ldt-totop span { writing-mode: vertical-rl; transform: rotate(180deg); }
.ldt-totop::after { content: ""; width: 1px; height: 34px; background: currentColor; transform-origin: top; transition: transform .5s var(--ldt-ease); }
.ldt-totop:hover::after { transform: scaleY(.4); }
.ldt-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* 7. Contenuti non Elementor (pagine semplici, articoli) ----------------- */
.ldt-page { padding-block: 20px 80px; }
.ldt-prose { max-width: 75ch; }
.ldt-prose :where(h2, h3, h4) { margin-top: 1.6em; }
.ldt-prose :where(a) { color: var(--ldt-heading); font-weight: 600; background: linear-gradient(var(--ldt-accent), var(--ldt-accent)) left bottom / 100% 1px no-repeat; }
.ldt-prose :where(a:hover) { color: var(--ldt-accent); }
.ldt-prose :where(ul, ol) { padding-left: 1.2em; }
.ldt-prose :where(blockquote) { margin: 1.5em 0; padding-left: 1.2em; border-left: 1px solid var(--ldt-accent); font-family: var(--ldt-font-serif); font-style: italic; font-size: 1.15em; }

.ldt-post-meta { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; font-family: var(--ldt-font-serif); font-size: 12px; color: var(--ldt-heading); margin-bottom: .7em; }
.ldt-post-meta a:hover { color: var(--ldt-accent); }
.ldt-post-meta__sep { color: var(--ldt-muted); }

.ldt-single { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(30px, 6vw, 80px); padding-block: 10px 100px; }
.ldt-single__media { margin-bottom: 26px; overflow: hidden; }
.ldt-single__media img { width: 100%; }
.ldt-single__title { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 0; }
.ldt-single__content { max-width: none; }
.ldt-single__content .elementor { margin-top: 10px; }
.ldt-share { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 50px; padding-top: 20px; border-top: 1px solid #eee; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ldt-share span { color: var(--ldt-muted); }
.ldt-share a:hover { color: var(--ldt-accent); }

.ldt-sidebar { font-size: 13px; }
.ldt-widget { margin-bottom: 44px; }
.ldt-widget__title { font-size: 15px; letter-spacing: .15em; margin-bottom: 18px; }
.ldt-search { display: flex; border-bottom: 1px solid #ddd; }
.ldt-search input { flex: 1; min-width: 0; border: 0; padding: 10px 0; font: inherit; background: none; }
.ldt-search input:focus { outline: none; }
.ldt-search button { border: 0; background: none; font-family: var(--ldt-font-serif); cursor: pointer; padding: 0 0 0 10px; color: var(--ldt-heading); }
.ldt-search button:hover { color: var(--ldt-accent); }
.ldt-recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ldt-recent li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.ldt-recent__thumb img { width: 64px; height: 64px; object-fit: cover; }
.ldt-recent time { display: block; font-family: var(--ldt-font-serif); font-size: 11px; color: #777; }
.ldt-recent__title { font-family: var(--ldt-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; line-height: 1.4; }

.ldt-archive { padding-block: 0 100px; }
.ldt-archive__title { margin-bottom: 40px; }
.ldt-pagination { margin-top: 50px; }
.ldt-pagination .nav-links { display: flex; gap: 6px; }
.ldt-pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid #e3e3e3; font-size: 13px; }
.ldt-pagination .current, .ldt-pagination a:hover { border-color: var(--ldt-accent); color: var(--ldt-accent); }

.ldt-portfolio { padding-bottom: 100px; }
.ldt-portfolio__hero { overflow: hidden; aspect-ratio: 16 / 6; }
.ldt-portfolio__hero img { width: 100%; height: 100%; object-fit: cover; }
.ldt-portfolio__intro { padding-block: 40px 60px; }
.ldt-portfolio__text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34ch; color: var(--ldt-heading); }
.ldt-portfolio__gallery { padding-inline: 0; }

.ldt-404 { padding-block: 40px 120px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.ldt-404__code { font-family: var(--ldt-font-serif); font-size: clamp(90px, 16vw, 200px); line-height: 1; color: var(--ldt-light); margin: 0; }
.ldt-404 .ldt-search { width: min(360px, 100%); margin: 10px 0 20px; }

/* 8. Contact Form 7 --------------------------------------------------------- */
:where(.wpcf7) { --ldt-field-line: #cfcfcf; }
:where(.wpcf7-form) { display: grid; gap: 22px; }
:where(.wpcf7-form .ldt-form-row) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
:where(.wpcf7-form label) { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ldt-heading); }
:where(.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="date"], .wpcf7-form input[type="number"], .wpcf7-form select, .wpcf7-form textarea) {
	width: 100%; margin-top: 8px; padding: 10px 0;
	border: 0; border-bottom: 1px solid var(--ldt-field-line); border-radius: 0;
	background: transparent; color: var(--ldt-text);
	font-family: var(--ldt-font-body); font-size: 14px; letter-spacing: normal; text-transform: none;
	transition: border-color .3s ease;
}
:where(.wpcf7-form textarea) { min-height: 130px; resize: vertical; }
:where(.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus) { outline: none; border-bottom-color: var(--ldt-accent); }
:where(.wpcf7-form .wpcf7-acceptance, .wpcf7-form .wpcf7-acceptance label) { font-size: 12px; text-transform: none; letter-spacing: normal; color: var(--ldt-text); }
:where(.wpcf7-form .wpcf7-list-item) { margin: 0; }
:where(.wpcf7-form .wpcf7-acceptance input) { accent-color: var(--ldt-accent); margin-right: 8px; }
:where(.wpcf7-form .wpcf7-submit) {
	justify-self: start; padding: 13px 34px; border: 1px solid var(--ldt-heading); background: var(--ldt-heading); color: var(--ldt-white);
	font-family: var(--ldt-font-serif); font-size: 14px; cursor: pointer; transition: background-color .4s ease, border-color .4s ease;
}
:where(.wpcf7-form .wpcf7-submit:hover) { background: var(--ldt-accent); border-color: var(--ldt-accent); }
:where(.wpcf7-not-valid-tip) { font-size: 12px; margin-top: 6px; color: #b3261e; text-transform: none; letter-spacing: normal; }
:where(.wpcf7 form .wpcf7-response-output) { margin: 0; padding: 12px 16px; border-width: 1px; font-size: 13px; }
:where(.wpcf7-spinner) { margin: 0 0 0 12px; }

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
	.ldt-single { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	body { --ldt-header-h: 64px; }
	.ldt-header__logo img { max-height: 36px; }
	.ldt-nav a { font-size: 17px; padding: 9px 0; }
	:where(.wpcf7-form .ldt-form-row) { grid-template-columns: minmax(0, 1fr); }
	.ldt-totop { display: none; }

	/* Aree touch di almeno 44px su telefono */
	.ldt-breadcrumbs { padding: 18px 0 14px; }
	.ldt-breadcrumbs a, .ldt-breadcrumbs span:last-child { display: inline-block; padding: 12px 0; }
	.ldt-post-meta a { display: inline-block; padding: 12px 0; }
	.ldt-share a { padding: 12px 0; }
	.ldt-footer .elementor-icon-list-item > a { padding-block: 10px; }
	.ldt-header__logo { min-height: 44px; }
	.ldt-insta .ldt-btn { min-height: 44px; }
	.ldt-footer .elementor-social-icon, .ldt-main .elementor-social-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	.ldt-burger { width: 48px; height: 48px; }
	.ldt-burger__line:nth-of-type(2) { top: 20px; }
	.ldt-burger__line:nth-of-type(3) { top: 27px; }
}

/* Telefoni piccoli (≤ 400px): titoli più compatti, niente parole che escono dalla colonna */
@media (max-width: 400px) {
	:where(h1) { font-size: 26px; letter-spacing: .06em; }
	:where(h2) { font-size: 21px; letter-spacing: .07em; }
	:where(h3) { font-size: 18px; letter-spacing: .07em; }
	:where(h4) { font-size: 16px; letter-spacing: .07em; }
	.ldt-header__logo img { max-height: 32px; }
}

/* 10. Movimento ridotto ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ldt-loader { display: none; }
	.ldt-header, .ldt-menu, .ldt-nav > li, .ldt-btn::before { transition-duration: .01ms; }
}
