:root {
    --primary: #00677f;
    --primary-dark: #005971;
    --primary-deep: #003a49;
    --primary-soft: #e1f2f3;
    --accent: #25babc;
    --accent-ink: #06272e;
    --accent-text: #00727a;
    --accent-on-primary: #9fe3e0;
    --masthead: #dcf1f0;
    --bg: #f1f7f7;
    --bg-deep: #e0edee;
    --surface: #ffffff;
    --paper: #fbfefe;
    --ink: #14282e;
    --ink-2: #34494f;
    --muted: #5c7277;
    --line: #d2e3e5;
    --ok: #2f7a4f;
    --ok-soft: #e7f3ec;
    --danger: #b3261e;
    --danger-dark: #8c1d17;
    --danger-soft: #fbe9e7;

    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Lora", Georgia, "Times New Roman", serif;

    --wrap: 1200px;
    --radius: 24px;
    --radius-sm: 14px;
    --shadow-sm: 0 10px 30px rgba(0, 58, 73, .06);
    --shadow: 0 18px 40px rgba(0, 58, 73, .14);
    --shadow-lg: 0 30px 70px rgba(0, 26, 33, .35);
    --ease: cubic-bezier(.22, .8, .32, 1);

    --cross-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325babc' d='M10.8 2h2.4v5.6h5.6V10h-5.6v12h-2.4V10H5.2V7.6h5.6z'/%3E%3C/svg%3E");
    --cross-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239fe3e0' d='M10.8 2h2.4v5.6h5.6V10h-5.6v12h-2.4V10H5.2V7.6h5.6z'/%3E%3C/svg%3E");
    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(0, 103, 127, .07) 1px, transparent 1.3px);
    background-size: 20px 20px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 400;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
}
.skip-link:focus { top: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    font: 600 15px/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-main { background: var(--primary); color: #fff; }
.btn-main:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 6px 16px rgba(0, 114, 122, .3); }
.btn-ghost { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-ico { width: 18px; height: 18px; fill: currentColor; }

.linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.masthead { background: var(--masthead); }
.masthead-in { display: flex; flex-direction: column; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.brand { display: block; }
.brand-logo { width: clamp(min(360px, 100%), 52vw, 600px); height: auto; margin: 0 auto; }

.mainnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    color: #fff;
}
.mainnav-list { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mainnav-item { position: relative; }
.mainnav-item + .mainnav-item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    background: var(--accent-on-primary);
    transform: rotate(45deg);
    opacity: .7;
}
.mainnav-item > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 15px 18px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
}
.mainnav-item > a:hover,
.mainnav-item.is-current > a { color: var(--accent-on-primary); }
.mainnav-item.has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
}
.submenu-toggle,
.nav-toggle { display: none; }
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 10;
    min-width: 260px;
    margin: 3px 0 0;
    padding: 10px;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--accent);
    border-radius: 25px;
    box-shadow: 0 18px 40px rgba(0, 58, 73, .18);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.mainnav-item:hover > .submenu,
.mainnav-item:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.mainnav-item.is-wide .submenu { display: grid; grid-template-columns: 1fr 1fr; width: 480px; }
.submenu a {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 14.5px;
    text-decoration: none;
}
.submenu a:hover { background: var(--primary-soft); color: var(--primary); }
.submenu .is-current > a { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.submenu .is-current > a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 9px 2px 0;
    background: var(--accent);
    transform: rotate(45deg);
    vertical-align: middle;
}

.nav-toggle {
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 13px 18px;
    border: 0;
    background: none;
    color: #fff;
    font: 600 15px var(--font-body);
    cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.flash {
    margin: 18px 0 0;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    background: var(--paper);
    font-weight: 500;
}
.flash-ok { border-color: var(--ok); background: var(--ok-soft); }
.flash-error { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

.pagehero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
    border-radius: 0 0 50% 50% / 0 0 46px 46px;
}
.pagehero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .24;
    filter: grayscale(.4);
}
.pagehero-in { padding-top: 50px; padding-bottom: 70px; }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
}
.breadcrumb li + li::before { content: "·"; margin-right: 6px; }
.breadcrumb a { color: var(--accent-on-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.pagehero h1 {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 6vw, 3.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.pagehero h1::after {
    content: "";
    display: block;
    width: 130px;
    height: 14px;
    margin: 18px auto 0;
    background:
        var(--cross-light) center / 14px no-repeat,
        linear-gradient(var(--accent-on-primary), var(--accent-on-primary)) left center / 50px 1px no-repeat,
        linear-gradient(var(--accent-on-primary), var(--accent-on-primary)) right center / 50px 1px no-repeat;
}
.pagehero-sub { max-width: 640px; margin: 16px auto 0; color: rgba(255, 255, 255, .86); font-size: 17px; }

.section { padding: 48px 0; }
.section-compact { padding-bottom: 0; }
.section-tint { background: var(--primary-soft); }
.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    text-align: center;
}
.section-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent-text);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-head .section-kicker::before,
.section-head .section-kicker::after { content: ""; width: 30px; height: 1px; background: var(--accent); }
.section-title { color: var(--primary); font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.1rem); line-height: 1.12; }
.section-head-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 15px; text-decoration: none; }
.section-head-link::after { content: "→"; transition: transform .2s var(--ease); }
.section-head-link:hover::after { transform: translateX(4px); }
.section-intro { margin-bottom: 36px; }

.home {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 64px;
}

.box-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 1.55rem;
    line-height: 1.15;
    text-align: center;
}
.box-ico {
    flex: none;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-text);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-orari {
    position: relative;
    align-self: start;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px 28px;
    border-radius: 22px;
    background: var(--primary);
    color: #fff;
    text-align: center;
}
.home-orari::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(159, 227, 224, .5);
    border-radius: 15px;
    pointer-events: none;
}
.home-orari .box-title { color: #fff; }
.home-orari .box-ico { background: transparent; border-color: var(--accent-on-primary); color: var(--accent-on-primary); }
.home-orari .home-orari-text { margin-inline: auto; color: rgba(255, 255, 255, .94); }
.home-orari .home-orari-text h2,
.home-orari .home-orari-text h3,
.home-orari .home-orari-text h4 {
    margin: 16px 0 3px;
    color: var(--accent-on-primary);
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.home-orari .home-orari-text p { margin: 0 0 4px; }
.home-orari .home-orari-text strong { color: #fff; }
.home-orari .home-orari-text em { color: rgba(255, 255, 255, .7); font-size: 14px; }
.home-orari .home-orari-text a:not(.btn):not(.cta-btn) { color: var(--accent-on-primary); text-decoration-color: var(--accent-on-primary); }
.home-orari .home-orari-text ul { margin: 0 0 6px; padding: 0; list-style: none; }

.home-ann,
.home-day {
    padding: 34px 32px 30px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.home-ann .box-title::after,
.home-day .box-title::after {
    content: "";
    width: 110px;
    height: 12px;
    background:
        var(--cross-accent) center / 12px no-repeat,
        linear-gradient(var(--accent), var(--accent)) left center / 42px 1px no-repeat,
        linear-gradient(var(--accent), var(--accent)) right center / 42px 1px no-repeat;
}
.ann-list { margin-top: 8px; }
.ann-item { padding: 16px 0; }
.ann-item + .ann-item::before { content: ""; display: block; width: 6px; height: 6px; margin: 0 auto 18px; background: var(--accent); transform: rotate(45deg); }
.ann-item h3 { margin-bottom: 4px; color: var(--primary); font-family: var(--font-head); font-size: 1.28rem; line-height: 1.25; }
.ann-item h3 a { text-decoration: none; }
.ann-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ann-item p { margin: 0; color: var(--ink-2); }
.ann-item .ann-date { margin-bottom: 4px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ann-item strong { color: var(--primary); }

.home-day { display: flex; flex-direction: column; }
.home-day-body { flex: 1; min-height: 180px; margin-top: 22px; }
.home-day-more { display: inline-flex; align-self: center; align-items: center; gap: 8px; margin-top: 20px; color: var(--primary); font-size: 15px; font-weight: 600; text-decoration: none; }
.home-day-more::after { content: "↗"; transition: transform .2s var(--ease); }
.home-day-more:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.home-day-more:hover::after { transform: translate(2px, -2px); }

.home-liturgia .liturgy-container { width: auto; padding: 0; border: 0; background: none; }
.home-liturgia .liturgy-title { display: none; }
.home-liturgia .liturgy-content { padding: 0; }
.home-liturgia .liturgy-main-title { margin: 0; font-family: var(--font-head); font-size: 1.28rem; line-height: 1.25; text-align: center; }
.home-liturgia .liturgy-main-title a { color: var(--primary); font-weight: 600; text-decoration: none; }
.home-liturgia .liturgy-main-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.home-liturgia .liturgy-color { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; text-align: center; }
.home-liturgia .liturgy-readings { margin-top: 14px; }
.home-liturgia .liturgy-readings p {
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.5;
}
.home-liturgia .liturgy-readings p:last-child { padding-bottom: 0; }
.home-liturgia .liturgy-readings strong { color: var(--accent-text); font-family: var(--font-body); font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-liturgia .reading-reference { margin-left: 6px; color: var(--muted); font-family: var(--font-body); font-size: 13px; font-style: normal; }

.home-santo .santiebeati-widget.daily-saint,
.home-santo .santiebeati-widget.daily-list { width: auto; border: 0; background: none; color: var(--ink); font-family: var(--font-body); }
.home-santo .santiebeati-widget .daily-saint-header,
.home-santo .santiebeati-widget .daily-list-title,
.home-santo .santiebeati-widget .daily-saint-more,
.home-santo .santiebeati-widget .daily-list-more { display: none; }
.home-santo .santiebeati-widget .daily-saint-content { align-items: flex-start; gap: 22px; padding: 0; background: none; }
.home-santo .santiebeati-widget .daily-saint-image { flex: 0 0 132px; }
.home-santo .santiebeati-widget .daily-saint-image a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--primary-soft); box-shadow: var(--shadow-sm); }
.home-santo .santiebeati-widget .daily-saint-image img { display: block; width: 132px; height: 176px; object-fit: cover; }
.home-santo .santiebeati-widget .daily-saint-text { justify-content: flex-start; gap: 10px; padding: 0; text-align: left; }
.home-santo .santiebeati-widget .daily-saint-name { display: block; margin-bottom: 4px; color: var(--primary); font-family: var(--font-head); font-size: 1.28rem; line-height: 1.25; text-decoration: none; }
.home-santo .santiebeati-widget .daily-saint-name strong { font-weight: 600; }
.home-santo .santiebeati-widget .daily-saint-name:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.home-santo .santiebeati-widget .daily-saint-role { color: var(--accent-text); font-size: 14px; font-style: italic; }
.home-santo .santiebeati-widget .daily-saint-phrase { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.home-santo .santiebeati-widget .daily-list-content { padding: 0; background: none; }
.home-santo .santiebeati-widget .daily-list p { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.home-santo .santiebeati-widget .daily-list p:first-child { border-top: 0; padding-top: 0; }
.home-santo .santiebeati-widget .daily-list-saint { color: var(--primary); font-family: var(--font-head); font-size: 1.12rem; text-decoration: none; }
.home-santo .santiebeati-widget .daily-list-saint:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.home-santo .santiebeati-widget .daily-list-role { color: var(--accent-text); font-size: 14px; }

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.slider-track { display: flex; transition: transform .7s var(--ease); }
.slide { position: relative; flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px; }
.slide-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--primary-soft); }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 14px 10px; }
.slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-text);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.slide-kicker::before { content: ""; width: 12px; height: 12px; background: var(--cross-accent) center / contain no-repeat; }
.slide-title { color: var(--primary); font-family: var(--font-head); font-size: 1.65rem; line-height: 1.15; }
.slide-title a { text-decoration: none; }
.slide-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.slide-text { margin: 0; color: var(--ink-2); }
.slider-foot { display: flex; align-items: center; gap: 16px; padding: 4px 26px 22px; }
.stories { display: flex; gap: 8px; }
.stories-item {
    position: relative;
    flex: none;
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--line);
    cursor: pointer;
}
.stories-item::before { content: ""; position: absolute; inset: -10px 0; }
.stories-fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.stories-item.is-done .stories-fill { transform: scaleX(1); }
.stories-item.is-active .stories-fill { animation: story var(--story-duration, 6s) linear forwards; }
.slider.is-paused .stories-item.is-active .stories-fill { animation-play-state: paused; }
@keyframes story { to { transform: scaleX(1); } }
.slider-arrows { display: flex; gap: 8px; margin-left: auto; }
.slider-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.slider-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tile {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 12px 12px 24px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-img {
    width: 100%;
    aspect-ratio: 5 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    background: var(--primary-soft);
}
.tile-img-face { object-position: center 22%; }
.tile-body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px 0; }
.tile-kicker { color: var(--accent-text); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tile-title { color: var(--primary); font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.tile-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.tile-go::after { content: "→"; transition: transform .2s var(--ease); }
.tile-go-out::after { content: "↗"; }
.tile:hover .tile-go::after { transform: translateX(4px); }

.home-support {
    display: grid;
    justify-items: center;
    gap: 30px;
    padding: 50px 22px 34px;
    border-radius: 30px;
    background: var(--primary-dark) radial-gradient(ellipse at top, rgba(159, 227, 224, .16), transparent 60%);
    color: #fff;
    text-align: center;
}
.support-intro { max-width: 580px; }
.support-intro::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto 14px;
    background: var(--cross-light) center / contain no-repeat;
}
.home-support .section-kicker { margin-bottom: 6px; color: var(--accent-on-primary); }
.support-title { font-family: var(--font-head); font-size: 2.1rem; line-height: 1.12; }
.support-intro p { margin: 12px 0 0; color: rgba(255, 255, 255, .82); }
.support-cards { display: grid; width: 100%; max-width: 820px; gap: 18px; }
.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(159, 227, 224, .35);
}
.support-num { color: var(--accent-on-primary); font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.support-card .support-text { margin-top: 10px; color: rgba(255, 255, 255, .84); font-size: 15px; }
.support-card .support-text h2,
.support-card .support-text h3,
.support-card .support-text h4 { margin: 0 0 6px; color: #fff; font-family: var(--font-body); font-size: 17px; }
.support-card .support-text p { margin: 0 0 8px; }
.support-card .support-text strong { color: #fff; }
.support-card .support-text a:not(.btn):not(.cta-btn) { color: var(--accent-on-primary); font-weight: 600; text-decoration-color: var(--accent-on-primary); text-underline-offset: 4px; }
.support-cf {
    margin: 8px 0 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .14em;
    font-variant-numeric: tabular-nums;
}

.prose { max-width: 72ch; color: var(--ink-2); font-size: 17px; line-height: 1.72; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .5em; color: var(--primary); font-family: var(--font-head); line-height: 1.2; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.15rem; }
.prose strong { color: var(--ink); }
.prose a:not(.btn):not(.cta-btn) { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose img { height: auto; margin: 8px 0; border-radius: var(--radius-sm); }
.prose .prose-zoom { display: inline-block; padding: 0; border: 0; background: none; font: inherit; text-decoration: none; cursor: zoom-in; }
.prose .prose-zoom img { transition: box-shadow .2s, transform .2s var(--ease); }
.prose .prose-zoom:hover img { box-shadow: var(--shadow); transform: translateY(-2px); }
.prose a.prose-foto { cursor: zoom-in; }
.prose .ta-center { text-align: center; }
.prose .ta-center img { margin-inline: auto; }
.prose img.aligncenter { display: block; margin-inline: auto; }
.prose .prose-zoom:has(img.aligncenter) { display: block; width: fit-content; margin-inline: auto; }
.prose figure { margin: 1.4em 0; }
.prose figure.image { display: table; max-width: 100%; }
.prose figure.image figcaption { display: table-caption; caption-side: bottom; padding-top: 8px; color: var(--muted); font-size: .85rem; text-align: center; }
.prose blockquote {
    margin: 1.8em 0;
    padding: 24px 28px;
    border-radius: 22px;
    background: var(--primary-soft);
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}
.prose blockquote::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 10px; background: var(--cross-accent) center / contain no-repeat; }
.prose blockquote p { margin: 0; }
.prose hr { height: 14px; margin: 2em auto; border: 0; background: var(--cross-accent) center / 14px no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.prose table { width: 100%; margin-bottom: 1.4em; border-collapse: collapse; background: var(--surface); font-size: .94rem; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .prose thead td, .prose tr:first-child th { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--paper); }
.prose video { width: 100%; height: auto; margin: 1.2em 0; border-radius: var(--radius-sm); background: var(--primary-deep); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1.2em 0; border: 0; border-radius: var(--radius-sm); }
.prose a.cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 10px 0 14px;
    padding: 20px 24px;
    border-radius: 999px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 10px 22px -12px var(--cta, rgba(0, 58, 73, .5));
    transition: transform .25s var(--ease), box-shadow .25s;
}
.prose a.cta-btn::after {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
    mask: var(--icon-arrow) center / contain no-repeat;
    transition: transform .25s var(--ease);
}
.prose a.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px var(--cta, rgba(0, 58, 73, .55)); }
.prose a.cta-btn:hover::after { transform: translateX(4px); }
.prose-sm { font-size: 15.5px; line-height: 1.55; }
.prose-center { margin-inline: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.4em; }
.table-scroll > table { margin-bottom: 0; }

.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--primary-deep); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; }
.embed-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 1.4em 0;
    padding: 26px 22px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    background: var(--paper);
    text-align: center;
}
.embed-block-text { max-width: 52ch; margin: 0; color: var(--ink-2); font-size: .92rem; }
.embed-block-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.page-main { min-width: 0; }

.panel { padding: 24px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel + .panel { margin-top: 20px; }
.panel-head { margin: 0 0 14px; color: var(--primary); font-family: var(--font-head); font-size: 1.28rem; font-weight: 600; text-align: center; }
.panel-head::after { content: ""; display: block; width: 6px; height: 6px; margin: 10px auto 0; background: var(--accent); transform: rotate(45deg); }
.panel-list { margin: 0; padding: 0; list-style: none; }
.panel-list a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.panel-list a:hover { background: var(--primary-soft); color: var(--primary); }
.panel-list .is-current a { background: var(--primary); color: #fff; font-weight: 600; }
.panel-list-dated a { padding: 9px 14px; border-radius: var(--radius-sm); line-height: 1.35; }
.panel-list-dated time,
.panel-list-sub { display: block; margin-bottom: 2px; color: var(--accent-text); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel-list .panel-person { display: flex; align-items: center; gap: 12px; padding: 7px 10px; }
.panel-person-photo {
    flex: none;
    width: 46px;
    height: 58px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 8px;
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--line);
}
.panel-person-text { min-width: 0; }
.panel-cta { margin: 14px 0 0; text-align: center; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts a { color: var(--primary); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.grid-cards-small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 22px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--primary-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 12px 0; }
.card-date { color: var(--accent-text); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card-title { margin: 4px 0 8px; color: var(--primary); font-family: var(--font-head); font-size: 1.3rem; line-height: 1.22; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-text { margin: 0; color: var(--ink-2); font-size: 15px; }

.lockbox {
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 32px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.lockbox-icon { display: block; width: 46px; height: 46px; margin: 0 auto; padding: 12px; border-radius: 50%; background: var(--primary-soft); fill: var(--primary); }
.lockbox-title { margin: 14px 0 6px; color: var(--primary); font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; }
.lockbox-text { margin: 0 0 22px; color: var(--ink-2); }
.lockbox-form { text-align: left; }
.lockbox-label { display: block; margin: 0 0 6px 20px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.lockbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lockbox-row input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}
.lockbox-row input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 186, 188, .25); }
.lockbox-row .btn { flex: 0 0 auto; }
.lockbox-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -6px 0 20px;
    padding: 12px 18px;
    border: 1px solid rgba(179, 38, 30, .35);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger-dark);
    font-weight: 600;
    text-align: left;
}
.lockbox-error svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: currentColor; }
.lockbox.has-error { animation: lock-shake .45s var(--ease); }
.lockbox.has-error .lockbox-icon { background: var(--danger-soft); fill: var(--danger); }
.lockbox.has-error .lockbox-row input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
@keyframes lock-shake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(3px); }
}

.empty {
    padding: 36px 20px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--muted);
    text-align: center;
}

.news-search { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 22px; max-width: 640px; }
.news-search input {
    flex: 1 1 240px;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}
.news-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 186, 188, .25); }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--accent); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-count { color: var(--accent-text); font-size: 12px; font-weight: 700; }
.chip.is-active .chip-count { color: var(--accent-on-primary); }
.news-results { margin: 0 0 20px; color: var(--muted); text-align: center; }
.news-results b { color: var(--ink); }
.news-activity-link { margin: -10px 0 24px; text-align: center; }
.news-activity-link a { color: var(--primary); font-weight: 600; }

.news-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 30px;
    padding: 12px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.news-lead-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--primary-soft); }
.news-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.news-lead-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 22px 14px 12px; }
.news-lead-title { color: var(--primary); font-family: var(--font-head); font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.15; }
.news-lead-title a { text-decoration: none; }
.news-lead-text { margin: 0; color: var(--ink-2); }
.news-lead-more { margin: 6px 0 0; }

.news-article { min-width: 0; }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.news-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-nav-link {
    display: block;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 1.05rem;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color .2s;
}
.news-nav-link:hover { border-color: var(--accent); }
.news-nav-next { text-align: right; }
.news-nav-label { display: block; margin-bottom: 2px; color: var(--accent-text); font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.pagination-wrap { margin-top: 36px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

.page-children { margin-top: 44px; }
.page-children-title { margin-bottom: 20px; color: var(--primary); font-family: var(--font-head); font-size: 1.5rem; text-align: center; }

.grid-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 260px)); justify-content: center; gap: 24px; }
.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 22px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 12px;
    background: var(--primary-soft);
}
.person-role { margin-top: 16px; color: var(--accent-text); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.person-name { margin-top: 4px; color: var(--primary); font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.person-sub { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.person-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.person-figure { margin: 0 auto; width: min(100%, 300px); text-align: center; }
.person-figure-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
    border: 10px solid var(--surface);
    border-radius: 18px;
    background: var(--primary-soft);
    box-shadow: var(--shadow-sm);
}
.person-figure-cap { margin-top: 12px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 11px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(var(--accent), var(--line));
}
.timeline-item { position: relative; padding: 0 0 26px 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
    box-sizing: border-box;
}
.timeline-years { display: block; margin-bottom: 8px; color: var(--primary); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.timeline-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px 10px 10px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.timeline-photo {
    flex: none;
    width: 76px;
    height: 92px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 12px;
    background: var(--primary-soft);
}
.timeline-text { display: flex; flex-direction: column; min-width: 0; }
.timeline-text .person-role { margin-top: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--primary-soft); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.album-back { margin: 30px 0 0; text-align: center; }

.contatti-map { max-width: none; margin-top: 30px; }
.contatti-social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background: rgba(0, 26, 33, .94);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-cap { margin: 14px 0 0; color: #d4f2f1; font-size: .9rem; text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(159, 227, 224, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }

.sitefoot {
    margin-top: 0;
    background: var(--primary-dark);
    border-top: 4px solid var(--accent);
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    text-align: center;
}
.sitefoot-grid { display: grid; gap: 30px; padding-top: 48px; padding-bottom: 40px; }
.sitefoot-about { display: flex; flex-direction: column; align-items: center; }
.sitefoot-emblem { width: 84px; height: 84px; padding: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(159, 227, 224, .35); }
.sitefoot-name { margin: 14px 0 6px; color: #fff; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; }
.sitefoot-txt { max-width: 380px; margin: 0 auto; }
.sitefoot-social { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.sitefoot-soc {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(159, 227, 224, .45);
    border-radius: 50%;
    color: #fff;
    transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
}
.sitefoot-soc:hover,
.sitefoot-soc:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-3px) scale(1.12);
    box-shadow: 0 8px 20px rgba(0, 26, 33, .45), 0 0 0 4px rgba(37, 186, 188, .25);
}
.sitefoot-soc svg { width: 18px; height: 18px; fill: currentColor; }
.sitefoot-head { margin: 0 0 10px; color: var(--accent-on-primary); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sitefoot-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sitefoot-list a { color: #fff; text-decoration: none; }
.sitefoot-list a:hover { text-decoration: underline; }
.sitefoot-bottom { border-top: 1px solid rgba(159, 227, 224, .2); font-size: 13.5px; }
.sitefoot-bottom-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding-top: 16px; padding-bottom: 18px; }
.sitefoot-bottom p { margin: 0; }
.sitefoot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.sitefoot-legal a, .sitefoot-legal .linkbtn { color: rgba(255, 255, 255, .8); text-decoration: none; }
.sitefoot-legal a:hover, .sitefoot-legal .linkbtn:hover { color: #fff; text-decoration: underline; }
.sitefoot-legal .sitefoot-credit { color: rgba(255, 255, 255, .42); }
.sitefoot-legal .sitefoot-credit:hover { color: rgba(255, 255, 255, .75); }

.cookiebar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 250;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 1px solid rgba(159, 227, 224, .35);
    border-radius: var(--radius);
    background: var(--primary-deep);
    color: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-lg);
    animation: cookie-up .4s var(--ease);
}
.cookiebar[hidden] { display: none; }
@keyframes cookie-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cookiebar-in { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; max-width: var(--wrap); margin-inline: auto; padding: 20px 24px; }
.cookiebar-text { flex: 1 1 420px; font-size: .88rem; }
.cookiebar-text p { margin: 0; }
.cookiebar-text .cookiebar-title { margin-bottom: 4px; color: #fff; font-family: var(--font-head); font-size: 1.25rem; }
.cookiebar-text a:not(.btn) { color: var(--accent-on-primary); }
.cookiebar-prefs { display: grid; gap: 8px; margin-top: 14px; }
.cookiebar-prefs[hidden] { display: none; }
.cookiebar-text .cookiebar-save { margin-top: 4px; }
.cookiebar-opt { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.cookiebar-opt strong { color: #fff; }
.cookiebar-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookiebar-more { color: rgba(255, 255, 255, .85); font-size: .85rem; }

.totop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    width: 46px;
    height: 46px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .2s var(--ease);
}
.totop::before { content: "↑"; font-size: 1.3rem; line-height: 1; }
.totop:hover { transform: translateY(-3px); }
.totop[hidden] { display: none; }
.cookiebar:not([hidden]) ~ .totop { display: none; }
body.nav-open .cookiebar { display: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 899px) {
    .nav-toggle { display: flex; }
    .mainnav-list { display: none; flex-direction: column; gap: 0; padding: 0 0 12px; }
    .mainnav.is-open .mainnav-list { display: flex; max-height: calc(100dvh - 52px); overflow-y: auto; }
    .mainnav-item + .mainnav-item::before { display: none; }
    .mainnav-item { border-top: 1px solid rgba(255, 255, 255, .12); }
    .mainnav-item > a { padding: 14px 4px; font-size: 16.5px; }
    .mainnav-item.has-children > a::after { display: none; }
    .submenu-toggle {
        position: absolute;
        top: 4px;
        right: 0;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        color: #fff;
        cursor: pointer;
    }
    .submenu-toggle::after {
        content: "";
        width: 9px;
        height: 9px;
        margin-top: -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s;
    }
    .mainnav-item.is-open > .submenu-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
    .submenu,
    .mainnav-item.is-wide .submenu {
        position: static;
        display: none;
        width: auto;
        margin: 0 0 12px;
        padding: 6px;
        border: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, .08);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .mainnav-item:hover > .submenu,
    .mainnav-item:focus-within > .submenu { transform: none; }
    .mainnav-item.is-open > .submenu { display: block; }
    .submenu a { color: #fff; }
    .submenu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
    .submenu .is-current > a { background: rgba(255, 255, 255, .14); color: var(--accent-on-primary); }
    .submenu .is-current > a::before { background: var(--accent-on-primary); }
}

@media (min-width: 640px) {
    .slide { grid-template-columns: 1.2fr 1fr; }
    .slide-media { aspect-ratio: auto; min-height: 340px; }
    .slide-body { justify-content: center; padding: 30px 30px 80px 38px; }
    .slider-foot { position: absolute; right: 12px; bottom: 12px; width: calc((100% - 24px) / 2.2); padding: 0 30px 20px 38px; }
    .slide-title { font-size: 2.05rem; }
    .support-cards { grid-template-columns: 1fr 1fr; }
    .news-lead { grid-template-columns: 1.2fr 1fr; }
    .news-lead-body { padding: 30px 30px 30px 38px; }
    .news-nav { grid-template-columns: 1fr 1fr; }
    .news-nav-next { grid-column: 2; }
    .sitefoot-grid { grid-template-columns: 1fr 1fr; }
    .sitefoot-about { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
    .home {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-areas:
            "ann ann ann ann ora ora"
            "sli sli sli sli sli sli"
            "par par att att spo spo"
            "lit lit lit san san san"
            "sup sup sup sup sup sup";
        gap: 30px;
        padding-top: 40px;
    }
    .home-ann { grid-area: ann; }
    .home-orari { grid-area: ora; }
    .home-liturgia { grid-area: lit; }
    .home-santo { grid-area: san; }
    .home-orari.is-alone { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 460px); }
    .home-slider { grid-area: sli; }
    .home-parroco { grid-area: par; }
    .home-attivita { grid-area: att; }
    .home-sport { grid-area: spo; }
    .home-support { grid-area: sup; padding: 56px 44px 44px; }
    .ann-list { max-height: 470px; overflow-y: auto; padding-right: 6px; }
    .slide-media { min-height: 380px; }
    .section { padding: 64px 0; }
    .section-compact { padding-bottom: 0; }
    .layout-side { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
    .person-page { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
    .person-figure { margin: 0; }
    .timeline::before { left: calc(50% - 1px); }
    .timeline-item { width: 50%; padding: 0 44px 0 0; }
    .timeline-item + .timeline-item { margin-top: -48px; }
    .timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 0 44px; }
    .timeline-item::before { left: auto; right: -8px; }
    .timeline-item:nth-child(even)::before { right: auto; left: -8px; }
    .timeline-item:nth-child(odd) .timeline-years { text-align: right; }
    .timeline-item:nth-child(odd) .timeline-card { flex-direction: row-reverse; padding: 10px 10px 10px 18px; text-align: right; }
    .sitefoot-grid { grid-template-columns: 1fr 1.4fr 1fr; align-items: start; }
    .sitefoot-about { grid-column: 2; grid-row: 1; }
}

@media (max-width: 639px) {
    .slider-arrows { display: none; }
    .slider-foot { justify-content: center; padding: 6px 22px 20px; }
    .stories { flex: 1; gap: 6px; }
    .stories-item { flex: 1 1 0; width: auto; min-width: 10px; }
}

@media (max-width: 560px) {
    .card { border-radius: 20px; }
    .card-media { border-radius: 12px; }
    .support-card { border-radius: 20px; }
}

@media (max-width: 480px) {
    .wrap { padding: 12px 16px; }
    .home-ann,
    .home-day { padding: 28px 20px 24px; }
    .home-santo .santiebeati-widget .daily-saint-content { gap: 16px; }
    .home-santo .santiebeati-widget .daily-saint-image { flex-basis: 100px; }
    .home-santo .santiebeati-widget .daily-saint-image img { width: 100px; height: 134px; }
    .home-orari { padding: 28px 22px; }
    .pagehero-in { padding-top: 38px; padding-bottom: 58px; }
    .cookiebar { left: 8px; right: 8px; bottom: 8px; }
    .cookiebar-in { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
