@font-face {
  font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/inter-latin.woff2') format('woff2');
}
:root {
  color-scheme: dark; --page: #151423; --surface: #211e33; --raised: #2a2642;
  --line: #444361; --ink: #f7f3e8; --subtle: #cdc9d8; --accent: #f0c77c;
  --on-accent: #302214; --photo-overlay: #191629;
  font-family: Inter, Arial, sans-serif; color: var(--ink); background: var(--page);
}
html[data-theme="smeraldo"] {
  --page: #101e1c; --surface: #182b26; --raised: #203931; --line: #395149;
  --accent: #a7e0b7; --on-accent: #12281c; --photo-overlay: #182821;
}
html[data-theme="ambra"] {
  --page: #241a16; --surface: #31241c; --raised: #403127; --line: #594338;
  --accent: #ffd18b; --on-accent: #302012; --photo-overlay: #2a201b;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:is(a, button, input, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.page-width { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: -90px; left: 15px; z-index: 3; background: var(--accent); color: var(--on-accent); padding: 12px; }
.skip:focus { top: 8px; }
.masthead { border-bottom: 1px solid var(--line); }
.header-inner, .mast-brand, .button-quiet, .primary-link, .channel-row, .icon-button, .dialog-heading { display: flex; align-items: center; }
.header-inner { min-height: 84px; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 6px; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-inline-start: auto; }
.mast-brand { gap: 11px; text-decoration: none; font-size: .79rem; letter-spacing: .015em; line-height: 1.35; color: var(--subtle); }
.mast-brand strong { font-weight: 620; font-size: .92rem; color: var(--ink); }
.mast-brand img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.button-quiet, .icon-button { justify-content: center; gap: .55rem; min-height: 44px; border-radius: 24px; padding: 9px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 550; }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.button-quiet .icon { width: 16px; height: 16px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--photo-overlay); margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; min-height: 410px; display: grid; align-items: center; }
.hero--avvento { border-color: color-mix(in srgb, #aed9ff 26%, var(--line)); }
.hero-art { position: absolute; inset: 0 0 0 46%; z-index: -1; }
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--photo-overlay) 1%, transparent 35%); }
.hero-copy { position: relative; padding: clamp(32px, 5vw, 65px); max-width: 62%; }
h1,h2,.feature-copy strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(3.2rem, 6.7vw, 5.6rem); line-height: .96; letter-spacing: -.06em; text-wrap: balance; overflow-wrap: anywhere; }
h1 span, h1 em { display: block; }
h1 em { font-size: .65em; color: var(--accent); font-weight: 400; letter-spacing: -.045em; line-height: 1.2; margin-top: .06em; }
.bio { max-width: 368px; line-height: 1.62; margin: 22px 0; font-size: 1.035rem; text-wrap: pretty; }
.primary-wrap { display: grid; justify-items: start; gap: 9px; }
.primary-link { width: fit-content; gap: .65rem; padding: 13px 20px; min-height: 48px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .96rem; border-radius: 9px; text-decoration: none; }
.primary-wrap > .link-description { font-size: .83rem; color: #d3d5d9; max-width: 23rem; }
.link-description { display: block; font-size: .91rem; line-height: 1.55; color: var(--subtle); font-weight: 400; }
.disclosure { display: block; font-size: .82rem; margin-top: 3px; color: var(--accent); }
.content-section { margin: 42px 0 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.13; letter-spacing: -.045em; margin: 0 0 18px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(345px, 100%), 1fr)); gap: 16px; }
.feature-card { min-height: 145px; display: grid; grid-template-columns: minmax(110px, 31%) 1fr; overflow: hidden; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.feature-photo { position: relative; min-height: 128px; display: grid; place-items: center; overflow: hidden; background: var(--raised); }
.feature-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.feature-card--avvento { grid-template-columns: minmax(100px, 22%) minmax(0, 1fr); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.feature-card--avvento .feature-photo { background: #211b2b; }
.feature-card--avvento .feature-photo img { object-fit: contain; }
.feature-art { color: var(--accent); }
.feature-art .icon { width: 32px; height: 32px; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; min-width: 0; overflow-wrap: anywhere; }
.feature-copy strong { font-size: clamp(1.25rem, 2.3vw, 1.52rem); line-height: 1.13; letter-spacing: -.027em; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.channel-row { border: 1px solid var(--line); gap: 15px; padding: 16px; background: var(--surface); text-decoration: none; border-radius: 10px; min-width: 0; min-height: 82px; overflow-wrap: anywhere; }
.channel-symbol { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--raised); }
.channel-copy { min-width: 0; }
.channel-copy strong { font-size: 1rem; font-weight: 650; }
.channel-copy .link-description { margin-top: 3px; font-size: .86rem; }
#contatti .channel-grid, #sostieni .channel-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%),1fr)); }
footer { border-top: 1px solid var(--line); margin-top: 52px !important; color: var(--subtle); }
.footer-inner { display: grid; grid-template-columns: minmax(0,480px) minmax(180px, 320px); justify-content: space-between; gap: 30px; padding: 24px 0 40px; align-items: start; }
footer p,.credits { margin: 0; font-size: .83rem; line-height: 1.55; }
.credits summary { cursor: pointer; width: fit-content; min-height: 44px; padding: 4px 0; }
.credits p { margin: .4rem 0 1rem; }
.credits a { text-underline-offset: 3px; }
dialog { max-width: min(440px, calc(100vw - 32px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); padding: 24px; border-radius: 18px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #070a12c9; }
.dialog-heading { justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 1.7rem; margin: 0; }
.icon-button { width: 44px; height: 44px; flex: none; padding: 0; border-radius: 50%; }
dialog p { color: var(--subtle); font-size: .94rem; line-height: 1.55; }
dialog label { display: block; margin-top: 20px; font-size: .9rem; }
.copy-field { margin: 7px 0 14px; display: flex; gap: 8px; }
.copy-field input { border-radius: 8px; border: 1px solid var(--line); background: var(--page); color: var(--ink); padding: 8px; width: 100%; min-width: 0; }
.copy-field button { flex: 0 0 auto; }
#qr-box { display: grid; justify-items: start; gap: 12px; margin-top: 20px; }
#locandina { width: fit-content; margin-top: 12px; }
#codice-qr canvas { width: 145px; height: 145px; display: block; image-rendering: pixelated; border-radius: 3px; }
#feedback:empty { margin: 0; }
.playable-item { display: flex; flex-direction: column; min-width: 0; align-items: stretch; }
.play-inline { display: none; align-self: flex-start; margin: 1px 0 0; padding: 8px 3px; min-height: 44px; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.can-play .play-inline { display: inline-block; }
#player { width: min(660px, calc(100vw - 20px)); max-width: none; padding: clamp(12px, 3vw, 24px); }
#player .dialog-heading { margin-bottom: 14px; }
#player-contenuto iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 8px; background: var(--page); }
.player-video { aspect-ratio: 16 / 9; min-height: 200px; }
.player-track { height: 152px; }
.player-album { height: 352px; }
#player-esterno { display: inline-flex; min-height: 44px; align-items: center; margin-top: 5px; color: var(--accent); text-underline-offset: 3px; }
@media (hover: hover) {
  .button-quiet:hover,.icon-button:hover,.feature-card:hover,.channel-row:hover { background: var(--raised); border-color: var(--accent); }
  .primary-link:hover { filter: brightness(1.1); }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { min-height: 68px; }
  .hero { min-height: 350px; margin-top: 20px; }
  .hero-art { left: 35%; }
  .hero-copy { max-width: 68%; padding: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .page-width { width: min(100% - 28px, 560px); }
  .header-inner { min-height: 63px; gap: 8px; }
  .mast-brand { gap: 8px; }
  .mast-brand img { width: 48px; height: 48px; }
  .header-actions { gap: 6px; }
  .header-actions .button-quiet { padding-inline: 10px; }
  .hero { min-height: 0; margin-top: 12px; }
  .hero-art { inset: 0 0 auto auto; width: 57%; height: clamp(152px, 47vw, 212px); }
  .hero-art img { object-fit: contain; object-position: right top; }
  .hero-art::after {
    background: linear-gradient(90deg, var(--photo-overlay) 0%, color-mix(in srgb, var(--photo-overlay) 69%, transparent) 48%, transparent 94%),
      linear-gradient(0deg, var(--photo-overlay) 0%, color-mix(in srgb, var(--photo-overlay) 75%, transparent) 28%, transparent 75%);
  }
  .hero-copy { max-width: 100%; padding: clamp(29px, 9.5vw, 54px) clamp(14px, 4vw, 23px) 18px; }
  h1 { font-size: clamp(2.85rem, 11vw, 3.45rem); }
  h1 em { font-size: .62em; }
  .bio { margin: 10px 0 12px; font-size: 1rem; line-height: 1.44; }
  .primary-link { width: 100%; min-height: 50px; justify-content: center; text-align: center; padding-inline: 9px; gap: .45rem; }
  .primary-wrap { gap: 7px; }
  .primary-wrap > .link-description { font-size: .875rem; }
  .content-section { margin-top: 23px; }
  h2 { margin-bottom: 11px; }
  .board-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { grid-template-columns: clamp(76px, 23vw, 96px) minmax(0,1fr); min-height: 104px; }
  .feature-photo { min-height: 104px; }
  .feature-copy { padding: 12px; gap: 5px; }
  .feature-copy .link-description { font-size: .85rem; }
  .channel-grid { grid-template-columns: 1fr; gap: 8px; }
  .channel-row { min-height: 68px; padding: 10px 13px; gap: 13px; }
  footer { margin-top: 32px !important; }
}
@media (max-width: 360px) {
  .hero-copy { padding-bottom: 14px; }
  .content-section { margin-top: 16px; }
}
@media (max-width: 420px) {
  .share-label { display: none; }
  #apri-condivisione { width: 44px; padding: 0; }
  .header-actions [data-neve-comando] { padding-inline: 7px; gap: 5px; }
}
@media (forced-colors: active) {
  :is(a, button, input, summary):focus-visible { outline-color: Highlight; }
  .primary-link, .channel-symbol { border: 1px solid ButtonText; }
  .hero-art { display: none; }
}
