/* TnD theme — main.css
 * Valori derivati dall'HTML/CSS reali del sito originale tnd.sviluppokeyweb.com (Divi).
 * Mobile-first, font self-hostati, niente CDN esterne.
 */

/* === Self-hosted fonts === */
@font-face {
	font-family: 'Exo 2';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/exo2-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Exo 2';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/exo2-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('../fonts/manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/opensans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/opensans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Encode Sans Semi Condensed';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/encodesc-400-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Encode Sans Semi Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/encodesc-700-latin.woff2') format('woff2');
}

/* === Tokens (derivati dall'originale) === */
:root {
	--c-primary:        #84bf42; /* verde brand */
	--c-primary-hover:  #a5d36a;
	--c-primary-dark:   #5e9a30; /* uso per testo link su bianco — AA */
	--c-slate:          #3e4d52; /* footer, kicker scuro */
	--c-slate-2:        #495f68; /* header semi-trasparente base */
	--c-slate-darker:   #2c3d49;

	--c-bg:        #ffffff;
	--c-bg-alt:    #f2f2f2;
	--c-bg-card:   #fcfcfc;
	--c-cream:     #d8d7c9;
	--c-cream-2:   #e8e6d7;

	--c-fg:        #000000;
	--c-fg-body:   #666666;     /* body color originale */
	--c-fg-muted:  #495159;
	--c-border:    #e3e3e3;

	/* Tipografia (Divi originale) */
	--ff-body:    'Open Sans', Arial, sans-serif;          /* body Divi default */
	--ff-display: 'Exo 2', Helvetica, Arial, Lucida, sans-serif;
	--ff-alt:     'Manrope', Helvetica, Arial, Lucida, sans-serif;
	--ff-footer-h:'Encode Sans Semi Condensed', Helvetica, Arial, sans-serif;

	/* Spacing scale */
	--space-1: .25rem;
	--space-2: .5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;
	--space-7: 4rem;
	--space-8: 6rem;
	--space-9: 8rem;

	--radius-sm: 3px;       /* Divi default */
	--radius-md: 6px;
	--radius-lg: 12px;

	--shadow-sm:    0 1px 3px rgba(0,0,0,.08);
	--shadow-md:    0 6px 18px rgba(0,0,0,.1);
	--shadow-lg:    0 18px 40px rgba(0,0,0,.14);
	--shadow-header:0 2px 18px rgba(0,0,0,.3);
	--shadow-float: 0 2px 18px rgba(0,0,0,.16);
	--shadow-icon:  0 2px 4px rgba(0,0,0,.22);

	--container:        1080px;     /* Divi standard */
	--container-narrow: 800px;

	--header-height:    141px;      /* del Divi originale, per overlap hero */
	--logo-w-header:    120px;
	--logo-h-header:    auto;
	--logo-h-footer:    140px;
	--logo-maxw-header: 160px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ff-body);
	color: var(--c-fg-body);
	background: var(--c-bg);
	font-size: 14px;
	line-height: 1.7em;
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover, a:focus { color: var(--c-primary-dark); text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff-display);
	font-weight: 700;
	line-height: 1.2em;
	margin: 0 0 var(--space-3);
	color: #000;
	text-transform: uppercase;
}
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
::selection { background: var(--c-primary); color: #fff; }

/* === Accessibility === */
.tnd-skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.tnd-skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; padding: .75rem 1rem; background: #000; color: #fff; z-index: 10000; border-radius: var(--radius-sm); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 2px; }

/* === Layout === */
.tnd-container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .tnd-container { padding: 0 30px; } }
.tnd-section { padding: var(--space-6) 0; }
@media (min-width: 768px) { .tnd-section { padding: var(--space-8) 0; } }
.tnd-section--narrow { max-width: var(--container-narrow); margin: 0 auto; }
.tnd-section__center { text-align: center; }
.tnd-section__head { margin-bottom: var(--space-5); text-align: center; }

/* H2 di sezione (testo nero in pagine chiare, come Divi text_5_h2) */
.tnd-section__title {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 38px;
	color: #000;
	margin: 0 0 var(--space-3);
}
@media (max-width: 980px) { .tnd-section__title { font-size: 30px; } }
@media (max-width: 767px) { .tnd-section__title { font-size: 26px; } }

.tnd-section__text {
	font-family: var(--ff-alt);
	font-size: 18px;
	color: var(--c-fg-body);
	line-height: 1.7em;
}
@media (max-width: 980px) { .tnd-section__text { font-size: 16px; } }

.tnd-section--dark { background: var(--c-slate); color: #fff; }
.tnd-section--dark .tnd-section__title,
.tnd-section--dark .tnd-section__text,
.tnd-section--dark p { color: #fff; }

/* Kicker (sopra-titolo) — usato sui cards/sezioni interne, NON sull'hero home */
.tnd-kicker {
	display: block;
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 10px;
	font-size: 18px;
	color: var(--c-slate);
	margin: 0 0 var(--space-3);
}
.tnd-section--dark .tnd-kicker { color: #fff; }

/* === Header (Divi-like: trasparente slate sopra hero) === */
.site-header {
	position: absolute; /* sovrappone hero */
	top: 0; left: 0; right: 0;
	z-index: 10;
	background: rgba(73, 95, 104, .75);
	color: #fff;
	box-shadow: var(--shadow-header);
}
.site-header.is-sticky { position: fixed; }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem;
	padding: 20px 30px;
	max-width: var(--container);
	margin: 0 auto;
}
.site-header__brand {
	display: inline-flex; align-items: center;
	color: #fff; text-decoration: none;
}
.site-header__brand img,
.site-header__brand .custom-logo {
	width: var(--logo-w-header);
	max-width: 100%;
	height: auto;
}

.primary-menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; color: #fff; border: 0;
	padding: .5rem; cursor: pointer;
}
.primary-menu-toggle__icon {
	display: inline-block; width: 24px; height: 2px; background: currentColor; position: relative;
}
.primary-menu-toggle__icon::before,
.primary-menu-toggle__icon::after {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease;
}
.primary-menu-toggle__icon::before { top: -7px; }
.primary-menu-toggle__icon::after  { top: 7px; }
.primary-menu-toggle[aria-expanded="true"] .primary-menu-toggle__icon { background: transparent; }
.primary-menu-toggle[aria-expanded="true"] .primary-menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.primary-menu-toggle[aria-expanded="true"] .primary-menu-toggle__icon::after  { top: 0; transform: rotate(-45deg); }
.primary-menu-toggle__label { display: none; }

.primary-menu-wrap { display: none; }
.primary-menu-wrap.is-open {
	display: block; position: absolute; left: 0; right: 0; top: 100%;
	background: rgba(62, 77, 82, .96); padding: 1rem 0;
}
.primary-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
	display: block;
	padding: 10px 14px;
	color: #ffffff;
	font-family: var(--ff-body);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	background: transparent;
	transition: opacity 200ms ease;
}
.primary-menu > li > a:hover,
.primary-menu > li > a:focus { opacity: .7; color: #ffffff; }
.primary-menu > li > a[aria-current="page"] { color: #ffffff; }
.primary-menu .submenu-toggle {
	background: transparent; color: #fff; border: 0;
	padding: 8px 10px; line-height: 1; font-size: 11px;
}
.primary-menu .sub-menu { list-style: none; margin: 0; padding: 0; display: none; }
.primary-menu .sub-menu.is-open { display: block; }
.primary-menu .sub-menu a {
	padding: 6px 20px;
	font-size: 14px;
	color: #ffffff;
	font-family: var(--ff-body);
	font-weight: 400;
	text-transform: none;
}

@media (min-width: 1024px) {
	.primary-menu-toggle { display: none; }
	.primary-menu-wrap { display: block; position: static; padding: 0; background: transparent; }
	.primary-menu { display: flex; align-items: center; gap: 0; }
	.primary-menu > li { display: flex; align-items: center; padding-right: 22px; }
	.primary-menu > li:last-child { padding-right: 0; }
	.primary-menu > li > a {
		padding: 0;
		font-size: 14px;
	}
	.primary-menu .sub-menu {
		position: absolute; top: 100%; left: 0;
		min-width: 240px;
		background: #fff;
		box-shadow: var(--shadow-md);
		border-radius: 0 0 var(--radius-sm) var(--radius-sm);
		display: none;
		padding: 20px 0;
		z-index: 100;
	}
	.primary-menu .has-submenu:hover .sub-menu,
	.primary-menu .has-submenu:focus-within .sub-menu,
	.primary-menu .sub-menu.is-open { display: block; }
	.primary-menu .sub-menu a {
		color: #191919;
		padding: 6px 20px;
		font-size: 14px;
		width: 200px;
	}
	.primary-menu .sub-menu a:hover,
	.primary-menu .sub-menu a:focus { background: var(--c-bg-alt); color: #000; }
}

/* === Hero === */
.tnd-hero {
	position: relative;
	color: #fff;
	background: var(--c-slate);
	display: flex; align-items: center;
	overflow: hidden;
	padding-top: var(--header-height);
}
/* Home hero (Divi section_0): 80vh, overlay leggero */
.tnd-hero--full    { min-height: 80vh; padding-top: 140px; }
.tnd-hero--full::after { background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.2)); }
/* Inner pages hero (Divi section_1_tb_body): padding-top 180px, overlay scuro 68% */
.tnd-hero--split   { padding-top: 180px; padding-bottom: var(--space-8); min-height: auto; }
.tnd-hero--split::after { background: rgba(0, 0, 0, .68); }
.tnd-hero--compact { padding-top: 180px; padding-bottom: var(--space-7); min-height: 50vh; }
.tnd-hero--compact::after { background: rgba(0, 0, 0, .68); }
.tnd-hero__bg { position: absolute; inset: 0; z-index: 0; }
.tnd-hero__bg img,
.tnd-hero__bg picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.tnd-hero::after {
	content: "";
	position: absolute; inset: 0;
	z-index: 1;
}
.tnd-hero__inner {
	position: relative; z-index: 2;
	padding: 40px 30px;
	max-width: var(--container); margin: 0 auto; width: 100%;
}

/* HERO title — base */
.tnd-hero__title {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.2em;
	margin: 0 0 .75rem;
}

/* HOME hero (text_0 nel Divi originale): titolo grande con letter-spacing negativo */
.tnd-hero--full .tnd-hero__title {
	font-size: 3.5rem;
	letter-spacing: -2px;
}
@media (max-width: 980px) { .tnd-hero--full .tnd-hero__title { font-size: 3rem; } }
@media (max-width: 767px) { .tnd-hero--full .tnd-hero__title { font-size: 2.5rem; letter-spacing: -1px; } }

/* INNER pages hero (text_0_tb_body h1): 54px, no letter-spacing negativo */
.tnd-hero--split .tnd-hero__title,
.tnd-hero--compact .tnd-hero__title {
	font-size: 54px;
	letter-spacing: 0;
}
@media (max-width: 980px) {
	.tnd-hero--split .tnd-hero__title,
	.tnd-hero--compact .tnd-hero__title { font-size: 42px; }
}
@media (max-width: 767px) {
	.tnd-hero--split .tnd-hero__title,
	.tnd-hero--compact .tnd-hero__title { font-size: 34px; }
}

/* HOME subtitle (text_0 h3): Exo 2 500, NON uppercase, letter-spacing 3px */
.tnd-hero__subtitle {
	font-family: var(--ff-display);
	font-weight: 500;
	text-transform: none;
	font-size: 26px;
	color: #fff;
	letter-spacing: 3px;
	margin: 0 0 var(--space-5);
	max-width: 60ch;
}
@media (max-width: 980px) { .tnd-hero__subtitle { font-size: 22px; } }
@media (max-width: 767px) { .tnd-hero__subtitle { font-size: 20px; } }

/* INNER hero kicker (text_0_tb_body): Manrope 900 35px uppercase, sopra l'h1 */
.tnd-hero__kicker {
	font-family: var(--ff-alt);
	font-weight: 900;
	text-transform: uppercase;
	font-size: 35px;
	color: #fff;
	letter-spacing: 0;
	line-height: 1.1em;
	margin: 0 0 var(--space-2);
}
@media (max-width: 980px) { .tnd-hero__kicker { font-size: 26px; } }
@media (max-width: 767px) { .tnd-hero__kicker { font-size: 22px; } }

.tnd-hero__text {
	font-family: var(--ff-alt);
	font-size: 18px;
	line-height: 1.7em;
	color: rgba(255,255,255,.95);
	margin: 0 0 var(--space-5);
}
@media (max-width: 980px) { .tnd-hero__text { font-size: 16px; } }

.tnd-hero__closing { font-style: italic; opacity: .92; margin-top: var(--space-3); }
.tnd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tnd-cols-2 { display: grid; gap: var(--space-5); align-items: center; }
.tnd-cols-2__media img,
.tnd-cols-2__media picture { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
@media (min-width: 768px) {
	.tnd-cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
}

/* === Bullet list === */
.tnd-bullet-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.tnd-bullet-list__item {
	background: rgba(255,255,255,.06);
	border-left: 4px solid var(--c-primary);
	padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tnd-bullet-list__title {
	display: block;
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 17px;
	color: #fff;
	margin: 0 0 .25rem;
}
.tnd-bullet-list__text { margin: 0; color: rgba(255,255,255,.92); font-size: 15px; }

/* === Card grids === */
.tnd-card-grid { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.tnd-card-grid--cols-2 { grid-template-columns: 1fr; }
.tnd-card-grid--cols-3 { grid-template-columns: 1fr; }
.tnd-card-grid--cols-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.tnd-card-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.tnd-card-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
	.tnd-card-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.tnd-card-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.tnd-card-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.tnd-card { background: var(--c-bg-alt); padding: 2rem; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 1rem; }
.tnd-card--media { padding: 0; overflow: hidden; }
.tnd-card__media img,
.tnd-card__media picture { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tnd-card__body { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.tnd-card__title {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 22px;
	color: #000;
	margin: 0;
}
.tnd-card__text { margin: 0; font-family: var(--ff-alt); font-size: 16px; color: var(--c-fg-body); line-height: 1.7em; }

/* === Article grid === */
.tnd-article-grid { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.tnd-article-grid--cols-2 { grid-template-columns: 1fr; }
.tnd-article-grid--cols-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.tnd-article-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.tnd-article-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.tnd-article-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.tnd-article { background: var(--c-bg-alt); padding: 2rem; border-radius: var(--radius-sm); }
.tnd-article__title { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; font-size: 22px; color: #000; margin: 0 0 var(--space-3); }
.tnd-article__text { font-family: var(--ff-alt); color: var(--c-fg-body); }

/* === Gallery === */
.tnd-gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.tnd-gallery--cols-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .tnd-gallery--cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tnd-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); } }
.tnd-gallery__item img,
.tnd-gallery__item picture { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }

/* === Buttons (Divi exact: 15px 600 verde radius 3px) === */
.tnd-button {
	display: inline-block;
	padding: 15px 50px;
	border-radius: var(--radius-sm);
	font-family: var(--ff-body);
	font-weight: 600;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 1.7em;
	border: 0; cursor: pointer;
	text-decoration: none;
	background: var(--c-primary);
	color: #fff !important;
	transition: background-color 300ms ease, color 300ms ease, border 300ms ease;
}
.tnd-button:hover, .tnd-button:focus {
	background: var(--c-primary-hover);
	color: #fff !important;
	text-decoration: none;
	border-color: #000;
}
.tnd-button--primary { background: var(--c-primary); }
.tnd-button--primary:hover, .tnd-button--primary:focus { background: var(--c-primary-hover); }
.tnd-button--secondary {
	background: #fff; color: var(--c-slate) !important;
	border: 2px solid var(--c-slate);
	padding: 13px 48px;
}
.tnd-button--secondary:hover, .tnd-button--secondary:focus { background: var(--c-slate); color: #fff !important; }
.tnd-button--ghost {
	background: transparent; border: 2px solid currentColor;
	color: var(--c-slate) !important;
	padding: 13px 48px;
}
.tnd-section--dark .tnd-button--ghost,
.tnd-hero .tnd-button--ghost { color: #fff !important; border-color: #fff; }
.tnd-section--dark .tnd-button--ghost:hover,
.tnd-hero .tnd-button--ghost:hover { background: #fff; color: var(--c-slate) !important; }

/* === Sezione contatti riusabile === */
.tnd-section--contatti { background: var(--c-bg-alt); }
.tnd-contatti-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .tnd-contatti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tnd-contatti-grid { grid-template-columns: repeat(4, 1fr); } }
.tnd-contatti-grid__cell { background: #fff; padding: 1.5rem; border-radius: var(--radius-sm); border-top: 4px solid var(--c-primary); }
.tnd-contatti-grid__title { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; font-size: 16px; color: var(--c-slate); margin: 0 0 .5rem; }
.tnd-contatti-grid__cell address,
.tnd-contatti-grid__cell p { font-family: var(--ff-alt); font-size: 15px; color: var(--c-fg-body); font-style: normal; margin: 0; line-height: 1.7em; }
.tnd-contatti-grid__cell a { color: var(--c-primary-dark); }

/* === Info grid (contatti page) === */
.tnd-info-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .tnd-info-grid { grid-template-columns: repeat(3, 1fr); } }
.tnd-info-grid__title { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; font-size: 22px; color: var(--c-slate); margin: 0 0 var(--space-3); border-bottom: 3px solid var(--c-primary); padding-bottom: .5rem; display: inline-block; }
.tnd-info-grid__text { font-family: var(--ff-alt); font-size: 16px; color: var(--c-fg-body); white-space: pre-line; }

/* === Form (CF7) — stile coerente con bottoni Divi === */
.tnd-form-wrap { font-family: var(--ff-body); font-size: 14px; color: var(--c-fg-body); }
.tnd-form-wrap p { margin: 0 0 1rem; }
.tnd-form-wrap label {
	display: block; font-weight: 600; margin: 0 0 .35rem;
	color: var(--c-slate);
	font-size: 14px;
}
.tnd-form-wrap input[type="text"],
.tnd-form-wrap input[type="email"],
.tnd-form-wrap input[type="tel"],
.tnd-form-wrap input[type="url"],
.tnd-form-wrap textarea,
.tnd-form-wrap select {
	width: 100%; padding: 12px 16px;
	border: 1px solid #ccc; border-radius: var(--radius-sm);
	font: inherit; font-size: 15px; color: #000;
	background: #fff;
	transition: border-color 200ms ease;
}
.tnd-form-wrap input:focus,
.tnd-form-wrap textarea:focus,
.tnd-form-wrap select:focus { border-color: var(--c-primary); outline: 2px solid rgba(132,191,66,.25); outline-offset: 0; }
.tnd-form-wrap textarea { min-height: 9rem; resize: vertical; }
.tnd-form-wrap input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-right: .5rem; vertical-align: middle; accent-color: var(--c-primary); }
.tnd-form-wrap .wpcf7-list-item { display: inline-block; margin-right: 1rem; margin-left: 0 !important; }
.tnd-form-wrap .wpcf7-list-item label { display: inline; font-weight: 400; color: var(--c-fg-body); font-size: 15px; text-transform: none; }
.tnd-form-wrap .acceptance-link { color: var(--c-primary-dark); text-decoration: underline; }
.tnd-form-wrap input[type="submit"],
.tnd-form-wrap button[type="submit"],
.tnd-form-wrap .wpcf7-submit {
	background: var(--c-primary); color: #fff !important;
	border: 0; padding: 15px 50px; border-radius: var(--radius-sm);
	font-family: var(--ff-body); font-weight: 600; text-transform: uppercase; font-size: 15px;
	cursor: pointer; transition: background-color 300ms ease;
	letter-spacing: 0;
}
.tnd-form-wrap input[type="submit"]:hover,
.tnd-form-wrap button[type="submit"]:hover,
.tnd-form-wrap .wpcf7-submit:hover { background: var(--c-primary-hover); }
.tnd-form-wrap .wpcf7-response-output {
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--c-slate) !important;
	padding: .85rem 1rem !important;
	margin: 1rem 0 !important;
}
.tnd-form-wrap .wpcf7-not-valid-tip { color: #b32d2e; font-size: .85rem; margin-top: .25rem; }
.tnd-form-wrap .wpcf7-form-control-wrap { display: block; }

/* === Mappa === */
.tnd-mappa-wrap iframe { display: block; width: 100%; }

/* === 404 === */
.tnd-404 { padding: var(--space-9) 1rem; text-align: center; }
.tnd-404__title { font-size: 54px; font-family: var(--ff-display); }
.tnd-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }

/* === Footer === */
.site-footer {
	background: var(--c-slate);
	color: var(--c-cream);
	border-top: 5px solid var(--c-primary);
	font-family: var(--ff-alt);
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1.8em;
}
.site-footer a { color: var(--c-cream); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
.site-footer__inner {
	display: grid; gap: var(--space-5);
	padding: 60px 30px 30px;
	max-width: var(--container);
	margin: 0 auto;
	grid-template-columns: 1fr;
	text-align: center;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.site-footer__brand img,
.site-footer__brand .site-footer__logo {
	height: var(--logo-h-footer); width: auto; max-width: 100%;
}
.site-footer__brand-text {
	font-family: var(--ff-footer-h);
	font-size: 2.3rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: 1px;
}
.site-footer__info { display: grid; gap: .25rem; }
.site-footer__line { margin: 0; }
.site-footer__addresses { display: grid; gap: 1rem; }
.site-footer__address { font-style: normal; line-height: 1.6em; }
.site-footer__address strong { display: block; font-family: var(--ff-display); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; color: #fff; margin-bottom: .25rem; }
.site-footer__legal { background: var(--c-slate-darker); }
.site-footer__legal-line { margin: 0; padding: 14px 0; font-size: 13px; color: var(--c-cream); text-align: center; letter-spacing: .5px; line-height: 1.6em; }
.site-footer__legal-line a { color: var(--c-cream); text-decoration: underline; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-menu a { color: var(--c-cream); font-size: 14px; }
@media (min-width: 768px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr 1fr; text-align: left; }
	.site-footer__brand { align-items: flex-start; }
}
@media (min-width: 1024px) {
	.site-footer__inner { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
}

/* === Floating contact (Divi original: cerchi verdi su barra slate) === */
.tnd-floating-contact {
	position: fixed;
	right: 0; top: 50%;
	transform: translateY(-50%);
	background: var(--c-slate);
	border-radius: 3px 0 0 3px;
	padding: 5px 1px 1px;
	box-shadow: var(--shadow-float);
	z-index: 9000;
	display: flex; flex-direction: column;
	width: 50px;
}
.tnd-floating-contact__item {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	margin: 4px auto;
	background: var(--c-primary);
	border-radius: 50%;
	color: #fff !important;
	box-shadow: var(--shadow-icon);
	transition: background-color 300ms ease, transform 200ms ease;
	text-decoration: none;
}
.tnd-floating-contact__item:hover,
.tnd-floating-contact__item:focus {
	background: var(--c-primary-hover);
	color: #fff !important;
	transform: scale(1.05);
	text-decoration: none;
}
.tnd-floating-contact__item svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 767px) {
	.tnd-floating-contact {
		top: auto; bottom: 0; right: 50%;
		transform: translateX(50%);
		flex-direction: row;
		border-radius: 3px 3px 0 0;
		width: auto; padding: 1px 5px;
	}
	.tnd-floating-contact__item { margin: 4px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =============================================================
 * HOME — replica della struttura tnd.sviluppokeyweb.com (Divi)
 * ============================================================= */

:root {
	--h-row-w: 80%;       /* Divi default row width */
	--h-row-max: 1080px;  /* Divi default row max-width */
	--h-gutter: 5.5%;     /* Divi default gutter (gutters2) */
	--h-section-py: 4%;   /* section padding-top/bottom */
}

/* === Hero === */
.tnd-h-hero {
	position: relative;
	height: 80vh;
	min-height: 600px;
	background: var(--c-slate);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 140px;
	/* Bordo bianco 20px su 3 lati (no top) — Divi originale */
	border-right:  20px solid #fff;
	border-bottom: 20px solid #fff;
	border-left:   20px solid #fff;
}
@media (max-width: 980px) {
	.tnd-h-hero { border-right-width: 10px; border-bottom-width: 10px; border-left-width: 10px; }
}
@media (max-width: 767px) {
	.tnd-h-hero { border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px; }
}
.tnd-h-hero__bg {
	position: absolute; inset: 0; z-index: 0;
}
.tnd-h-hero__bg img,
.tnd-h-hero__bg picture {
	width: 100%; height: 100%; object-fit: cover; display: block;
}
.tnd-h-hero__overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.53) 50%, rgba(0,0,0,.17) 100%);
}
.tnd-h-hero__row {
	position: relative; z-index: 2;
	width: var(--h-row-w);
	max-width: var(--h-row-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--h-gutter);
	align-items: center;
}
.tnd-h-hero__col {
	text-align: left;
}
.tnd-h-hero__col--empty { display: none; }
@media (min-width: 768px) { .tnd-h-hero__col--empty { display: block; } }

/* H2 (titolo principale hero) — text_0 h2 */
.tnd-h-hero__title {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 3.5rem;
	color: #fff;
	letter-spacing: -2px;
	line-height: 1.2em;
	margin: 0 0 1rem;
}
@media (max-width: 980px) { .tnd-h-hero__title { font-size: 3rem; letter-spacing: -1.5px; } }
@media (max-width: 767px) { .tnd-h-hero__title { font-size: 2.5rem; letter-spacing: -1px; } }

/* H3 sottotitolo — text_0 h3 */
.tnd-h-hero__subtitle {
	font-family: var(--ff-display);
	font-weight: 500;
	text-transform: none;
	font-size: 26px;
	color: #fff;
	letter-spacing: 3px;
	line-height: 1.3em;
	margin: 0 0 2.5rem;
}
@media (max-width: 980px) { .tnd-h-hero__subtitle { font-size: 22px; letter-spacing: 2px; } }
@media (max-width: 767px) { .tnd-h-hero__subtitle { font-size: 20px; letter-spacing: 1.5px; } }

/* === Sezioni base === */
.tnd-h-sec {
	padding: var(--h-section-py) 0;
	background: #fff;
}
.tnd-h-row {
	width: var(--h-row-w);
	max-width: var(--h-row-max);
	margin: 0 auto;
	padding: 27px 0;
}
.tnd-h-row--full { /* riga full width 1 colonna */ }
.tnd-h-row--center { text-align: center; }
.tnd-h-row--cards { padding-top: 0; }

/* Row 2 colonne 1/2 + 1/2 */
.tnd-h-row--2col {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: center;
}
@media (min-width: 981px) {
	.tnd-h-row--2col { grid-template-columns: 1fr 1fr; gap: var(--h-gutter); }
}

/* Row 3 colonne 1/3 + 1/3 + 1/3 */
.tnd-h-row--3col {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: stretch;
}
@media (min-width: 768px)  { .tnd-h-row--3col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 981px)  { .tnd-h-row--3col { grid-template-columns: repeat(3, 1fr); gap: 4%; } }

/* Row 1/3 + 2/3 (Contatti) */
.tnd-h-row--13-23 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: start;
}
@media (min-width: 981px) {
	.tnd-h-row--13-23 { grid-template-columns: 1fr 2fr; gap: var(--h-gutter); }
}

/* === Tipografia delle sezioni interne === */
/* Kicker H3 (Azienda / mobilità / sicurezza / download) — H3 default Divi: Exo 2 700 22px uppercase, centrato */
.tnd-h-kicker {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 22px;
	color: #000;
	text-align: center;
	letter-spacing: 0;
	line-height: 1.2em;
	margin: 0 0 1rem;
}
@media (max-width: 767px) { .tnd-h-kicker { font-size: 20px; } }

/* H1 sezione Azienda — text_2 h1, default Divi 30px desktop, ma con override da theme builder ~ */
.tnd-h-h1 {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 30px;
	color: #000;
	line-height: 1.2em;
	margin: 0 0 1.5rem;
}
@media (max-width: 980px) { .tnd-h-h1 { font-size: 26px; } }

/* H2 sezione Mobilità/Sicurezza/Download — text_5/12/21 default Divi 26px */
.tnd-h-h2 {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 26px;
	color: #000;
	line-height: 1.2em;
	margin: 0 0 1.5rem;
	text-align: center;
}
@media (max-width: 980px) { .tnd-h-h2 { font-size: 23px; } }
.tnd-h-sec--azienda .tnd-h-h2 { text-align: left; }

/* H2 contatti (text_23 — nel section_8 dark) */
.tnd-h-h2--cream {
	color: #e8e6d7 !important;
	font-size: 38px;
	text-align: left;
}
@media (max-width: 980px) { .tnd-h-h2--cream { font-size: 30px; } }
@media (max-width: 767px) { .tnd-h-h2--cream { font-size: 26px; } }

/* Body text default Divi: Open Sans 14px color #666 */
.tnd-h-text {
	font-family: var(--ff-body);
	font-size: 14px;
	color: #666;
	line-height: 1.7em;
	margin: 0 0 1.5rem;
}
.tnd-h-text--center { text-align: center; }
.tnd-h-text p { margin: 0 0 1em; }
.tnd-h-text p:last-child { margin-bottom: 0; }

/* === Cerchi (immagini round) === */
.tnd-h-circle {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}
.tnd-h-circle img,
.tnd-h-circle picture {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	overflow: hidden;
	display: block;
}
@media (min-width: 981px) {
	.tnd-h-row--3col .tnd-h-circle { max-width: 280px; }
}

/* === Card (mobilità / sicurezza) === */
.tnd-h-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}
.tnd-h-card--media .tnd-h-circle { margin-bottom: 1rem; }
.tnd-h-card__title {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 22px;
	color: #000;
	letter-spacing: 0;
	margin: 0;
	text-align: left;
	width: 100%;
}
.tnd-h-card__text {
	font-family: var(--ff-body);
	font-size: 14px;
	color: #666;
	line-height: 1.7em;
	margin: 0;
	text-align: center;
}
.tnd-h-card__cta { margin-top: auto; }

/* CTA download centrato */
.tnd-h-row__cta { margin-top: 1.5rem; }

/* === Sezione 8 — Contatti dark === */
.tnd-h-sec--contatti {
	background: #3e4d52;
	color: #e8e6d7;
	padding: 60px 0;
}
.tnd-h-blurb {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 15px;
	margin-bottom: 1.25rem;
	align-items: start;
}
.tnd-h-blurb::before {
	content: "";
	width: 32px; height: 32px;
	background: var(--c-primary);
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0,0,0,.22);
	flex-shrink: 0;
}
.tnd-h-blurb__title {
	font-family: var(--ff-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 20px;
	color: #d8d7c9;
	letter-spacing: 0;
	margin: 0 0 .25rem;
}
.tnd-h-blurb__text {
	font-family: var(--ff-alt);
	font-size: 15px;
	color: #fff;
	line-height: 1.6em;
	margin: 0;
}

/* Form CF7 dark (sezione contatti home) */
.tnd-form-wrap--dark { color: #fff; }
.tnd-form-wrap--dark label { color: #fff; }
.tnd-form-wrap--dark input[type="text"],
.tnd-form-wrap--dark input[type="email"],
.tnd-form-wrap--dark input[type="tel"],
.tnd-form-wrap--dark textarea {
	background: rgba(255,255,255,.95);
	border: 1px solid rgba(255,255,255,.3);
}
.tnd-form-wrap--dark .wpcf7-list-item label {
	color: #fff;
}
.tnd-form-wrap--dark .acceptance-link { color: #e8e6d7; }
