/* don-ga.it — versione statica. Grafica luminosa: bianco caldo, giallo sole, azzurro, verde, corallo. Nessuna risorsa esterna. */
:root {
  --bg: #fffdf8;
  --white: #ffffff;
  --ink: #1d2433;
  --muted: #586174;
  --line: #ece6d8;
  --link: #1767c9;
  --sun: #ffc83d;   --sun-soft: #fff4cc;
  --sky: #3d95ff;   --sky-soft: #e4f0ff;
  --leaf: #1fa774;  --leaf-soft: #dcf6ea;
  --coral: #ff6f59; --coral-soft: #ffe5df;
  --grape: #7c5cff; --grape-soft: #ece7ff;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(29,36,51,.05), 0 10px 30px rgba(29,36,51,.07);
  --head: "SF Pro Rounded", ui-rounded, "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-weight: 700; font-size: 1.22rem; }
h4 { font-weight: 700; font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.section { padding-top: 56px; padding-bottom: 64px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.kicker { display: inline-block; font: 800 .74rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }

/* ---------- intestazione ---------- */
.top { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 54px; height: auto; }
.logo span { font: 800 1.35rem/1 var(--head); letter-spacing: -.02em; display: flex; flex-direction: column; }
.logo small { font: 600 .68rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu li { position: relative; }
.menu a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; padding: 9px 12px; border-radius: 999px; }
.menu > ul > li > a:hover, .menu > ul > li.on > a { background: var(--sun-soft); }
.menu a[aria-current="page"] { background: var(--sun); }
.sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(29,36,51,.14); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { border-radius: 10px; font-weight: 500; }
.sub a:hover { background: var(--sky-soft); }
.search-link { display: flex; align-items: center; gap: 6px; margin-left: 6px; background: var(--ink); color: #fff !important; padding: 9px 14px !important; }
.search-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-link:hover { background: var(--sky) !important; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--sun); cursor: pointer; position: relative; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { position: absolute; left: 13px; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; content: ""; transition: .2s; }
.menu-btn span:first-child { top: 22px; }
.menu-btn span:first-child::before { left: 0; top: -7px; }
.menu-btn span:first-child::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }

/* ---------- testata delle pagine ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--sun-soft) 0%, #fff9e8 45%, var(--sky-soft) 100%); padding: 46px 0 50px; }
.page-head::before, .page-head::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.page-head::before { width: 260px; height: 260px; right: -60px; top: -90px; background: var(--sun); }
.page-head::after { width: 160px; height: 160px; right: 18%; bottom: -100px; background: var(--leaf-soft); }
.ph-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.with-img .ph-in { grid-template-columns: 1.2fr 1fr; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 0; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); margin: 14px 0 0; max-width: 46ch; }
.ph-img img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post-head time { color: var(--muted); font-weight: 600; display: block; margin-top: 14px; }
.post-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- pulsanti, etichette ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--sun); color: var(--ink) !important; font: 800 .95rem/1.1 var(--head); text-decoration: none !important; border: 2px solid var(--sun); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255,200,61,.45); }
.btn-ghost, .btn.btn-ghost { background: #fff; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff !important; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.tag { display: inline-block; font: 700 .74rem/1 var(--head); letter-spacing: .04em; padding: 6px 11px; border-radius: 999px; background: var(--sky-soft); color: #11509e; text-decoration: none; margin: 0 6px 6px 0; }
a.tag:hover { background: var(--sky); color: #fff; }
.tags { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.chips a:hover { background: var(--sun-soft); }

/* ---------- testi ---------- */
.prose { max-width: 72ch; }
.wide-prose { max-width: 900px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose img { border-radius: 16px; display: block; margin: 1.2em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--coral); }
.prose blockquote, .quote { margin: 1.6em 0; padding: 18px 24px; background: var(--sun-soft); border-radius: 18px; border-left: 6px solid var(--sun); font-size: 1.08rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose hr, .sep { border: 0; height: 3px; width: 64px; background: var(--sun); border-radius: 3px; margin: 2em 0; }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.prose .gallery, .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 1.5em 0; }
.prose .gallery img, .photo-grid img { width: 100%; height: 160px; object-fit: cover; margin: 0; border-radius: 14px; }
.prose .gallery figure, .prose .gallery li { margin: 0; }
.photo-grid br { display: none; }
.intro { margin-bottom: 32px; }
.count { color: var(--muted); font-weight: 600; font-size: .92rem; }
.sec-title { font-size: 1.45rem; margin: 40px 0 18px; display: flex; align-items: baseline; gap: 10px; }
.sec-title small { font: 700 .8rem/1 var(--body); background: var(--sun-soft); padding: 5px 10px; border-radius: 999px; }
.cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; display: block; margin: 0 0 32px; }
.flyer { max-width: 420px; }
.logo-small { max-width: 160px; }
.wide { width: 100%; border-radius: 20px; max-height: 420px; object-fit: cover; }

/* ---------- schede articoli ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(29,36,51,.04); }
.post-card { overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(29,36,51,.12); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { aspect-ratio: 16 / 10; background: var(--sun-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .card-img img { transform: scale(1.04); }
.card-ph { display: flex; height: 100%; align-items: center; justify-content: center; font: 800 1.6rem var(--head); color: #c79a1a; background: repeating-linear-gradient(45deg, var(--sun-soft), var(--sun-soft) 14px, #fff8de 14px, #fff8de 28px); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.card-body time { font-size: .84rem; color: var(--muted); font-weight: 600; }
.card-body p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.pager [aria-current] { background: var(--sun); border-color: var(--sun); }
.pager .dots { border: 0; background: none; }
.pager a:hover { background: var(--sun-soft); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.post-nav a { display: block; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; }
.post-nav small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.post-nav .newer { text-align: right; }
.post-nav a:hover { background: var(--sun-soft); }

/* ---------- home ---------- */
.hero { background: linear-gradient(160deg, #fff7d9 0%, #fffdf8 45%, #eaf4ff 100%); padding: 56px 0 26px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 span { display: block; font-size: .5em; letter-spacing: -.01em; margin-top: 12px; background: linear-gradient(90deg, var(--coral), #ff9a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 32ch; }
.hero-pic { position: relative; }
.hero-pic img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; box-shadow: 0 30px 60px rgba(29,36,51,.18); }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.b1 { width: 46%; aspect-ratio: 1; background: var(--sun); right: -6%; top: -8%; }
.b2 { width: 30%; aspect-ratio: 1; background: var(--leaf-soft); left: -6%; bottom: -6%; border: 10px solid #fff; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.jump a { padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; }
.jump a:hover { background: var(--sun); }
.feature { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.feature > img { width: 100%; height: 100%; max-height: 560px; min-height: 320px; object-fit: contain; background: var(--sun-soft); }
.feature-body { padding: 36px 38px; }
.feature-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.feature-body h3 { color: var(--coral); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 24px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; flex: 1 1 auto; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sec-head .kicker { flex-basis: 100%; margin: 0; }
.more { font-weight: 800; text-decoration: none; font-family: var(--head); }
.band-sun { background: var(--sun-soft); }
.band-sky { background: var(--sky-soft); }
.band-leaf { background: var(--leaf-soft); }
.band-sun, .band-sky, .band-leaf { border-radius: 40px; margin: 0 12px; }
.big-quote { margin: 44px 0; padding: 34px 38px; border-radius: 28px; background: var(--ink); color: #fff; font: 700 clamp(1.25rem, 2.6vw, 1.7rem)/1.35 var(--head); position: relative; }
.big-quote::before { content: "“"; position: absolute; top: -32px; left: 24px; font-size: 6rem; color: var(--sun); line-height: 1; }
.big-quote cite { display: block; font: 600 .95rem var(--body); color: var(--sun); margin-top: 14px; font-style: normal; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.hub.small { margin-top: 18px; }
.hub-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 22px; border-radius: 24px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s; }
.hub-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.hub-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hub-t, .hub-d { position: relative; }
.hub-t { font: 800 1.3rem/1.15 var(--head); }
.hub-d { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.c-sun { background: var(--sun); } .c-sun .hub-d { color: #5a4300; }
.c-sky { background: var(--sky-soft); } .c-leaf { background: var(--leaf-soft); } .c-coral { background: var(--coral-soft); } .c-grape { background: var(--grape-soft); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 58px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(var(--sun), var(--coral), var(--sky), var(--leaf)); }
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 30px; scroll-margin-top: 100px; }
.tl-year { position: relative; z-index: 1; align-self: start; justify-self: center; background: #fff; border: 4px solid var(--sun); border-radius: 999px; padding: 8px 14px; font: 800 1.05rem var(--head); text-align: center; min-width: 96px; }
.tl:nth-child(4n+2) .tl-year { border-color: var(--coral); } .tl:nth-child(4n+3) .tl-year { border-color: var(--sky); } .tl:nth-child(4n) .tl-year { border-color: var(--leaf); }
.tl-card { background: #fff; border-radius: 22px; padding: 24px 28px; box-shadow: var(--shadow); }
.tl-card h2 { font-size: 1.35rem; }
.tl:target .tl-card { outline: 3px solid var(--sun); }

/* ---------- documenti ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); background: var(--sun-soft); }
.tile-n { font: 800 2rem/1 var(--head); color: var(--coral); }
.tile-t { font-weight: 700; }
.tile-all { background: var(--ink); color: #fff; } .tile-all .tile-n { color: var(--sun); } .tile-all:hover { background: #2b3550; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(29,36,51,.05); border: 1px solid var(--line); }
.doc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--coral-soft); color: #b33622; display: flex; align-items: center; justify-content: center; font: 800 .78rem var(--head); }
.doc-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.doc-title:hover { color: var(--link); text-decoration: underline; }
.doc-desc { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.doc-size { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.doc-card { background: #fff; border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 26px; }
.doc-preview img { border-radius: 18px; box-shadow: var(--shadow); }
.filter { margin-bottom: 10px; }
.filter label { font-weight: 700; display: block; margin-bottom: 6px; }
.filter input, .search-form input { width: 100%; font: inherit; padding: 13px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; }
.filter input:focus, .search-form input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }

/* ---------- gallerie ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.album { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); text-decoration: none; color: #fff; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album:hover img { transform: scale(1.06); }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(15,20,35,.75)); }
.album-t, .album-n { position: absolute; left: 18px; right: 18px; z-index: 1; }
.album-t { bottom: 34px; font: 800 1.15rem/1.2 var(--head); }
.album-n { bottom: 14px; font-size: .85rem; color: var(--sun); font-weight: 700; }
.photos { columns: 4 220px; column-gap: 12px; }
.photos .ph { display: block; margin-bottom: 12px; border-radius: 14px; overflow: hidden; break-inside: avoid; }
.photos img { width: 100%; display: block; transition: transform .3s; }
.photos .ph:hover img { transform: scale(1.03); }
.more-albums { margin-top: 40px; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12,16,26,.94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 24px; }
.lb img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 10px; }
.lb p { color: #fff; margin: 12px 0 0; text-align: center; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb button:hover { background: var(--sun); color: var(--ink); }
.lb .lb-x { top: 12px; right: 12px; } .lb .lb-p { left: 12px; top: 50%; } .lb .lb-n { right: 12px; top: 50%; }

/* ---------- video e contenuti esterni ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); margin: 1.4em 0; }
.video iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--ink); }
.video-play img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: .9; }
.video-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--sun); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.video-btn::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-play:hover .video-btn { transform: scale(1.1); }
.video-note { position: absolute; left: 12px; bottom: 10px; font-size: .75rem; color: #fff; background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 999px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.vcard { margin: 0; }
.vcard .video { margin: 0 0 10px; }
.vcard figcaption { font-weight: 700; line-height: 1.35; }
.embed { position: relative; min-height: 180px; border-radius: 18px; background: var(--sky-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; margin: 1.4em 0; }
.embed.loaded { padding: 0; min-height: 450px; background: none; }
.embed-btn { font: 800 1rem var(--head); border: 0; border-radius: 999px; padding: 12px 22px; background: var(--sky); color: #fff; cursor: pointer; }
.embed-note { font-size: .85rem; color: var(--muted); }
.audios { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.audio { background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.audio-t { display: block; font-weight: 700; margin-bottom: 8px; }
.audio audio { width: 100%; }
.nl-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.nl-list a { display: block; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; border-left: 6px solid var(--sun); }
.nl-list li:nth-child(3n+2) a { border-left-color: var(--sky); } .nl-list li:nth-child(3n) a { border-left-color: var(--coral); }
.nl-list a:hover { background: var(--sun-soft); }

/* ---------- ricerca ---------- */
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; }
.results { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.results li { background: #fff; padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow); }
.results a { font-weight: 800; font-family: var(--head); font-size: 1.1rem; text-decoration: none; }
.results small { color: var(--coral); font-weight: 700; margin-left: 8px; }
.results p { margin: 6px 0 0; color: var(--muted); font-size: .93rem; }
.results mark { background: var(--sun-soft); padding: 0 2px; border-radius: 3px; }

/* ---------- modulo ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.side { padding: 28px; }
.cform { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; font-size: .9rem; }
.cform input:not([type=checkbox]), .cform textarea { width: 100%; font: inherit; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.cform textarea { min-height: 140px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.cform .invalid { border-color: #d0402b !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--coral); flex: none; }
.err { color: #b8321f; font-size: .85rem; } .err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform button { justify-self: start; }
.form-msg { margin: 0; } .form-msg:empty { display: none; }
.form-msg.ok { background: var(--leaf-soft); padding: 14px 16px; border-radius: 14px; color: #0d5a3d; }
.form-msg.ko { background: var(--coral-soft); padding: 14px 16px; border-radius: 14px; color: #8a2414; }

/* ---------- piè di pagina ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 72px; padding: 56px 0 26px; border-radius: 40px 40px 0 0; font-size: .95rem; }
.foot a { color: #fff; text-decoration: none; } .foot a:hover { color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-brand { font: 800 1.6rem var(--head); color: #fff; margin-bottom: 10px; }
.foot-h { font: 800 .8rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin: 7px 0; }
.motto { color: var(--sun); font-weight: 700; font-family: var(--head); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; font-size: .82rem; }

/* ---------- schermi medi e piccoli ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .menu { position: fixed; inset: 74px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 22px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  .menu.open { transform: none; visibility: visible; }
  .menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .menu > ul > li > a { flex: 1; padding: 14px 6px; font-size: 1.05rem; border-radius: 10px; }
  .sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: var(--sun-soft); border-radius: 12px; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; left: 16px; top: 14px; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: .2s; }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 19px; }
  .sub { position: static; flex-basis: 100%; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 10px 10px; }
  .sub.open { display: block; }
  .has-sub:hover .sub { display: none; } .has-sub:hover .sub.open { display: block; }
  .search-link { margin: 20px 0 0; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-top: 40px; padding-bottom: 48px; }
  .hero { padding-top: 32px; }
  .hero-in, .with-img .ph-in, .feature, .contact-grid, .row2 { grid-template-columns: 1fr; }
  .hero-pic { order: -1; max-width: 420px; margin: 0 auto; }
  .feature img { min-height: 220px; max-height: 280px; }
  .feature-body { padding: 24px 22px; }
  .band-sun, .band-sky, .band-leaf { border-radius: 28px; margin: 0 6px; }
  .timeline::before { left: 18px; }
  .tl { grid-template-columns: 1fr; gap: 10px; padding-left: 40px; }
  .tl-year { justify-self: start; margin-left: -40px; min-width: 0; }
  .tl-card { padding: 20px; }
  .doc { grid-template-columns: 44px 1fr; }
  .doc-ico { width: 44px; height: 44px; }
  .doc-size { grid-column: 2; }
  .doc .btn { grid-column: 1 / -1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .newer { text-align: left; }
  .foot { border-radius: 28px 28px 0 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo small { display: none; }
  .ph-img img { transform: none; max-height: 220px; }
  .big-quote { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.tl-h { font-size: 1rem !important; letter-spacing: .1em; color: var(--coral); }
/* novità di Monteleco in home */
.news-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.news-mini { padding: 26px 28px; }
.news-mini h3 { font-size: 1.3rem; }
.c-sky-soft { background: var(--sky-soft); } .c-leaf-soft { background: var(--leaf-soft); }
.contact-lines { list-style: none; padding: 0 !important; margin: 0 0 8px; }
.contact-lines li { display: grid; grid-template-columns: 200px 1fr; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.contact-lines li::marker { content: none; }
.contact-lines span { font-weight: 700; font-size: .9rem; }
.contact-lines small { grid-column: 2; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .news-strip { grid-template-columns: 1fr; } .contact-lines li { grid-template-columns: 1fr; } .contact-lines small { grid-column: 1; } }
