/* Pagine interne SIRI: stesso sistema della home (inchiostro + carta, accento giallo del logo). */
:root {
  color-scheme: dark;
  --ink: #0c0d0f; --fg: #efece6; --muted: #a3a09a;
  --paper: #efece6; --paper-2: #e4dfd4; --paper-ink: #16171a; --paper-muted: #5e5a52;
  --yellow: #f5c400; --yellow-ink: #7a5c00; --red: #e3342f;
  --line: rgba(239, 236, 230, .14); --line-p: rgba(22, 23, 26, .16); --panel: rgba(12, 13, 15, .72);
  --display: "Archivo", "Arial Narrow", sans-serif; --sans: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 5vw, 80px); --space: clamp(64px, 9vw, 140px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); }
body { font-family: var(--sans); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.55; background: var(--paper); color: var(--paper-ink); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 var(--gut); }
.label { font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); }
.label b { color: var(--yellow-ink); font-weight: 500; }
.label a { text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -.025em; line-height: .95; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); margin: 12px 0 20px; }
h2 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -.015em; }
p { max-width: 62ch; color: var(--paper-muted); }
p + p { margin-top: 1em; }
.todo { color: var(--red); font: 500 13px/1.4 var(--mono); }

/* Testata */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gut); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; background: var(--paper); border-radius: 999px; padding: 6px 14px; height: 44px; box-shadow: 0 0 0 1px var(--line-p); }
.brand img { height: 30px; width: auto; }
.island { display: flex; align-items: center; gap: 4px; background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.menu-btn { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; }
.menu-btn:hover { background: rgba(255,255,255,.06); }
.menu-btn i { width: 16px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] i { transform: scaleY(.25); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid currentColor; transition: background .25s var(--ease), color .25s var(--ease); white-space: nowrap; }
.pill .ar { transition: transform .25s var(--ease); }
.pill:hover .ar { transform: translateX(4px); }
.pill.y { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.pill.y:hover { background: #ffd83d; }
.pill.g { color: var(--fg); }
.pill.d { color: var(--paper-ink); }
.pill.d:hover { background: var(--paper-ink); color: var(--paper); }
.island .pill { min-height: 40px; padding: 0 16px; }

/* Menu a tutto schermo */
.menu { position: fixed; inset: 0; z-index: 15; background: var(--ink); color: var(--fg); padding: 100px var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; transition: color .2s; }
.menu li a span { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--yellow); }
.menu .label { color: var(--muted); margin-top: 40px; }
.menu-open body { overflow: hidden; }

.dock { display: none; }

/* Apertura pagina */
.pg-hero { background: var(--ink); color: var(--fg); padding: clamp(140px, 18vw, 220px) 0 clamp(56px, 7vw, 100px); position: relative; overflow: hidden; }
.pg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #141414 14px 28px); opacity: .9; }
.pg-hero .label { color: var(--muted); }
.pg-hero .label b { color: var(--yellow); }
.pg-hero h1 { font-size: clamp(2.6rem, 8vw, 8rem); line-height: .92; margin-top: 18px; max-width: 14ch; }
.pg-hero h1 em { font-style: normal; color: var(--yellow); }
.pg-hero .lead { color: var(--muted); margin-top: 28px; max-width: 58ch; }

.block { padding: var(--space) 0 0; }
.block:has(+ .cta-band), .block:has(+ .lightbox), .block:last-child { padding-bottom: var(--space); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.split > .l { grid-column: 1 / span 5; min-width: 0; }
.split > .r { grid-column: 7 / span 6; min-width: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.unit { border-top: 2px solid var(--paper-ink); padding-top: 18px; min-width: 0; }
.unit h3 { margin: 12px 0 12px; }
.unit p { font-size: 15px; }
.photos3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: 48px; }
.ph { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); }
.ph.logo-ph { aspect-ratio: auto; background: none; }
.ph.logo-ph img { height: auto; object-fit: contain; max-width: 320px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line-p); border-radius: 999px; padding: 9px 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Eventi */
.posts { display: grid; gap: clamp(48px, 6vw, 96px); }
.post { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); border-top: 1px solid var(--line-p); padding-top: 24px; }
.post-meta { grid-column: 1 / span 3; }
.post-body { grid-column: 4 / span 5; min-width: 0; }
.post-body h2 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); margin-top: 0; }
.post-ph { grid-column: 10 / span 3; align-self: start; }

/* SIRI News */
.news { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.news-item { background: var(--paper-2); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 14px; min-height: 220px; min-width: 0; }
.news-item h3 { margin-bottom: auto; }
.news-item .pill { align-self: flex-start; }

/* Marchi */
.brand-list { list-style: none; columns: 2; column-gap: clamp(16px, 4vw, 64px); }
.brand-row { break-inside: avoid; display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-p); text-decoration: none; }
.brand-row .bn { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.05; }
.brand-row .bk { font: 500 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); text-align: right; }
a.brand-row:hover .bn { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 6px; }
.note { margin-top: 40px; }

/* Formazione */
.course { margin-top: 18px; border-top: 2px solid var(--paper-ink); padding-top: 20px; display: grid; gap: 14px; justify-items: start; max-width: 760px; }

/* Galleria */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g-item { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; margin: auto; }
.lightbox::backdrop { background: rgba(12, 13, 15, .92); }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; height: auto; margin: 0 auto; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 26px; cursor: pointer; }

/* Fascia contatti */
.cta-band { background: var(--ink); color: var(--fg); padding: var(--space) 0; }
.cta-band .label { color: var(--muted); }
.cta-band .label b { color: var(--yellow); }
.cta-band h2 { font-size: clamp(2.4rem, 7vw, 7rem); max-width: 12ch; }
.cta-band h2 em { background: none; color: var(--yellow); padding: 0; }
.tel { display: inline-block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.2rem, 6vw, 5rem); letter-spacing: -.03em; line-height: 1; color: var(--yellow); text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-band .small { color: var(--muted); margin-top: 18px; }
footer { background: var(--ink); color: var(--muted); font: 500 13px/1.6 var(--mono); letter-spacing: .04em; padding: 26px var(--gut) 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 1024px) {
  .grid4, .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-meta { grid-column: 1 / -1; } .post-body { grid-column: 1 / span 8; } .post-ph { grid-column: 9 / span 4; }
}
@media (max-width: 768px) {
  .top { padding: 10px 16px; }
  .brand { height: 40px; padding: 5px 12px; } .brand img { height: 26px; }
  .island .pill { display: none; }
  .dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 12; gap: 8px; }
  .dock .pill { flex: 1; padding: 0 12px; min-height: 52px; }
  .dock .pill.g { flex: 0 0 auto; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .menu-open .dock { display: none; }
  .menu ol { grid-template-columns: 1fr; }
  .split > .l, .split > .r, .post-body, .post-ph, .post-meta { grid-column: 1 / -1; }
  .split > .r { margin-top: 8px; }
  .grid4, .news, .photos3 { grid-template-columns: 1fr; }
  .photos3 { margin-top: 32px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .brand-list { columns: 1; }
  .brand-row { grid-template-columns: 1fr auto; } .brand-row .bk { display: none; }
  footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.block[id] { scroll-margin-top: 72px; }
