/* ==========================================================
   Template P.A.S.A. – Joomla 5/6
   Valori presi dal sito nuovo (tailwind.config.js / index.css)
   ========================================================== */

@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local("Anton"), local("Anton-Regular"), url("../fonts/anton-400.woff") format("woff");
}

:root {
	--paper: #f4f2ea;
	--ink: #151511;
	--furrow: #2f6e22;
	--leaf: #7cc35f;
	--sand: #e4e0d2;
	--sand-deep: #d6d1bf;
	--char: #26261f;
	--rule: #3a3a33;
	--mute: #4a4636;
	--pale: #c9c6b6;
	--ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--leaf); color: var(--ink); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px; z-index: 100; }
.skip:focus { left: 0; }
.tn { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.pale { color: var(--pale); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-sand { background: var(--sand); color: var(--ink); }
.bg-ink { background: var(--ink); color: var(--paper); }

/* ---------- Tipografia ---------- */
.dp {
	font-family: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	font-weight: 400;
}
.h1-poster { font-size: clamp(40px, 5.5vw, 88px); line-height: .95; letter-spacing: -0.03em; text-wrap: balance; }
.h2-poster { font-size: clamp(32px, 4vw, 56px); line-height: 1; text-wrap: balance; }
.lb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }

/* ---------- Animazioni (identiche al sito nuovo) ---------- */
.ln { display: block; overflow: hidden; }
.ln > span { display: block; animation: d1-up .9s var(--ease) both; animation-delay: .15s; }
.ln:nth-child(2) > span { animation-delay: .27s; }
.fu { animation: d1-fu .7s var(--ease) both; }
.a6 { animation-delay: .65s; }
.a7 { animation-delay: .8s; }
.gr { animation: d1-sc 1.2s var(--ease) both; }
.dr { stroke-dasharray: 1; stroke-dashoffset: 0; animation: d1-draw 2s .4s ease both; }
.odo { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
.reel { display: block; line-height: 1; transform: translateY(calc(var(--d) * -1em)); animation: d1-roll 1.6s .9s var(--ease) both; }
.reel > span { display: block; }
.st > * { animation: d1-fu .7s var(--ease) both; }
.st > *:nth-child(1) { animation-delay: .9s; }
.st > *:nth-child(2) { animation-delay: .98s; }
.st > *:nth-child(3) { animation-delay: 1.06s; }
.st > *:nth-child(4) { animation-delay: 1.14s; }
.wp { animation: d1-wipe 1.2s .3s var(--ease) both; }
.mq { display: flex; width: max-content; animation: d1-mq 40s 1.4s linear infinite; }
.d1-drift {
	position: absolute; inset: 0; opacity: .12;
	background-image: repeating-linear-gradient(115deg, #151511 0 2px, transparent 2px 22px);
	background-size: 200% 200%;
	animation: d1-drift 18s ease-in-out infinite alternate;
}
.ul-grow {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
	transition: background-size .5s;
}
.ul-grow:hover { background-size: 100% 1px; }

@keyframes d1-up { from { transform: translateY(110%); } }
@keyframes d1-fu { from { opacity: 0; transform: translateY(12px); } }
@keyframes d1-sc { from { transform: scale(1.08); opacity: 0; } }
@keyframes d1-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes d1-roll { from { transform: translateY(0); } }
@keyframes d1-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes d1-mq { to { transform: translateX(-50%); } }
@keyframes d1-drift { to { background-position: 70% 40%; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Navigazione ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--ink); }
.header-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { height: 44px; width: auto; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .dp { font-size: 24px; line-height: 1; }
.brand-text .lb { font-size: 10px; letter-spacing: .12em; margin-top: 4px; line-height: 1; }

.header-cta { background: var(--furrow); color: #fff; padding: 8px 16px; text-decoration: none; transition: background .2s; }
.header-cta:hover { background: var(--ink); }

.nav-toggle { width: 40px; height: 40px; padding: 0; background: transparent; border: 0; cursor: pointer; position: relative; color: var(--ink); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
	position: absolute; left: 8px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { top: 19px; }
.nav-toggle .bars::before { top: -7px; left: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.main-nav.is-open { display: block; }
.main-nav ul { padding: 0; }
.main-nav a {
	display: block; padding: 16px 24px; text-decoration: none; color: var(--ink);
	font-family: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
	font-size: 24px; line-height: 1.33; text-transform: uppercase; letter-spacing: -0.01em;
	border-bottom: 1px solid rgba(21, 21, 17, .2);
}
.main-nav li:last-child a { border-bottom: 0; }

/* ---------- Bottoni ---------- */
.btn-furrow, .btn-line, .btn-white, .btn-submit {
	display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px;
	text-decoration: none; cursor: pointer; font-family: inherit; border-radius: 0;
	transition: background .2s, color .2s, border-color .2s;
}
.btn-furrow { background: var(--furrow); color: #fff; border: 0; }
.btn-furrow:hover { background: var(--ink); }
.btn-furrow .arr { transition: transform .2s; }
.btn-furrow:hover .arr { transform: translateX(4px); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-white { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-white:hover { background: #fff; color: var(--furrow); }
.btn-submit { background: var(--ink); color: #fff; border: 0; justify-content: center; }
.btn-submit:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--paper); color: var(--ink); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; padding-top: 96px; padding-bottom: 96px; align-items: center; }
.hero-copy { min-width: 0; }
.hero .h1-poster { margin-top: 24px; }
.hero-text { margin-top: 24px; max-width: 28rem; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-art { position: relative; min-width: 0; }
.hero-svg { position: relative; display: block; width: 100%; height: auto; }
.odometer { position: absolute; right: 0; bottom: 0; display: flex; font-size: clamp(64px, 9vw, 120px); line-height: 1; letter-spacing: 0; }

/* ---------- Striscia ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.mq { font-size: 30px; line-height: 36px; gap: 48px; padding-right: 48px; }
.mq-item { display: flex; gap: 48px; }

/* ---------- Sezioni ---------- */
.section { padding: 96px 0; scroll-margin-top: 64px; }
.sec-grid { display: grid; gap: 48px; }
.sec-body { min-width: 0; }
.sec-label { border-top: 4px solid var(--furrow); padding-top: 16px; align-self: start; }
.sec-label-leaf { border-top-color: var(--leaf); }
section[id] { scroll-margin-top: 64px; }

/* 01 */
.coop-text { margin-top: 24px; max-width: 42rem; }
.stats { display: grid; gap: 24px; margin-top: 48px; grid-template-columns: 1fr; }
.stat { border-top: 1px solid var(--ink); padding-top: 16px; }
.stat .dp { font-size: 48px; line-height: 1; }
.stat .lb { margin-top: 8px; }
.photos { display: grid; gap: 24px; margin-top: 48px; }
.photo { position: relative; overflow: hidden; background: var(--sand); }
.photo img, .product-fig img, .news-lead-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.photo:hover img, .product:hover .product-fig img, .news-lead:hover .news-lead-fig img { transform: scale(1.05); }
.photo figcaption, .product-fig figcaption {
	position: absolute; left: 0; bottom: 0; margin: 16px; padding: 4px 12px; background: var(--paper); color: var(--ink);
}
.photo-wide { aspect-ratio: 16 / 9; }
.photo-tall { aspect-ratio: 3 / 4; }

/* 02 */
.products { margin-top: 48px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.product { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 24px 0; align-items: center; }
.product + .product { border-top: 1px solid var(--rule); }
.letter { font-size: 36px; line-height: 1.1; color: var(--leaf); }
.product-name { display: block; font-size: 30px; line-height: 1.2; transition: transform .2s; }
.product:hover .product-name { transform: translateX(8px); }
.product-text p { margin-top: 8px; font-size: 15px; color: var(--pale); max-width: 24rem; }
.product-fig { grid-column: span 2; position: relative; aspect-ratio: 3 / 2; background: var(--char); overflow: hidden; }
.product-fig figcaption { margin: 12px; padding: 4px 8px; background: var(--ink); color: var(--pale); }

/* 03 */
.services { display: grid; gap: 24px; margin-top: 48px; }
.service-n { font-size: clamp(64px, 9vw, 120px); line-height: 1; color: var(--furrow); transition: transform .2s; }
.service:hover .service-n { transform: translateY(-4px); }
.service-t { font-size: 24px; line-height: 1.33; }
.service-d { margin-top: 8px; font-size: 15px; max-width: 20rem; }

/* 04 */
.news-lead { display: grid; margin-top: 48px; border: 1px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); }
.news-lead-fig { position: relative; aspect-ratio: 16 / 10; background: var(--sand-deep); overflow: hidden; }
.news-lead-body { padding: 24px; display: flex; flex-direction: column; }
.news-lead-title { margin-top: 12px; font-size: 30px; line-height: 1; }
.news-lead-ex { margin-top: 16px; font-size: 15px; }
.read { margin-top: auto; padding-top: 24px; color: var(--furrow); }
.news-list { margin-top: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.news-list li + li { border-top: 1px solid var(--ink); }
.news-list a { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; justify-content: space-between; padding: 16px 0; text-decoration: none; }
.news-item-t { font-size: 20px; line-height: 1.4; transition: color .2s; }
.news-list a:hover .news-item-t { color: var(--furrow); }
.news-all { margin-top: 32px; }
.news-empty { margin-top: 48px; }

/* 05 */
.docs-grid { display: grid; gap: 48px; }
.docs-intro { margin-top: 16px; }
.docs { margin-top: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.docs ul { margin: 0; padding: 0; }
.docs li { padding: 16px 0; }
.docs li + li { border-top: 1px solid var(--ink); }
.docs li:only-child:not(:has(a)) { padding: 16px 0; }
.docs a {
	font-family: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
	text-transform: uppercase; letter-spacing: -0.01em; font-size: 20px; line-height: 1.4; text-decoration: none; transition: color .2s;
}
.docs a:hover { color: var(--furrow); }
.useful { margin-top: 16px; display: grid; gap: 12px; }
.useful a { font-size: 20px; line-height: 1.4; }

.meteo { margin-top: 32px; background: var(--ink); color: var(--paper); padding: 24px; }
.meteo-head { display: flex; align-items: center; gap: 24px; }
.meteo-head svg { flex: none; }
.meteo-place { font-size: 24px; line-height: 1.33; }
.meteo-temp { color: var(--leaf); }
.meteo-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 16px; }
.meteo-t { font-size: 18px; line-height: 1.55; text-transform: none; letter-spacing: 0; }
.meteo-d { font-size: 10px; }

/* Contatti */
.contatti { background: var(--furrow); color: #fff; padding: 96px 0; scroll-margin-top: 64px; }
.contatti-grid { display: grid; gap: 48px; }
.contatti-copy { min-width: 0; }
.contatti-text { margin-top: 16px; max-width: 28rem; }
.contatti .btn-white { margin-top: 32px; }
.contatti-info { margin-top: 32px; display: grid; gap: 8px; justify-items: start; }
.contact-form { display: grid; gap: 16px; align-content: start; }
.contact-form > label { display: block; }
.contact-form input[type="text"], .contact-form textarea {
	display: block; margin-top: 8px; width: 100%; background: #fff; color: var(--ink); border: 0; border-radius: 0;
	padding: 12px 16px; font: inherit; font-size: 16px; text-transform: none; letter-spacing: normal; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 0 0 4px var(--leaf); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #fff; }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-submit { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0; }
.footer-in { display: grid; gap: 32px; }
.footer-col { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer-col p { margin: 0; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }
.admin-link { color: var(--leaf); }

/* ---------- Avviso cookie ---------- */
.cookie-bar { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 20px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: 14px; line-height: 1.6; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar button { margin-top: 16px; background: var(--ink); color: var(--paper); border: 0; padding: 12px 20px; cursor: pointer; font-family: inherit; transition: background .2s; }
.cookie-bar button:hover { background: var(--furrow); }

/* ---------- Messaggi di sistema ---------- */
.toasts { position: fixed; z-index: 90; top: 72px; left: 0; right: 0; padding: 0 16px; pointer-events: none; }
.toasts > * { pointer-events: auto; max-width: 560px; margin: 0 auto; }
.toasts.is-hidden { display: none; }
.toasts joomla-alert, .toasts .alert, .toasts #system-message-container > div {
	display: block; background: var(--ink); color: var(--paper);
	padding: 16px 20px; border-left: 6px solid var(--leaf); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-weight: 600;
}
.toasts joomla-alert[type="error"], .toasts joomla-alert[type="danger"] { border-left-color: #c0392b; }
.toasts joomla-alert[type="warning"] { border-left-color: #e0a73b; }
.toasts .alert-heading, .toasts .joomla-alert--close { display: none; }

/* ---------- Pagine interne ---------- */
.inner-page { padding: 64px 0; min-height: 55vh; }
.content-area::before { content: ""; display: block; width: 64px; border-top: 4px solid var(--furrow); margin-bottom: 24px; }
.inner-page h1, .inner-page .page-header h1, .inner-page .page-header h2, .inner-page h2.page-title {
	font-family: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
	font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5.5vw, 88px); line-height: .95; letter-spacing: -0.03em; margin-bottom: 24px; text-wrap: balance;
}
.inner-page .item-page, .inner-page .com-content-article, .inner-page .com-content-article__body, .inner-page .legacy { max-width: 48rem; }
.inner-page .item-page { font-size: 18px; }
.inner-page h2, .inner-page h3 {
	font-family: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
	font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1;
}
.inner-page h2 { font-size: 30px; margin: 40px 0 0; }
.inner-page h3 { font-size: 24px; margin: 32px 0 0; }
.inner-page p { margin-top: 20px; }
.inner-page .content-area a { color: var(--furrow); text-decoration: underline; text-underline-offset: 3px; }
.inner-page .content-area a:hover { color: var(--ink); }
.inner-page ul { list-style: disc; padding-left: 24px; margin-top: 16px; }
.inner-page ol { list-style: decimal; padding-left: 24px; margin-top: 16px; }
.inner-page li { margin-top: 8px; }
.inner-page img { border: 1px solid var(--ink); margin-top: 24px; }
.inner-page blockquote { border-left: 4px solid var(--furrow); padding-left: 16px; margin: 20px 0 0; }
.inner-page .article-info, .inner-page .article-info dd, .inner-page .published { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0; }
.inner-page .article-info { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin-top: 12px; }
.inner-page .article-info dt { display: none; }

/* Elenco notizie (blog categoria) */
.inner-page .blog-items { display: grid; gap: 24px; margin-top: 32px; padding: 0; list-style: none; }
.inner-page .blog-item { border: 1px solid var(--ink); background: var(--paper); padding: 20px; margin: 0; display: flex; flex-direction: column; transition: transform .2s; }
.inner-page .blog-item:hover { transform: translateY(-4px); }
.inner-page .blog-item img { margin: -20px -20px 16px; width: calc(100% + 40px); max-width: none; border: 0; border-bottom: 1px solid var(--ink); aspect-ratio: 4 / 3; object-fit: cover; }
.inner-page .blog-item h2 { font-size: 24px; line-height: 1.15; margin: 0; }
.inner-page .blog-item h2 a, .inner-page .blog-item .item-title a { color: var(--ink); text-decoration: none; }
.inner-page .blog-item h2 a:hover { color: var(--furrow); }
.inner-page .blog-item p { font-size: 15px; margin-top: 12px; }
.inner-page .readmore a, .inner-page .btn.btn-secondary {
	display: inline-block; margin-top: 16px; color: var(--furrow); text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.inner-page .pagination { margin-top: 48px; }
.inner-page .pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.inner-page .pagination li { margin: 0; }
.inner-page .pagination a, .inner-page .pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 12px;
	border: 2px solid var(--ink); text-decoration: none; color: var(--ink);
	font-family: Impact, "Anton", Haettenschweiler, sans-serif; font-size: 20px;
}
.inner-page .pagination .active span, .inner-page .pagination .active a { background: var(--ink); color: var(--paper); }
.inner-page .pagination a:hover { background: var(--sand); }
.inner-page ol.mod-breadcrumbs, .inner-page .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 24px; list-style: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.inner-page ol.mod-breadcrumbs li { margin: 0; }
.inner-page ol.mod-breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.inner-page table { border-collapse: collapse; width: 100%; margin-top: 20px; }
.inner-page th, .inner-page td { border: 1px solid var(--ink); padding: 8px 12px; text-align: left; }
.inner-page input[type="text"], .inner-page input[type="email"], .inner-page input[type="password"], .inner-page textarea, .inner-page select {
	width: 100%; max-width: 100%; font: inherit; padding: 12px 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 0;
}
.inner-page button[type="submit"], .inner-page .btn-primary {
	font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper);
	border: 0; padding: 16px 24px; cursor: pointer; border-radius: 0; transition: background .2s;
}
.inner-page button[type="submit"]:hover, .inner-page .btn-primary:hover { background: var(--furrow); }
.error-page .wrap { padding-top: 24px; }
.error-page .lead { margin-top: 24px; max-width: 32rem; }
.error-page .btn-furrow { margin-top: 32px; }

/* ---------- Tablet (sm) ---------- */
@media (min-width: 640px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.product { grid-template-columns: 80px 1fr 1fr; }
	.product-fig { grid-column: span 1; }
	.inner-page .blog-items { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- md ---------- */
@media (min-width: 768px) {
	.hero-grid { grid-template-columns: 1fr 1.2fr; padding-top: 128px; padding-bottom: 128px; }
	.section { padding: 128px 0; }
	.contatti { padding: 128px 0; }
	.sec-grid { grid-template-columns: 200px 1fr; }
	.stats { grid-template-columns: repeat(4, 1fr); }
	.photos { grid-template-columns: 2fr 1fr; }
	.photo-tall { aspect-ratio: auto; }
	.services { grid-template-columns: repeat(3, 1fr); }
	.news-lead { grid-template-columns: 1.4fr 1fr; }
	.news-lead-fig { aspect-ratio: auto; min-height: 320px; }
	.news-lead-body { padding: 32px; }
	.news-lead-title { font-size: 36px; }
	.docs-grid { grid-template-columns: 1fr 1fr; }
	.contatti-grid { grid-template-columns: 1fr 1fr; }
	.footer-in { grid-template-columns: 2fr 1fr 1fr; }
	.cookie-bar { right: auto; max-width: 28rem; }
	.inner-page { padding: 96px 0; }
}

/* ---------- lg: menu orizzontale ---------- */
@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.brand { margin-right: 0; }
	.main-nav { display: block; position: static; background: transparent; border: 0; margin-left: auto; }
	.main-nav ul { display: flex; gap: 24px; }
	.main-nav a {
		display: inline; padding: 0; border: 0; font-family: inherit; font-size: 12px; line-height: 1.6;
		letter-spacing: .14em; text-transform: uppercase;
		background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .5s;
	}
	.main-nav a:hover, .main-nav .current > a, .main-nav .active > a { background-size: 100% 1px; }
	.inner-page .blog-items { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Correzioni menu Joomla (v1.1.1) ---------- */
.visually-hidden, .sr-only, .visually-hidden-focusable:not(:focus):not(:focus-within) {
	position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.main-nav .mod-menu__toggle-sub, .main-nav button.mod-menu__toggle-sub { display: none; }
.main-nav [class^="icon-"], .main-nav [class*=" icon-"] { display: none; }
.main-nav .mod-menu__heading, .main-nav .nav-header { display: block; }

/* Sottomenu su mobile: sempre aperto e rientrato */
.main-nav ul ul { padding: 0; }
.main-nav ul ul a { padding-left: 44px; font-size: 18px; color: var(--mute); }

@media (min-width: 1024px) {
	.main-nav > ul > li, .main-nav > ul > .mod-menu__sub { position: relative; }
	.main-nav > ul > li { padding: 24px 0; }
	.main-nav ul ul {
		display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; z-index: 45;
		flex-direction: column; gap: 0; padding: 8px 0;
		background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 12px 24px rgba(21, 21, 17, .12);
	}
	.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }
	.main-nav ul ul li { padding: 0; }
	.main-nav ul ul a {
		display: block; padding: 10px 20px; font-size: 12px; color: var(--ink); background-image: none; white-space: nowrap;
	}
	.main-nav ul ul a:hover { background: var(--sand); }
}

/* ---------- Striscia Ultime notizie (v1.2.0) ---------- */
.newsbar { background: var(--sand); color: var(--ink); border-bottom: 1px solid var(--ink); }
.newsbar-in { display: grid; gap: 12px; padding-top: 24px; padding-bottom: 24px; align-items: start; }
.newsbar-label { border-top: 4px solid var(--furrow); padding-top: 12px; }
.newsbar-list { display: grid; gap: 0; }
.newsbar-list li + li { border-top: 1px solid rgba(21, 21, 17, .25); }
.newsbar-list a { display: grid; gap: 2px; padding: 12px 0; text-decoration: none; }
.newsbar-t { font-size: 20px; line-height: 1.25; transition: color .2s; }
.newsbar-list a:hover .newsbar-t { color: var(--furrow); }
.newsbar-all { justify-self: start; color: var(--furrow); }

@media (min-width: 900px) {
	.newsbar-in { grid-template-columns: 160px 1fr auto; gap: 32px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
	.newsbar-label { align-self: start; }
	.newsbar-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
	.newsbar-list li + li { border-top: 0; border-left: 1px solid rgba(21, 21, 17, .25); padding-left: 32px; }
	.newsbar-list a { padding: 0; }
	.newsbar-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
