/* Google Fonts caricati via <link> in header.php — NON usare @import */

:root {
  --ivory:    #FFFFFF;
  --ivory-2:  #EDE9E0;
  --navy:     #1A3A5C;
  --navy-2:   #245478;
  --navy-3:   #2E6A8E;
  --gold:     #856A32;
  --gold-2:   #856A32;
  --gold-lt:  #E8D5A8;
  --text:     #2C2416;
  --muted:    #5C5548;
  --border:   #DDD8CE;
  --white:    #FFFFFF;
  --ff-disp:  'DM Serif Display', Georgia, serif;
  --ff-body:  'Inter', system-ui, sans-serif;
  --ease:     cubic-bezier(.4,0,.2,1);
  --max-w:    1140px;
  --hero-image: none;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-lt); color: var(--navy); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--ff-body); border: none; background: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .4;
}

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 32px; position: relative; z-index: 1; }
.section { padding: 64px 0; position: relative; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy); }

.skip-link { position: absolute; top: -100%; left: 16px; background: var(--gold); color: var(--navy); font-weight: 600; padding: 8px 16px; border-radius: 2px; z-index: 9999; }
.skip-link:focus { top: 16px; }

/* Topbar */
.topbar { background: var(--navy); padding: 10px 0; border-bottom: 1px solid rgba(200,169,110,.15); position: relative; z-index: 10; }
.topbar__inner { max-width: var(--max-w); margin-inline: auto; padding-inline: 32px; display: flex; align-items: center; justify-content: space-between; font-size: .76rem; letter-spacing: .1em; }
.topbar__badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); }
.topbar__badge-icon { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.topbar__date { color: var(--gold-lt); font-weight: 500; letter-spacing: .12em; font-size: .74rem; text-transform: uppercase; }

/* Header */
.site-header { background: rgba(247,244,238,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 32px rgba(20,30,48,.08); }
.site-header__inner { max-width: var(--max-w); margin-inline: auto; padding-inline: 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
img.site-logo__img { height: 40px; width: auto; display: block; flex-shrink: 0; }
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__title { font-family: var(--ff-disp); font-size: 1.05rem; font-weight: 600; color: var(--navy); letter-spacing: .02em; line-height: 1.15; display: block; }
.site-logo__subtitle { font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); display: block; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--text); padding: 8px 14px; border-radius: 4px; transition: color .25s, background .25s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.current-menu-item { color: var(--navy); background: rgba(20,30,48,.05); }
.btn-cta-header { background: var(--navy) !important; color: var(--ivory) !important; border-radius: 4px !important; font-weight: 500 !important; }
.btn-cta-header:hover { background: var(--navy-3) !important; color: var(--ivory) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Hero */
.hero { min-height: 92vh; background: var(--navy); display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
.hero__content { max-width: calc(var(--max-w) / 2); margin-left: auto; padding: 80px 48px 80px 32px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero__text { color: var(--ivory); }
.hero__eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); display: flex; align-items: center; gap: 14px; margin-bottom: 28px; animation: fadeUp .8s var(--ease) both; }
.hero__eyebrow-line { width: 32px; height: 1px; background: var(--gold); flex-shrink: 0; }
.hero__title { font-family: var(--ff-disp); font-size: clamp(2.6rem,4.8vw,4.2rem); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 12px; animation: fadeUp .8s .12s var(--ease) both; }
.hero__title strong { font-style: italic; background: linear-gradient(135deg,var(--gold-lt) 0%,var(--gold) 60%,var(--gold-2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__subtitle { font-family: var(--ff-disp); font-size: clamp(1rem,1.8vw,1.35rem); font-style: italic; font-weight: 400; color: rgba(247,244,238,.65); margin-bottom: 40px; line-height: 1.5; animation: fadeUp .8s .22s var(--ease) both; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 44px; animation: fadeUp .8s .32s var(--ease) both; }
.hero__meta-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(247,244,238,.75); font-weight: 500; }
.hero__meta-item svg { color: var(--gold); flex-shrink: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp .8s .42s var(--ease) both; }

/* Hero photo */
.hero__photo { position: relative; overflow: hidden; }
.hero__photo img,
.hero__photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::before { content: ''; position: absolute; top: 0; left: 0; width: 80px; height: 100%; background: var(--navy); clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 1; }
.hero__photo-placeholder { width: 100%; height: 100%; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .82rem; background: var(--ivory-2); }
.hero__photo-placeholder svg { opacity: .25; width: 48px; height: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-family: var(--ff-body); font-size: .85rem; font-weight: 500; letter-spacing: .04em; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: all .3s var(--ease); white-space: nowrap; }
.btn--primary, .btn--gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--primary:hover, .btn--gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,169,110,.3); }
.btn--outline { background: transparent; color: var(--ivory); border-color: rgba(247,244,238,.25); }
.btn--outline:hover { border-color: rgba(247,244,238,.6); background: rgba(247,244,238,.05); }
.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline-dark:hover { border-color: var(--navy); background: rgba(20,30,48,.04); }
.btn svg { flex-shrink: 0; transition: transform .3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Eyebrow + Ornament */
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); display: block; margin-bottom: 10px; }
.ornament-line { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ornament-line::before, .ornament-line::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,transparent,var(--gold),transparent); opacity: .5; }

/* Section header */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-family: var(--ff-disp); font-size: clamp(2rem,3.5vw,3.2rem); font-weight: 400; line-height: 1.15; color: var(--navy); letter-spacing: -.02em; margin-bottom: 14px; }
.section-header h2 em { font-weight: 300; font-style: italic; }
.section-header p { font-size: 1rem; color: var(--muted); max-width: 560px; margin-inline: auto; line-height: 1.75; }
.section-header--light h2 { color: var(--ivory); }
.section-header--light p { color: rgba(247,244,238,.55); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 80px; }
.about-grid__image { position: relative; border-radius: 2px; overflow: hidden; }
.about-grid__image img { width: 100%; height: auto; display: block; border-radius: 2px; }
.about-grid__placeholder { aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .8rem; background: linear-gradient(135deg,var(--ivory-2) 0%,var(--border) 100%); border-radius: 2px; }
.about-grid__placeholder svg { opacity: .25; width: 48px; height: 48px; }
.about-grid__text h2 { font-family: var(--ff-disp); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 400; line-height: 1.15; color: var(--navy); letter-spacing: -.02em; margin-bottom: 24px; }
.about-grid__text .lead { font-size: 1.08rem; color: var(--text); line-height: 1.85; margin-bottom: 20px; }
.about-grid__text p { font-size: .95rem; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.about-signature { font-family: var(--ff-disp); font-size: 1.5rem; font-style: italic; font-weight: 400; color: var(--navy); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.about-signature::before { content: ''; width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }
.about-signature span { font-family: var(--ff-body); font-size: .68rem; font-style: normal; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }

/* Prayer */
.prayer-section { background: var(--ivory-2); }
.prayer { max-width: 680px; margin: 0 auto; text-align: center; }
.prayer__ornament { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; }
.prayer .eyebrow { display: block; margin-bottom: 12px; }
.prayer__title { font-family: var(--ff-disp); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; line-height: 1.2; color: var(--navy); letter-spacing: -.02em; margin-bottom: 40px; }
.prayer__body { position: relative; padding: 0 40px; }
.prayer__body p { font-family: var(--ff-body); font-size: 1.05rem; color: var(--text); line-height: 2.1; margin-bottom: 24px; font-style: italic; }
.prayer__body p:last-of-type { margin-bottom: 0; }
.prayer__quote-open,
.prayer__quote-close { font-family: var(--ff-disp); font-size: 5rem; line-height: 1; color: var(--gold); opacity: .3; position: absolute; }
.prayer__quote-open { top: -20px; left: -10px; }
.prayer__quote-close { bottom: -12px; right: -10px; }
.prayer__attribution { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prayer__attr-line { width: 40px; height: 2px; background: var(--gold); margin-bottom: 12px; }
.prayer__attr-name { font-family: var(--ff-disp); font-size: .95rem; font-weight: 600; color: var(--navy); }
.prayer__attr-role { font-family: var(--ff-body); font-size: .75rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.cards-grid .info-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.info-card { background: var(--white); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; transition: background .3s; cursor: default; position: relative; }
.info-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.info-card:hover { background: var(--ivory); }
.info-card:hover::after { transform: scaleX(1); }
.info-card__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--gold-2); }
.info-card__title { font-family: var(--ff-disp); font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.info-card__desc { font-size: .9rem; color: var(--muted); line-height: 1.75; flex-grow: 1; }
.info-card__link { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-2); padding-top: 12px; border-top: 1px solid var(--border); transition: gap .3s; }

/* FAQ */
.faq-search { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 2px solid var(--border); border-radius: 8px; background: var(--white); margin-bottom: 12px; transition: border-color .25s; }
.faq-search:focus-within { border-color: var(--navy); }
.faq-search svg { color: var(--muted); flex-shrink: 0; }
.faq-search input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: var(--ff-body); color: var(--navy); background: transparent; }
.faq-search input::placeholder { color: var(--muted); }
.faq-search__no-results { text-align: center; padding: 32px 16px; color: var(--muted); font-size: .95rem; }
.page-content:has(.faq-page) { max-width: 900px; overflow: visible; }
.faq-page { max-width: 100%; margin: 0 auto; }
.faq-intro { margin-bottom: 40px; }
.faq-intro .lead { font-size: 1.05rem; color: var(--text); line-height: 1.8; }
.faq-sections { display: flex; flex-direction: column; gap: 40px; }
.faq-section h2 { font-family: var(--ff-disp); font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.faq-item { border-bottom: 1px solid var(--border); overflow: visible; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-family: var(--ff-body); font-size: .95rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--gold); flex-shrink: 0; margin-left: 16px; transition: transform .25s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--gold-2); }
.faq-answer { padding: 0 0 20px; overflow: visible; }
.faq-answer p { font-size: .92rem; color: var(--muted); line-height: 1.85; margin-bottom: 8px; word-wrap: break-word; overflow-wrap: break-word; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { list-style: none; padding: 0; margin: 8px 0; }
.faq-answer li { font-size: .92rem; color: var(--muted); line-height: 1.85; padding: 4px 0 4px 20px; position: relative; }
.faq-answer li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.faq-answer a { color: var(--gold-2); font-weight: 500; }
.info-card:hover .info-card__link { gap: 10px; }

/* Streaming */
.streaming-section { background: var(--navy); color: #fff; }
.streaming-center { text-align: center; max-width: 680px; margin: 0 auto; }
.streaming-center .eyebrow { color: var(--gold); }
.streaming-center h2 { font-family: var(--ff-disp); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.streaming-center p { font-size: 1.05rem; color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 28px; }
.streaming-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.streaming-channel { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); padding: 8px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; background: rgba(255,255,255,.06); transition: background .25s; }
a.streaming-channel { text-decoration: none; color: rgba(255,255,255,.8); }
.streaming-channel:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Timeline */
.timeline { max-width: 780px; margin-inline: auto; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover .timeline-body { border-left-color: var(--gold); }
.timeline-time { font-family: var(--ff-disp); font-size: 1.6rem; font-weight: 600; color: var(--gold-2); text-align: right; line-height: 1; padding-top: 6px; margin: 0; }
.timeline-time span { display: block; font-family: var(--ff-body); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.timeline-body { padding-left: 28px; border-left: 1.5px solid var(--border); transition: border-color .3s; }
.timeline-badge { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); background: rgba(200,169,110,.1); padding: 3px 10px; border-radius: 2px; display: inline-block; margin-bottom: 8px; }
.timeline-body h3 { font-family: var(--ff-disp); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.timeline-body p { font-size: .92rem; color: var(--muted); line-height: 1.75; }

/* FAQ */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--ff-body); font-size: .95rem; font-weight: 500; color: var(--navy); text-align: left; background: none; border: none; cursor: pointer; transition: color .25s; line-height: 1.5; }
.faq-question:hover, .faq-question[aria-expanded="true"] { color: var(--gold-2); }
.faq-icon { width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .3s; }
.faq-question[aria-expanded="true"] .faq-icon { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: rotate(45deg); }
.faq-answer__inner { padding-bottom: 22px; font-size: .92rem; color: var(--muted); line-height: 1.8; }

/* Partners */
.partners-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px 64px; }
.partner-logo { display: flex; align-items: center; gap: 12px; font-family: var(--ff-disp); font-size: 1.1rem; font-weight: 600; color: var(--muted); opacity: .45; transition: opacity .3s; }
.partner-logo:hover { opacity: .8; }

/* Footer */
.site-footer { background: var(--navy); padding: 64px 0 0; }
.site-footer__grid { max-width: var(--max-w); margin-inline: auto; padding-inline: 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-brand__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand__logo-img { height: 36px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); }
.footer-brand__name { font-family: var(--ff-disp); font-size: 1.05rem; font-weight: 600; color: var(--ivory); line-height: 1.2; display: block; }
.footer-brand__name span { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 2px; font-family: var(--ff-body); }
.footer-brand p { font-size: .85rem; color: rgba(247,244,238,.55); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 2px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(247,244,238,.4); transition: all .25s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-col h4 { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .85rem; color: rgba(247,244,238,.6); transition: color .25s; }
.footer-col ul a:hover { color: var(--ivory); }
.footer-bottom { max-width: var(--max-w); margin-inline: auto; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: rgba(247,244,238,.4); }
.footer-bottom__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom__links a { font-size: .78rem; color: rgba(247,244,238,.4); transition: color .25s; }
.footer-bottom__links a:hover { color: rgba(247,244,238,.7); }

/* PMR page */
.pmr-page { max-width: 720px; margin: 0 auto; }
.pmr-intro { text-align: center; margin-bottom: 48px; }
.pmr-intro__icon { color: var(--gold); margin-bottom: 16px; }
.pmr-intro .lead { font-size: 1.1rem; color: var(--text); line-height: 1.8; }
.pmr-rules { margin-bottom: 40px; }
.pmr-rules h2 { font-family: var(--ff-disp); font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 16px; }
.pmr-rules p { font-size: .95rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.pmr-rules ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.pmr-rules ul li { font-size: .95rem; color: var(--text); line-height: 1.8; padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--border); }
.pmr-rules ul li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pmr-notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: var(--ivory-2); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; margin-top: 20px; }
.pmr-notice svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.pmr-notice p { font-size: .88rem; color: var(--text); line-height: 1.7; margin: 0; }
.pmr-important { margin-bottom: 40px; }
.pmr-important h2 { font-family: var(--ff-disp); font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 16px; }
.pmr-important__banner { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; background: #fef3cd; border: 1px solid #f0d060; border-radius: 6px; }
.pmr-important__banner svg { flex-shrink: 0; color: #92700c; margin-top: 2px; }
.pmr-important__banner p { font-size: .92rem; color: #5a4200; line-height: 1.7; margin: 0; }
.pmr-contact { text-align: center; padding: 40px 32px; background: var(--ivory-2); border-radius: 6px; }
.pmr-contact h2 { font-family: var(--ff-disp); font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 12px; }
.pmr-contact p { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.pmr-contact__mail { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 600; color: var(--navy); text-decoration: none; padding: 12px 28px; border: 2px solid var(--navy); border-radius: 4px; transition: all .25s; }
.pmr-contact__mail:hover { background: var(--navy); color: #fff; }
.pmr-contact__note { font-size: .75rem; color: var(--muted); font-style: italic; margin-top: 8px; }

/* Come arrivare */
.page-content:has(.come-arrivare) { max-width: var(--max-w); }
.come-arrivare { max-width: 100%; margin: 0 auto; }
.ca-intro { margin-bottom: 40px; }
.ca-intro .lead { font-size: 1.05rem; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.ca-intro__details { display: flex; flex-wrap: wrap; gap: 16px; }
.ca-intro__detail { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.ca-intro__detail svg { color: var(--gold); flex-shrink: 0; }

.ca-tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }
.ca-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 32px; border: 2px solid var(--border); border-radius: 8px; background: var(--white); cursor: pointer; transition: all .25s var(--ease); font-family: var(--ff-body); color: var(--muted); }
.ca-tab svg { transition: color .25s; }
.ca-tab span { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ca-tab:hover { border-color: var(--navy); color: var(--navy); }
.ca-tab.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.ca-tab.active svg { stroke: #fff; }

.ca-panel { display: none; animation: fadeUp .4s var(--ease); }
.ca-panel.active { display: block; }
.ca-panel h2 { font-family: var(--ff-disp); font-size: 1.8rem; font-weight: 400; color: var(--navy); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.ca-section { margin-bottom: 36px; }
.ca-section h3 { font-family: var(--ff-disp); font-size: 1.2rem; font-weight: 400; color: var(--navy); margin-bottom: 16px; }
.ca-section p { font-size: .95rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }

.ca-routes { display: flex; flex-direction: column; gap: 12px; }
.ca-route { padding: 16px 20px; background: var(--ivory-2); border-radius: 4px; border-left: 3px solid var(--navy); }
.ca-route strong { font-size: .88rem; color: var(--navy); display: block; margin-bottom: 4px; }
.ca-route p { font-size: .88rem; margin: 0; }

.ca-parking { display: flex; flex-direction: column; gap: 10px; }
.ca-parking__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; }
.ca-parking__icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; border-radius: 4px; flex-shrink: 0; }
.ca-parking__item strong { font-size: .9rem; color: var(--navy); display: block; margin-bottom: 2px; }
.ca-parking__item p { font-size: .82rem; margin: 0; }

.ca-note { font-size: .85rem; color: var(--gold-2); font-weight: 500; margin-top: 12px; }

.ca-list { list-style: none; padding: 0; margin: 12px 0; }
.ca-list li { font-size: .92rem; color: var(--text); line-height: 1.8; padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--border); }
.ca-list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ca-list--closed li::before { background: #c0392b; }

.ca-stations { display: flex; flex-direction: column; gap: 14px; }
.ca-station { display: flex; gap: 16px; padding: 18px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
.ca-station__badge { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .05em; border-radius: 6px; flex-shrink: 0; }
.ca-station__badge--eav { background: #2d7d46; }
.ca-station strong { font-size: .95rem; color: var(--navy); display: block; margin-bottom: 4px; }
.ca-station p { font-size: .85rem; margin: 0 0 8px; }
.ca-link { font-size: .82rem; font-weight: 600; color: var(--gold-2); text-decoration: none; }
.ca-link:hover { text-decoration: underline; }

.ca-bus-stops { display: flex; flex-direction: column; gap: 20px; }
.ca-bus-stop { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ca-bus-stop__header { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.ca-bus-stop__number { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .95rem; border-radius: 50%; flex-shrink: 0; }
.ca-bus-stop__header strong { font-size: .95rem; color: var(--navy); display: block; margin-bottom: 4px; }
.ca-bus-stop__header p { font-size: .85rem; color: var(--muted); margin: 0; }
.ca-bus-stop__map { border-top: 1px solid var(--border); }
.ca-bus-stop__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; color: var(--muted); font-size: .8rem; background: var(--ivory-2); }
.ca-bus-stop__placeholder svg { opacity: .3; }

@media(max-width:640px) {
  .ca-tabs { flex-direction: column; gap: 8px; }
  .ca-tab { flex-direction: row; padding: 14px 20px; }
}

/* Page templates */
.page-hero { background: var(--navy); padding: 48px 24px; text-align: center; position: relative; overflow: hidden; }
.page-hero .eyebrow { display: block; margin-bottom: 10px; }
.page-hero h1 { font-family: var(--ff-disp); font-size: clamp(2rem,4vw,3.5rem); font-weight: 300; letter-spacing: -.03em; color: var(--ivory); line-height: 1.1; }
.page-hero p { margin-top: 14px; font-size: 1rem; color: rgba(247,244,238,.6); max-width: 540px; margin-inline: auto; }
.breadcrumb { padding: 14px 32px; background: var(--white); border-bottom: 1px solid var(--border); font-size: .82rem; }
.breadcrumb__inner { max-width: var(--max-w); margin-inline: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--navy); }
.page-content { max-width: 760px; margin: 0 auto; padding: 32px 32px; }
.page-content h2 { font-family: var(--ff-disp); font-size: 1.9rem; font-weight: 400; color: var(--navy); margin: 40px 0 12px; }
.page-content h3 { font-family: var(--ff-disp); font-size: 1.35rem; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.page-content p { margin-bottom: 16px; color: var(--text); line-height: 1.85; font-size: .95rem; }
.page-content a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.page-content blockquote { border-left: 2px solid var(--gold); padding: 12px 24px; margin: 24px 0; font-family: var(--ff-disp); font-size: 1.15rem; font-style: italic; color: var(--navy); }

/* Percorso page */
.page-content:has(.percorso-layout) { max-width: 1100px; }
.page-content .percorso-layout { max-width: 100%; gap: 48px; align-items: flex-start; }
.page-content .percorso-mappa img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border); }
.page-content .percorso-partenza { font-family: var(--ff-disp); font-size: 1.4rem; font-weight: 600; color: var(--navy); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--gold); }
.page-content .percorso-tappe { counter-reset: tappa; list-style: none; padding: 0; margin: 0 0 32px; }
.page-content .percorso-tappe li { position: relative; padding: 14px 0 14px 56px; border-left: 2px solid var(--border); margin-left: 16px; color: var(--text); font-size: .95rem; line-height: 1.5; counter-increment: tappa; }
.page-content .percorso-tappe li::before { content: counter(tappa); position: absolute; left: -16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.page-content .percorso-tappe li:last-child { border-left-color: transparent; }
.page-content .percorso-arrivo { background: var(--ivory-2); border-radius: 4px; padding: 16px 20px; border-left: 3px solid var(--gold); margin-top: 8px; }
.page-content .percorso-arrivo strong { color: var(--navy); }

/* I Papi e Pompei page */
.page-content .papi-intro { text-align: center; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.page-content .papi-intro .lead { font-size: 1.15rem; color: var(--text); max-width: 600px; margin: 0 auto; }
.page-content:has(.papi-timeline) { max-width: 1100px; }
.papi-timeline { display: flex; flex-direction: column; gap: 28px; }
.papi-card { display: grid; grid-template-columns: 2fr 3fr; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); }
.papi-card--reverse { grid-template-columns: 3fr 2fr; }
.papi-card--reverse .papi-card__img { order: 2; }
.papi-card--reverse .papi-card__text { order: 1; }
.papi-card__img { background: var(--ivory-2); min-height: 260px; overflow: hidden; }
.papi-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.papi-card__text { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.papi-card__text h3 { font-family: var(--ff-disp); font-size: 1.7rem; font-weight: 400; color: var(--navy); margin: 0 0 6px; }
.papi-date { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.papi-card__text p:not(.papi-date) { font-size: 1rem; color: var(--muted); line-height: 1.85; margin: 0; }
.papi-card--current { border-color: var(--gold); border-width: 2px; }
.papi-card--current h3 { font-size: 2rem; }
@media(max-width:768px) {
  .papi-card, .papi-card--reverse { grid-template-columns: 1fr; }
  .papi-card--reverse .papi-card__img { order: 0; }
  .papi-card--reverse .papi-card__text { order: 0; }
  .papi-card__img { min-height: 200px; }
  .papi-card__text { padding: 28px 24px; }
}

/* Papi slider/tabs */
.papi-slider-section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border); }
.papi-slider-section h2 { font-family: var(--ff-disp); font-size: 1.6rem; font-weight: 400; color: var(--navy); text-align: center; margin-bottom: 32px; }
.papi-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 32px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.papi-tabs::-webkit-scrollbar { display: none; }
.papi-tab { font-family: var(--ff-body); font-size: .82rem; font-weight: 500; color: var(--muted); padding: 10px 20px; border: 1px solid var(--border); border-radius: 3px; background: var(--white); cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.papi-tab:hover { color: var(--navy); border-color: var(--navy); }
.papi-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.papi-panels { position: relative; }
.papi-panel { display: none; animation: fadeUp .4s var(--ease); }
.papi-panel.active { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.papi-panel__img { border-radius: 4px; overflow: hidden; background: var(--ivory-2); aspect-ratio: 3/4; }
.papi-panel__img img { width: 100%; height: 100%; object-fit: cover; }
.papi-panel__content h3 { font-family: var(--ff-disp); font-size: 1.6rem; font-weight: 400; color: var(--navy); margin-bottom: 6px; }
.papi-panel__date { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.papi-panel__content p { font-size: 1rem; color: var(--muted); line-height: 1.85; }
@media(max-width:768px) {
  .papi-panel.active { grid-template-columns: 1fr; }
  .papi-panel__img { max-width: 240px; }
  .papi-tabs { justify-content: flex-start; }
}

/* Biglietti page */
.page-hero__sub { font-family: var(--ff-body); font-size: 1.05rem; color: rgba(255,255,255,.6); max-width: 500px; margin: 0 auto; line-height: 1.7; }

.biglietti-accrediti { background: var(--ivory); }
.accrediti-header { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.accrediti-header h2 { font-family: var(--ff-disp); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; color: var(--navy); margin: 12px 0 16px; }
.accrediti-header p { color: var(--muted); line-height: 1.7; }
.accrediti-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.accrediti-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 36px 28px; transition: box-shadow .3s var(--ease), border-color .3s; }
.accrediti-card:hover { box-shadow: 0 8px 32px rgba(29,52,86,.08); border-color: var(--gold); }
.accrediti-card__icon { color: var(--gold); margin-bottom: 20px; }
.accrediti-card h3 { font-family: var(--ff-disp); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.accrediti-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.accrediti-card__cta { font-size: .85rem; font-weight: 600; color: var(--gold-2); letter-spacing: .02em; text-decoration: none; transition: color .2s; }
.accrediti-card__cta:hover { color: var(--navy); }

/* Banner orari cancelli */
.biglietti-banner { background: var(--navy); border-radius: 6px; padding: 32px 36px; display: flex; gap: 24px; align-items: flex-start; margin-bottom: 48px; }
.biglietti-banner__icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.biglietti-banner__content { flex: 1; }
.biglietti-banner__content strong { font-family: var(--ff-disp); font-size: 1.15rem; color: #fff; display: block; margin-bottom: 16px; }
.biglietti-banner__times { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.biglietti-banner__time { text-align: center; }
.biglietti-banner__hour { font-family: var(--ff-disp); font-size: 2rem; font-weight: 700; color: var(--gold-lt); display: block; line-height: 1; }
.biglietti-banner__label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }
.biglietti-banner__sep { font-size: 1.4rem; color: rgba(255,255,255,.25); }
.biglietti-banner__warn { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.65; padding: 12px 16px; background: rgba(255,255,255,.06); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; margin: 0; }

.settori-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.settori-header h2 { font-family: var(--ff-disp); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; color: var(--navy); margin: 12px 0 16px; }
.settori-header p { color: var(--muted); line-height: 1.7; }

.settori-group-title { font-family: var(--ff-disp); font-size: 1.1rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 10px; margin: 40px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.settori-group-title svg { color: var(--gold); flex-shrink: 0; }

.settori-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.settori-grid--triple { display: flex; flex-direction: column; gap: 20px; }

.settore-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s; }
.settore-card:hover { box-shadow: 0 8px 32px rgba(29,52,86,.08); border-color: var(--gold); }
.settore-card--wide { grid-template-columns: 1fr 1fr; }
.settore-card--compact { grid-template-columns: 1fr 1fr; }
.settore-card__map { background: var(--ivory-2); min-height: 280px; }
.settore-card__map svg, .settore-card__map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.settore-card__info { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.settore-card__badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 2px; background: rgba(29,52,86,.08); color: var(--navy); margin-bottom: 12px; align-self: flex-start; }
.settore-card__badge--green { background: rgba(74,122,48,.1); color: #3a6820; }
.settore-card__badge--muted { background: rgba(29,52,86,.06); color: var(--muted); }
.settore-card__access { font-size: .78rem; color: var(--gold-2); font-weight: 500; margin-top: -8px; margin-bottom: 4px; }
/* Biglietti tabs */
.bigl-tabs { display: flex; align-items: stretch; gap: 12px; margin-bottom: 40px; }
.bigl-accrediti-group { display: flex; flex-direction: column; flex: 3; min-width: 0; gap: 8px; }
.bigl-tabs__sep { display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; letter-spacing: .16em; color: var(--muted); background: var(--gold-lt); border-radius: 6px; padding: 6px 12px; }
.bigl-accrediti-cards { display: flex; gap: 12px; flex: 1; }
.bigl-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 28px; border: 2px solid var(--border); border-radius: 8px; background: var(--white); cursor: pointer; transition: all .25s var(--ease); flex: 1; min-width: 140px; text-align: center; }
.bigl-tab svg { color: var(--muted); transition: color .25s; }
.bigl-tab__label { font-size: 1rem; font-weight: 600; color: var(--navy); }
.bigl-tab__sub { font-size: .82rem; color: var(--muted); }
.bigl-tab:hover { border-color: var(--navy); }
.bigl-tab.active { border-color: var(--navy); background: var(--navy); }
.bigl-tab.active svg { color: var(--gold-lt); }
.bigl-tab.active .bigl-tab__label { color: #fff; }
.bigl-tab.active .bigl-tab__sub { color: rgba(255,255,255,.6); }

.bigl-panel { display: none; animation: fadeUp .4s var(--ease); }
.bigl-panel.active { display: block; }

.biglietti-parrocchie-banner { display: flex; align-items: center; gap: 16px; padding: 20px 28px; background: var(--gold-lt); border-radius: 6px; margin-bottom: 40px; }
.biglietti-parrocchie-banner svg { color: var(--navy); flex-shrink: 0; }
.biglietti-parrocchie-banner p { font-size: .95rem; color: var(--navy); font-weight: 500; margin: 0; }

@media(max-width:768px) {
  .bigl-tabs { flex-direction: column; gap: 8px; }
  .bigl-tab { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 18px; min-width: auto; }
  .bigl-accrediti-group { flex: auto; }
  .bigl-accrediti-cards { flex-direction: column; gap: 8px; }
}

.biglietti-coming-soon { text-align: center; padding: 60px 24px; border: 2px dashed var(--border); border-radius: 12px; background: rgba(133,106,50,.04); }
.biglietti-coming-soon svg { color: var(--gold-2); margin-bottom: 16px; }
.biglietti-coming-soon h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 12px; }
.biglietti-coming-soon p { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.coming-soon-social { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.coming-soon-social__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; transition: opacity .25s; }
.coming-soon-social__link:hover { opacity: .85; }
.coming-soon-social__link svg { flex-shrink: 0; }

.biglietti-mappa-overview { margin-bottom: 40px; }
.biglietti-mappa-overview__img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(29,52,86,.08); }
.biglietti-mappa-overview__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px; background: var(--ivory-2); border-radius: 6px; border: 2px dashed var(--border); color: var(--muted); font-size: .85rem; }
.settore-card__info h4 { font-family: var(--ff-disp); font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.settore-card__info p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.settore-card__info .btn { align-self: flex-start; }
.btn--sm { padding: 8px 20px; font-size: .78rem; }

.biglietti-note { display: flex; gap: 20px; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 4px; padding: 28px; margin-top: 48px; }
.biglietti-note svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.biglietti-note strong { display: block; font-family: var(--ff-disp); font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.biglietti-note ul { list-style: none; padding: 0; margin: 0; }
.biglietti-note li { font-size: .9rem; color: var(--muted); line-height: 1.75; padding-left: 16px; position: relative; }
.biglietti-note li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Animations */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive — large screens */
@media(min-width:1440px) {
  :root { --max-w: 1320px; }
  .hero__content { max-width: 620px; margin-left: auto; margin-right: 0; padding: 100px 64px 100px 48px; }
  .hero__title { font-size: 3.6rem; }
  .hero__subtitle { font-size: 1.25rem; }
  .page-content { max-width: 900px; }
  .page-content:has(.come-arrivare),
  .page-content:has(.papi-timeline),
  .page-content:has(.percorso-layout),
  .page-content:has(.faq-page) { max-width: var(--max-w); }
  .about-grid { gap: 100px; }
  .prayer { max-width: 780px; }
  .section-header { max-width: 680px; margin-inline: auto; }
}
@media(min-width:1920px) {
  :root { --max-w: 1440px; }
  .container { padding-inline: 48px; }
  .hero__content { max-width: 720px; padding: 120px 80px 120px 64px; }
  .hero__title { font-size: 4.2rem; }
  .hero__subtitle { font-size: 1.35rem; }
  .page-content { max-width: 960px; }
  .about-grid { gap: 120px; }
  .topbar__inner { max-width: var(--max-w); }
  .site-header__inner { max-width: var(--max-w); }
}
@media(min-width:2400px) {
  :root { --max-w: 1600px; }
  .hero__content { max-width: 800px; padding: 140px 100px 140px 80px; }
  .hero__title { font-size: 4.8rem; }
  .hero__subtitle { font-size: 1.4rem; }
  .hero__meta-item { font-size: 1rem; }
  .page-content { max-width: 1040px; }
}

/* Logo page */
/* Legal page */
.legal-page { max-width: 800px; margin: 0 auto; }
.legal-page__updated { font-size: .85rem; color: var(--muted); font-style: italic; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.1rem; color: var(--navy); margin: 32px 0 12px; font-family: var(--ff-disp); }
.legal-page p { font-size: .95rem; line-height: 1.8; color: var(--navy); }
.legal-page ul { font-size: .95rem; line-height: 1.8; color: var(--navy); padding-left: 24px; margin: 8px 0 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--gold-2); font-weight: 600; text-decoration: underline; }

.page-content:has(.logo-page) { max-width: 900px; }
.logo-page { max-width: 900px; margin: 0 auto; }
.logo-page__hero { text-align: center; padding: 40px 0; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.logo-page__hero img { max-width: 340px; width: 100%; height: auto; display: block; margin: 0 auto; }
.logo-page__body { columns: 2; column-gap: 48px; }
.logo-page__body h2 { font-size: 1.15rem; color: var(--navy); margin: 0 0 8px; break-after: avoid; }
.logo-page__body p { font-size: .97rem; line-height: 1.8; color: var(--navy); margin: 0 0 1.4em; break-inside: avoid; }
@media(max-width:768px) {
  .logo-page__hero img { max-width: 240px; }
  .logo-page__body { columns: 1; }
}

/* Responsive — small screens */
@media(max-width:1024px) {
  .about-grid{grid-template-columns:1fr;gap:48px}
  .prayer__body{padding:0 20px}
  .site-footer__grid{grid-template-columns:1fr 1fr;gap:32px}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero__content{max-width:100%;margin:0;padding:64px 32px}
  .hero__photo{min-height:400px}
}
@media(max-width:768px) {
  :root{--max-w:100%}
  .cards-grid{grid-template-columns:1fr}
  .main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--ivory);border-bottom:1px solid var(--border);flex-direction:column;align-items:stretch;padding:12px 20px 20px;box-shadow:0 12px 40px rgba(20,30,48,.08)}
  .main-nav.open{display:flex}
  .nav-toggle{display:flex}
  .site-footer__grid{grid-template-columns:1fr;gap:28px}
  .container{padding-inline:20px}
  .section{padding:64px 0}
  .timeline-item{grid-template-columns:64px 1fr;gap:20px}
  .hero__photo::before{display:none}
  .accrediti-grid{grid-template-columns:1fr}
  .settori-grid,.settori-grid--triple{grid-template-columns:1fr}
  .settore-card,.settore-card--compact,.settore-card--wide{grid-template-columns:1fr}
  .settore-card__map{min-height:220px}
  .biglietti-banner{flex-direction:column;padding:24px 20px;gap:16px}
  .biglietti-banner__times{flex-wrap:wrap;gap:12px}
  .biglietti-banner__hour{font-size:1.6rem}
  .biglietti-banner__warn{font-size:.82rem}
}
