:root {
  --ink: #0b2431;
  --ink-2: #123746;
  --ink-3: #1b4f63;
  --paper: #f4f8f8;
  --white: #ffffff;
  --muted: #536b76;
  --line: #d7e3e7;
  --orange: #ff9800;
  --orange-dark: #d96f00;
  --cyan: #31c0b3;
  --red: #ff3145;
  --purple: #9b3cc1;
  --green: #0aab72;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --yellow: #ffd740;
  --shadow: 0 18px 55px rgba(6, 35, 48, .12);
  --radius: 22px;
  --radius-sm: 14px;
  --content: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--white); padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--content), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section.compact { padding: 2.75rem 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-white { background: var(--white); }
.eyebrow { margin: 0 0 .65rem; color: #a95000; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: .77rem; }
.eyebrow.cyan { color: #087b72; }
.eyebrow.purple { color: #78309a; }
.page-hero .eyebrow, .section-dark .eyebrow, .feature-panel .eyebrow, .info-card.dark .eyebrow { color: #ffb13b; }
.page-hero .eyebrow.cyan, .section-dark .eyebrow.cyan { color: #62ddd2; }
.page-hero .eyebrow.purple, .section-dark .eyebrow.purple { color: #e4a0f5; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 8vw, 4.65rem); }
h2 { font-size: clamp(1.75rem, 5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.55rem); }
p { margin: .75rem 0 0; }
.lead { max-width: 760px; font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: #d9e8ed; }
.muted { color: var(--muted); }
.section-dark .muted { color: #c9dbe1; }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.65rem; }
.section-head p { max-width: 720px; }

.color-line { height: 4px; background: linear-gradient(90deg, var(--cyan) 0 24%, var(--red) 24% 50%, #e83ead 50% 73%, var(--purple) 73% 100%); }
.topbar { background: #526c78; color: var(--white); font-weight: 700; font-size: .87rem; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: .5rem 0; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .75rem; }
.topbar-whatsapp-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,36,49,.98); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.header-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex: 0 0 166px; width: 166px; display: inline-flex; align-items: center; font-weight: 900; }
.brand img { width: 166px; height: auto; }
.brand-fallback { display: none; font-size: 1.05rem; }
.nav-toggle { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.42); border-radius: 13px; background: transparent; display: grid; place-items: center; color: var(--white); }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { width: 20px; height: 2px; background: currentColor; display: block; content: ""; transition: .2s ease; }
.nav-toggle-lines::before { transform: translateY(-6px); }
.nav-toggle-lines::after { transform: translateY(4px); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: var(--mobile-nav-max-height, calc(100dvh - 110px)); overflow-y: auto; overscroll-behavior: contain; padding: 1rem; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
body.nav-open { overflow: hidden; }
.language-switcher { display: inline-flex; align-items: center; width: fit-content; gap: .25rem; margin: 0 0 .8rem; padding: .22rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.16); }
.language-switcher a { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: rgba(255,255,255,.78); font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.language-switcher a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.language-switcher a:focus-visible { color: var(--white); outline: 3px solid #ffc365; outline-offset: 2px; }
.language-switcher a[aria-current="page"] { color: #102733; background: var(--orange); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.nav-links { display: grid; gap: .25rem; }
.nav-link, .nav-details summary { display: flex; align-items: center; min-height: 44px; padding: .65rem .75rem; border-radius: 10px; font-weight: 750; list-style: none; }
.nav-details summary { cursor: pointer; }
.nav-link:hover, .nav-link:focus-visible, .nav-details summary:hover, .nav-details summary:focus-visible { background: rgba(255,255,255,.1); }
.nav-link.is-active { color: #ffc365; background: rgba(255,152,0,.13); }
.nav-details summary::-webkit-details-marker { display: none; }
.nav-submenu-indicator { position: relative; flex: 0 0 24px; width: 24px; height: 24px; margin-left: .6rem; border: 1px solid rgba(49,192,179,.72); border-radius: 50%; background: rgba(49,192,179,.12); color: var(--cyan); transition: border-color .18s ease, background-color .18s ease; }
.nav-submenu-indicator::before, .nav-submenu-indicator::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: opacity .18s ease, transform .18s ease; }
.nav-submenu-indicator::after { transform: translate(-50%, -50%) rotate(90deg); }
.nav-details[open] .nav-submenu-indicator { border-color: rgba(255,195,101,.86); background: rgba(255,152,0,.16); color: #ffc365; }
.nav-details[open] .nav-submenu-indicator::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.nav-sub { padding: .35rem 0 .35rem 1rem; display: grid; gap: .1rem; }
.nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.site-header .button-outline { border-color: rgba(255,255,255,.55); color: var(--white); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 13px; padding: .75rem 1rem; font-weight: 850; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: #0a202b; }
.button-primary:hover { background: #ffad2c; }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }
.button-outline { border-color: #b7cad1; background: transparent; color: inherit; }
.button-danger { background: #fff0f1; border-color: #ffd1d7; color: #a21426; }
.button-small { min-height: 38px; padding: .48rem .75rem; font-size: .9rem; }
.button[aria-disabled="true"], button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button:focus-visible { box-shadow: 0 0 0 4px rgba(49,192,179,.2); }

.hero { position: relative; min-height: 620px; display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,25,34,.94) 0%, rgba(8,34,45,.77) 52%, rgba(8,34,45,.28) 100%), url("https://www.erasmusnapoli.com/assets/img/napoli_1.jpg") center/cover no-repeat; transform: scale(1.01); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--orange) 0 25%, var(--cyan) 25% 50%, var(--red) 50% 75%, var(--purple) 75%); }
.hero-inner { position: relative; padding: 5.5rem 0 4.5rem; }
.hero-copy { max-width: 790px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; color: #d4e4e9; font-size: .92rem; }

.quick-grid { display: grid; gap: .85rem; margin-top: -2rem; position: relative; z-index: 3; }
.quick-card { min-height: 140px; display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center; gap: 1rem; padding: 1.35rem; border-radius: var(--radius-sm); color: var(--white); box-shadow: var(--shadow); overflow: hidden; position: relative; isolation: isolate; transition: transform .18s ease, box-shadow .18s ease; }
.quick-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(11,36,49,.12), transparent 55%); }
.quick-card::after { content: "→"; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; font-size: 1.05rem; transition: transform .18s ease, background-color .18s ease; }
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(6,35,48,.18); }
.quick-card:hover::after { transform: translateX(3px); background: rgba(255,255,255,.13); }
.quick-card:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink), var(--shadow); }
.quick-card:nth-child(1) { background: #b62539; }
.quick-card:nth-child(2) { background: #a95300; }
.quick-card:nth-child(3) { background: #08776f; }
.quick-card:nth-child(4) { background: #713091; }
.quick-card:nth-child(5) { background: #075e54; }
.quick-card.quick-card-whatsapp { background: #075e54; color: var(--white); }
.quick-card.quick-card-whatsapp .whatsapp-icon { color: var(--whatsapp); }
.quick-card > span { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: .38rem; margin: 0; }
.quick-card strong { display: block; font-size: 1.18rem; line-height: 1.18; }
.quick-card span { display: block; margin: 0; opacity: 1; font-size: .9rem; line-height: 1.42; }
.quick-card > span > span:not(.quick-card-title) { color: var(--white); }
.quick-card .quick-card-title { display: flex; align-items: center; gap: .5rem; margin: 0; }
.quick-card .quick-card-title strong { display: inline; }
.whatsapp-icon { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-whatsapp { border-color: var(--whatsapp); background: var(--whatsapp); color: #062b1a; }
.button-whatsapp:hover { border-color: #20c861; background: #20c861; }

.event-grid, .catalog-grid { display: grid; gap: 1rem; }
.event-card, .catalog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 32px rgba(6,35,48,.07); }
.event-card { display: block; color: inherit; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(5,24,32,.14); border-color: #8fb4c3; }
.event-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.event-card:hover .event-actions .button, .event-card:focus-visible .event-actions .button { background: var(--ink); border-color: var(--ink); color: var(--white); }
.event-cover, .catalog-cover { aspect-ratio: 16/10; background: #214b5c center/cover no-repeat; position: relative; }
.event-cover::after, .catalog-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,30,39,.26)); }
.event-body, .catalog-body { padding: 1.1rem; }
.event-meta { display: grid; grid-template-columns: 64px 1fr; gap: .95rem; align-items: start; }
.date-box { min-height: 68px; border-radius: 14px; background: #edf4f5; display: grid; place-items: center; align-content: center; color: var(--ink); line-height: 1; }
.date-box strong { font-size: 1.65rem; }
.date-box span { margin-top: .35rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.event-card.orange .date-box { background: #fff0d8; color: #8a4800; }
.event-card.purple .date-box { background: #f4e6fa; color: #6f258e; }
.event-card.cyan .date-box { background: #dff7f4; color: #08796f; }
.event-kicker { color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.event-title { margin-top: .35rem; }
.event-location { margin-top: .55rem; color: var(--muted); font-size: .93rem; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.badge { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; padding: .28rem .64rem; font-size: .73rem; font-weight: 900; }
.badge-free { background: #dff8e9; color: #057647; }
.badge-last { background: #fff0c9; color: #845000; }
.badge-sold { background: #ffe1e4; color: #a21027; }
.badge-card { background: #eee4fa; color: #6e278e; }
.event-actions { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.price { font-weight: 900; font-size: 1.08rem; }
.price-group { display: grid; }
.price-group small { color: var(--muted); font-size: .76rem; }
.activity-price { margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px; background: #eef6f7; }

.split { display: grid; gap: 1.25rem; }
.feature-photo { min-height: 330px; border-radius: var(--radius); background: var(--ink-2) center/cover no-repeat; box-shadow: var(--shadow); }
.feature-panel { padding: 1.6rem; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.feature-panel p { color: #c7d9df; }
.feature-list { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .75rem; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: .5rem; }
.feature-list li::before { content: "✓"; color: var(--orange); font-weight: 900; }

.naresidenza-hero .lead { max-width: 830px; }
.naresidenza-intro { display: grid; gap: 1.25rem; align-items: stretch; }
.naresidenza-photo { min-height: 390px; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); box-shadow: var(--shadow); }
.naresidenza-photo img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.naresidenza-copy { display: grid; align-content: center; gap: .35rem; padding: clamp(1.35rem, 4vw, 2.4rem); border: 1px solid var(--line); border-top: 6px solid var(--purple); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 32px rgba(6,35,48,.07); }
.naresidenza-copy p { margin-top: .85rem; color: var(--ink-2); font-size: clamp(1rem, 1.7vw, 1.1rem); }
.naresidenza-copy p:first-child { margin-top: 0; font-weight: 750; }
.naresidenza-details { position: relative; }
.naresidenza-card { padding: clamp(1.35rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 32px rgba(6,35,48,.06); }
.naresidenza-card h2 { max-width: 780px; }
.naresidenza-card > p:not(.eyebrow) { max-width: 900px; color: var(--muted); }
.naresidenza-card-rooms { border-top: 6px solid var(--orange); }
.naresidenza-services-head { margin-top: 3rem; }
.naresidenza-services-grid { display: grid; gap: 1rem; }
.naresidenza-card-floor { border-top: 6px solid var(--cyan); }
.naresidenza-card-more { border-top: 6px solid var(--purple); }
.naresidenza-list { list-style: none; margin: 1.35rem 0 0; padding: 0; display: grid; gap: .75rem; }
.naresidenza-list li { position: relative; padding-left: 1.65rem; color: var(--ink-2); }
.naresidenza-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(49,192,179,.13); }
.naresidenza-room-list li::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,152,0,.13); }
.naresidenza-contact { max-width: 920px; }
.naresidenza-contact-head { margin-bottom: 1.5rem; }
.naresidenza-contact-head .lead { max-width: 820px; }
.naresidenza-form-card { padding: clamp(1.25rem, 4vw, 2rem); color: var(--ink); }

.content-hero .lead { max-width: 860px; }
.content-stats-header { margin-bottom: 1.2rem; }
.content-stats-header h2 { margin: 0; max-width: 760px; }
.content-stat-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.content-stat { min-height: 126px; display: grid; align-content: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.content-stat strong { display: block; color: var(--ink); font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1; }
.content-stat span { display: block; margin-top: .55rem; color: var(--muted); font-weight: 750; }
.content-stack { display: grid; gap: 1.15rem; }
.content-block { padding: clamp(1.35rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 32px rgba(6,35,48,.055); }
.content-block-orange { border-top: 6px solid var(--orange); }
.content-block-cyan { border-top: 6px solid var(--cyan); }
.content-block-purple { border-top: 6px solid var(--purple); }
.content-block-red { border-top: 6px solid var(--red); }
.content-block > h2 { max-width: 900px; }
.content-block > p:not(.eyebrow) { max-width: 960px; color: var(--muted); }
.content-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .7rem; }
.content-list li { position: relative; padding-left: 1.65rem; color: var(--ink-2); }
.content-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.content-card-grid { display: grid; gap: .85rem; margin-top: 1.3rem; }
.content-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.content-card h3 { letter-spacing: -.02em; }
.content-card p { color: var(--muted); }
.content-step-grid { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .85rem; }
.content-step-grid li { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: .85rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.content-step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 900; }
.content-step-grid p { margin-top: .35rem; color: var(--muted); }
.content-faq { display: grid; gap: .65rem; margin-top: 1.3rem; }
.content-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.content-faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; cursor: pointer; list-style: none; font-weight: 850; }
.content-faq summary::-webkit-details-marker { display: none; }
.content-faq summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); }
.content-faq details[open] summary::after { content: "−"; }
.content-faq details p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }
.content-note { margin-top: 1.2rem !important; padding: .9rem 1rem; border-left: 4px solid var(--orange); border-radius: 8px; background: #fff6e8; color: #654000 !important; }
.content-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.2rem; }
.content-links a { color: #075f75; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.content-cta { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.45rem, 4vw, 2.3rem); border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.content-cta p:not(.eyebrow) { max-width: 760px; color: #c9dce3; }
.content-cta .button { justify-self: start; }
.content-hero-actions { margin-top: 1.5rem; }
.content-block[id], .volunteer-application-section[id] { scroll-margin-top: 110px; }
.volunteer-application-section { overflow: hidden; }
.volunteer-application-layout { display: grid; gap: 1.5rem; align-items: start; }
.volunteer-application-copy { display: grid; gap: .8rem; }
.volunteer-application-copy h2 { max-width: 650px; }
.volunteer-application-copy .lead { max-width: 620px; margin: 0; }
.volunteer-application-steps { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .8rem; }
.volunteer-application-steps li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: .75rem; align-items: center; color: #e7f2f5; }
.volunteer-application-steps span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: var(--orange); font-weight: 900; }
.volunteer-form-card { padding: clamp(1.1rem, 3vw, 2rem); color: var(--ink); }
.volunteer-form-heading { margin-bottom: 1.25rem; }
.volunteer-form-heading h3 { font-size: clamp(1.45rem, 3vw, 2rem); }
.volunteer-form-heading p { margin: .45rem 0 0; color: var(--muted); }
.volunteer-form { position: relative; }
.volunteer-form .field > label, .volunteer-form legend { color: var(--ink); }
.volunteer-form .field > label > span[aria-hidden="true"], .volunteer-form legend > span[aria-hidden="true"] { color: #a21426; }
.volunteer-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.volunteer-fieldset legend { margin-bottom: .55rem; font-weight: 800; font-size: .9rem; }
.volunteer-choice-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.volunteer-choice-row .checkbox-option { justify-content: flex-start; }
.volunteer-confirmation { padding: .9rem; border: 1px solid #b9cdd4; border-radius: 12px; background: #f8fbfb; line-height: 1.5; }
.volunteer-confirmation:has(input:checked) { border-color: #168d83; background: #e5f7f4; }
.volunteer-motivation output { justify-self: end; color: var(--muted); font-size: .82rem; font-weight: 750; }
.volunteer-privacy-notice { margin-top: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.volunteer-privacy-notice summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; cursor: pointer; list-style: none; color: var(--ink); font-weight: 850; }
.volunteer-privacy-notice summary::-webkit-details-marker { display: none; }
.volunteer-privacy-notice summary::after { content: "+"; flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--white); }
.volunteer-privacy-notice[open] summary::after { content: "−"; }
.volunteer-privacy-notice p { margin: 0; padding: 0 .9rem 1rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.volunteer-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.volunteer-form-status { margin: 0; color: var(--muted); font-size: .9rem; }
.volunteer-conditional[hidden], .form-trap { display: none !important; }
.contact-link-grid { display: grid; gap: .85rem; margin-top: 1.25rem; }
.contact-link { display: grid; grid-template-columns: 48px minmax(0,1fr) 34px; align-items: center; gap: .9rem; min-height: 92px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.contact-link:hover { transform: translateY(-2px); border-color: #9ab8c3; box-shadow: 0 12px 28px rgba(6,35,48,.09); }
.contact-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.contact-link-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--white); }
.contact-link-whatsapp .contact-link-icon { background: var(--whatsapp-dark); }
.contact-link-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-link-copy { min-width: 0; }
.contact-link-copy span { display: block; color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.contact-link-copy strong { display: block; margin-top: .2rem; color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.contact-link-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #b8ccd4; border-radius: 50%; color: var(--ink); }

.duo-grid { display: grid; gap: 1rem; }
.info-card { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.info-card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.info-card.cyan { border-top: 6px solid var(--cyan); }
.info-card.red { border-top: 6px solid var(--red); }
.info-card.purple { border-top: 6px solid var(--purple); }
.info-card p { color: var(--muted); }
.info-card.dark p { color: #c6d7dd; }
.link-arrow { display: inline-flex; gap: .45rem; margin-top: 1.2rem; font-weight: 850; }

.whatsapp { background: #0d9f71; color: var(--white); border-radius: var(--radius); padding: 1.7rem; display: grid; gap: 1.2rem; align-items: center; }
.whatsapp p { color: #e3fff5; }

.page-hero { background: var(--ink); color: var(--white); padding: 3.4rem 0 3rem; }
.page-hero p { color: #c8d9df; max-width: 740px; }
.breadcrumbs { margin-bottom: 1rem; color: #acc2cb; font-size: .88rem; }

.filters { display: grid; gap: .75rem; margin-bottom: 1.3rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.field { display: grid; gap: .4rem; }
.registration-form .field { align-content: start; }
.field label, .field-label { font-weight: 800; font-size: .9rem; }
.field small { color: var(--muted); }
.field a, .checkbox a, .form-note a { color: #075f75; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.input, .form-grid input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="url"], select, textarea { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid #b9cdd4; border-radius: 12px; background: var(--white); color: var(--ink); }
.password-control { position: relative; }
.password-control input { padding-right: 6.5rem; }
.password-toggle { position: absolute; top: 50%; right: .4rem; min-height: 38px; padding: .35rem .65rem; border: 1px solid #a9c2cb; border-radius: 9px; background: #edf5f6; color: #143b4b; font-size: .82rem; font-weight: 850; transform: translateY(-50%); }
.password-toggle:hover { background: #dcebed; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(49,192,179,.34); outline-offset: 2px; }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; }
.checkbox input { width: 20px; height: 20px; margin-top: .2rem; }
.checkbox-group { min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink); }
.checkbox-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .65rem; margin-top: .55rem; }
.checkbox-option { min-height: 48px; padding: .7rem .8rem; border: 1px solid #b9cdd4; border-radius: 12px; background: #f8fbfb; color: var(--ink); }
.checkbox-option:has(input:checked) { border-color: #168d83; background: #e5f7f4; }
.checkbox-option span small { display: block; margin-top: .12rem; color: var(--muted); font-weight: 500; }
.form-grid { display: grid; gap: 1rem; }
.form-card { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 32px rgba(6,35,48,.06); }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.form-note { padding: .9rem 1rem; border-left: 4px solid var(--orange); background: #fff6e8; color: #654000; border-radius: 8px; }
.error-list { padding: 1rem 1.2rem; background: #fff0f1; color: #8e1425; border: 1px solid #ffc9d0; border-radius: 12px; }
.error-list ul { margin: .45rem 0 0; padding-left: 1.25rem; }
.field-help, .upload-summary { color: var(--muted); }
.field-error { color: #9a1327 !important; font-weight: 750; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .checkbox-group { border-color: #c52b3d; }
input[type="file"] { width: 100%; min-height: 48px; padding: .65rem .75rem; border: 1px solid #b9cdd4; border-radius: 12px; background: var(--white); color: var(--ink); }
input[type="file"]::file-selector-button { margin-right: .75rem; padding: .55rem .75rem; border: 0; border-radius: 9px; background: var(--ink); color: var(--white); font-weight: 800; cursor: pointer; }
.flash { margin: 1rem auto 0; width: min(var(--content), calc(100% - 2rem)); padding: .85rem 1rem; border-radius: 12px; display: flex; justify-content: space-between; gap: 1rem; }
.flash-success { background: #daf6e8; color: #075f3c; }
.flash-error { background: #ffe5e8; color: #8f1124; }
.flash-info { background: #e4f4f7; color: #124f61; }

.auth-wrap { min-height: 68vh; display: grid; align-items: center; padding: 3rem 0; }
.auth-card { width: min(620px, 100%); margin: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(2rem, 7vw, 3rem); }

.app-shell { display: grid; grid-template-columns: minmax(0,1fr); min-height: calc(100vh - 120px); }
.app-sidebar { min-width: 0; background: var(--ink); color: var(--white); padding: 1rem; }
.app-sidebar nav { display: flex; overflow-x: auto; gap: .45rem; scrollbar-width: thin; }
.app-sidebar a { flex: 0 0 auto; padding: .65rem .8rem; border-radius: 10px; color: #c9dce3; font-weight: 750; }
.app-sidebar a:hover, .app-sidebar a.is-active { background: var(--ink-3); color: var(--white); }
.app-main { min-width: 0; padding: 1.25rem; color: var(--ink); }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.app-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.app-head h1, .app-main h1, .app-main h2, .admin-form-card, .admin-form-card label, .admin-form-card legend { color: var(--ink); }
.admin-form-card .form-grid { margin-top: 1rem; }
.admin-editor-stack { display: grid; gap: 1rem; }
.admin-save-row { padding-top: .25rem; border-top: 1px solid var(--line); }
.admin-save-row .button { justify-self: start; min-width: 150px; }
.stat-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { min-width: 0; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.stat strong { display: block; margin-top: .2rem; font-size: 1.55rem; }
.dashboard-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.panel h2 { font-size: 1.35rem; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

.virtual-card { position: relative; overflow: hidden; min-height: 260px; padding: 1.25rem; border-radius: 24px; background: linear-gradient(135deg, #102f3e, #1b5569); color: var(--white); box-shadow: var(--shadow); }
.virtual-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -90px; top: -80px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--purple)); opacity: .85; }
.virtual-card > * { position: relative; z-index: 1; }
.card-layout { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 1rem; align-items: start; }
.card-main { min-width: 0; }
.virtual-card .card-logo { font-weight: 900; letter-spacing: .06em; }
.card-photo { width: 76px; aspect-ratio: 3/4; overflow: hidden; display: grid; place-items: center; border-radius: 13px; border: 2px solid rgba(255,255,255,.8); background: rgba(255,255,255,.16); color: var(--white); font-size: 1.35rem; font-weight: 900; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.virtual-card .card-number { margin-top: 2.25rem; overflow-wrap: anywhere; font-size: clamp(1.02rem, 4vw, 1.25rem); letter-spacing: .06em; font-weight: 850; }
.virtual-card .card-holder { margin-top: .9rem; font-size: 1.05rem; font-weight: 800; }
.virtual-card .card-meta { display: flex; gap: .55rem 1rem; flex-wrap: wrap; margin-top: .35rem; color: #d7e7eb; font-size: .85rem; }
.card-digital { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.24); }
.card-code { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; border: 4px solid var(--white); background: var(--white); color: var(--ink); font-weight: 900; }
.card-code img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.card-digital strong, .card-digital small { display: block; }
.card-digital small { color: #d7e7eb; }
.card-verify-link { display: inline-flex; margin-top: .25rem; color: #ffd18b; font-size: .82rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.status { display: inline-flex; align-items: center; min-height: 27px; padding: .25rem .58rem; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.status-active, .status-valid, .status-confirmed, .status-published { background: #dff7eb; color: #067447; }
.status-pending, .status-awaiting_payment, .status-last_spots { background: #fff0c9; color: #7c4b00; }
.status-disabled, .status-expired, .status-cancelled, .status-sold_out { background: #ffe3e6; color: #9a1327; }
.status-draft, .status-inactive { background: #e8eef0; color: #4c616b; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; color: var(--ink); }
.data-table th, .data-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { background: #eef5f6; color: #4d6874; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table tbody, .data-table tbody tr, .data-table tbody td { background: var(--white); color: var(--ink); }
.data-table tbody tr:hover td { background: #f8fbfb; color: var(--ink); }
.data-table td a, .data-table td strong { color: var(--ink); }
.data-table .form-actions { align-items: center; margin-top: 0; }
.data-table .form-actions form { margin: 0; }
.data-table .button-outline { border-color: #8ba7b2; background: var(--white); color: var(--ink); }
.card-status-actions { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border: 1px solid var(--line); border-radius: 12px; background: #f4f8f8; }
.button-status { min-height: 34px; padding: .38rem .58rem; border-width: 1px; }
.button-status-valid { border-color: #78c8a8; background: #e0f7ed; color: #075f3c; }
.button-status-expired { border-color: #deb75f; background: #fff1cf; color: #6b4300; }
.button-status-disabled { border-color: #e1a0aa; background: #fee7ea; color: #8b1424; }
.card-status-actions .button[aria-current="true"]:disabled { opacity: 1; box-shadow: inset 0 0 0 2px currentColor; cursor: default; }
.data-table tr:last-child td { border-bottom: 0; }
.table-title { font-weight: 850; }
.table-sub { color: var(--muted); font-size: .83rem; }
.empty { text-align: center; padding: 2rem; color: var(--muted); }

.album-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.album-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.album-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.album-photo figcaption { padding: .75rem; }
.album-photo .button { width: 100%; }

.calendar { display: grid; gap: .65rem; }
.calendar-row { display: grid; grid-template-columns: 60px 1fr; gap: .8rem; align-items: center; padding: .8rem; border-radius: 13px; background: #f0f6f7; }
.calendar-date { text-align: center; font-weight: 900; line-height: 1.1; }
.calendar-date span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; }

.site-footer { background: #081c25; color: #d5e4e9; padding: 3rem 0 1.4rem; }
.footer-grid { display: grid; gap: 1.7rem; }
.footer-grid h3 { color: var(--white); font-size: 1rem; letter-spacing: 0; }
.footer-links { display: grid; gap: .45rem; margin-top: .8rem; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #27414c; color: #9fb6bf; font-size: .82rem; }

@media (max-width: 699px) {
  .section { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 2.2rem; }
  .list-item, .panel-head { align-items: flex-start; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .data-table { min-width: 0; display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody { display: grid; gap: .8rem; }
  .data-table tr { padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 24px rgba(6,35,48,.05); }
  .data-table td { display: grid; grid-template-columns: minmax(98px, 36%) minmax(0,1fr); gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
  .data-table td.empty { display: block; padding: 1.5rem .5rem; }
  .data-table td.empty::before { content: none; }
  .data-table tr:last-child td { border-bottom: 0; }
  .data-table .form-actions { margin-top: 0; }
}

@media (max-width: 899px) {
  .button-small, .button-status { min-height: 44px; }
}

@media (min-width: 620px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .event-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field.full { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panel.wide { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3,1fr); }
  .whatsapp { grid-template-columns: 1fr auto; }
  .album-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .naresidenza-room-list { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 2rem; }
  .content-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-step-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-cta { grid-template-columns: minmax(0,1fr) auto; }
}

@media (min-width: 900px) {
  .volunteer-application-layout { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .volunteer-application-copy { position: sticky; top: 118px; }
  .topbar-inner { justify-content: flex-start; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .quick-card { min-height: 150px; }
  .event-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .split { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .naresidenza-intro { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .naresidenza-services-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  .feature-panel { padding: 2.3rem; }
  .duo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-shell { grid-template-columns: 238px minmax(0,1fr); }
  .app-sidebar { padding: 1.4rem 1rem; }
  .app-sidebar nav { position: sticky; top: 96px; display: grid; overflow: visible; }
  .app-sidebar a { white-space: normal; }
  .app-main { padding: 2rem; }
  .album-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (min-width: 1180px) {
  .quick-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .container { width: min(var(--content), calc(100% - 1.25rem)); }
  .topbar-inner { min-height: 52px; display: grid; grid-template-columns: max-content max-content; align-items: center; justify-content: center; gap: .35rem; padding: .5rem 0; }
  .topbar a { min-width: 0; gap: .25rem; white-space: nowrap; font-size: clamp(.69rem, 3vw, .75rem); letter-spacing: -.01em; }
  .topbar-dot { flex: 0 0 20px; width: 20px; height: 20px; }
  .topbar-whatsapp-icon { width: 13px; height: 13px; }
  .hero { min-height: 560px; }
  .hero-actions, .form-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button, .form-actions .button { width: 100%; }
  .event-actions { align-items: stretch; flex-direction: column; }
  .event-actions .button { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .list-item { align-items: stretch; flex-direction: column; }
  .album-grid { grid-template-columns: 1fr; }
  .card-layout { grid-template-columns: 64px minmax(0,1fr); gap: .8rem; }
  .card-photo { width: 64px; }
}

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .85rem; position: static; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; }
  body.nav-open { overflow: auto; }
  .language-switcher { order: 2; flex: 0 0 auto; margin: 0; padding: .15rem; }
  .language-switcher a { min-width: 30px; min-height: 30px; font-size: .7rem; }
  .nav-links { order: 1; display: flex; align-items: center; }
  .nav-details { position: relative; }
  .nav-sub { display: none; position: absolute; top: calc(100% + .4rem); right: 0; width: 230px; padding: .5rem; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
  .nav-sub .nav-link:hover, .nav-sub .nav-link:focus-visible { background: #edf5f6; }
  .nav-details[open] .nav-sub { display: grid; }
  .nav-actions { order: 3; display: flex; margin: 0; }
  .catalog-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .panel.span-two { grid-column: span 2; }
}

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