/* Lo Stato del Design 2027: layout delle pagine (si appoggia a style.css per reset, font e sezione organizzatore) */
:root {
  --ink: #0f0f0f;
  --dark: #141414;
  --coral: #f37860;
  --coral-strong: #ff6f61;
  --purple: #7a3fff;
  --green: #32c59b;
  --blue: #187cff;
  --sans: 'Instrument Sans', sans-serif;
  --mono: 'Anonymous Pro', monospace;
  --pixel: 'NeueBit', 'Instrument Sans', sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --g-circle: linear-gradient(160deg, #32c59b 10%, #7a3fff 95%);
  --g-square: linear-gradient(180deg, #e9b7c8 0%, #187cff 85%);
  --g-diamond: linear-gradient(135deg, #7a3fff 25%, #32c59b 100%);
  --g-tri: linear-gradient(160deg, #f0609a 10%, #8a4dff 90%);
}

body { font-family: var(--sans); color: var(--ink); background: #fbe4dc; }
.wrap { position: relative; z-index: 1; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(15,15,15,.7); }
.h-display { font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .92; font-size: clamp(38px, 5.6vw, 72px); }
.accent { color: var(--coral); }
section[id] { scroll-margin-top: 96px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* forme decorative */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.shape.circle { border-radius: 50%; background: var(--g-circle); }
.shape.square { background: var(--g-square); }
.shape.diamond { background: var(--g-diamond); transform: rotate(45deg); }
.shape.tri { background: var(--g-tri); clip-path: polygon(0 0, 100% 12%, 45% 100%); }
.shape.soft { filter: blur(28px); opacity: .75; }
.shape.blur { filter: blur(3px); }
.gridlines { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 65px 65px; }
.gridlines.dark { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }

/* header */
.site-header { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--max), 100%); z-index: 1000; display: flex; align-items: stretch; }
.site-header .brand { display: flex; align-items: center; padding: 16px 12px; background: rgba(255,255,255,.88); flex-shrink: 0; }
.site-header .brand img { width: 150px; height: auto; }
.site-header .bar { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.2vw, 28px); padding: 12px clamp(14px, 2vw, 22px);
  background: rgba(255,255,255,.22); border: 1px solid #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-height: 68px; }
.site-header nav { display: flex; gap: clamp(12px, 2vw, 26px); }
.site-header nav a { font-weight: 500; font-size: 13px; white-space: nowrap; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom-color: var(--ink); }
.site-header nav a.strong { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.btn-cta { background: var(--coral-strong); color: #fff; padding: 12px 14px; font-weight: 700; font-size: 12.5px; letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap; }
.btn-cta:hover { opacity: .9; }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .site-header .bar { flex-basis: 100%; order: 2; justify-content: flex-start; overflow-x: auto; min-height: 0; padding-block: 10px; border-top: 0; }
  .site-header .brand { flex: 1; }
  .site-header .btn-cta { display: none; }
}

/* hero home */
.hero { position: relative; overflow: hidden; min-height: clamp(640px, 100vh, 900px);
  background: radial-gradient(60% 60% at 78% 55%, rgba(170,120,255,.55), transparent 70%), linear-gradient(180deg, #ffd6cb 0%, #fbc7c5 45%, #e7b3d6 75%, #f4e9ef 100%); }
.hero .landscape { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; object-fit: cover; object-position: center 30%; }
.hero .wrap { padding-top: clamp(130px, 18vh, 190px); padding-bottom: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.hero h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(50px, 8vw, 112px); line-height: .88; letter-spacing: -.035em; }
.hero .tagline { margin-top: 18px; font-family: var(--mono); font-size: clamp(13px, 1.4vw, 16px); }
.glass { background: rgba(255,255,255,.32); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.when { margin-top: 30px; display: inline-block; padding: 14px 20px; font-family: var(--mono); }
.when small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.when strong { display: block; margin-top: 6px; font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .5px; }
.when span { display: block; font-size: 14px; }
.edition-card { margin-top: clamp(110px, 16vw, 190px); width: min(290px, 100%); padding: 20px; }
.tag { display: inline-block; background: var(--purple); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 8px; }
.edition-card h2 { margin-top: 14px; font-size: 22px; font-weight: 700; }
.edition-card p { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.btn-outline { display: inline-block; margin-top: 16px; padding: 11px 16px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 150px; }
  .edition-card { margin-top: 8px; }
  .hero .landscape { height: 32%; }
}

/* sezioni chiare */
.sec { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 128px); }
.sec .eyebrow + h1, .sec .eyebrow + h2 { margin-top: 20px; }
.lead { font-weight: 600; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; }
.copy p { font-size: 16px; line-height: 1.65; color: rgba(15,15,15,.85); }
.copy p + p { margin-top: 16px; }
.copy b, .copy strong { font-weight: 700; color: var(--ink); }

.impact { background: radial-gradient(45% 55% at 80% 40%, rgba(122,63,255,.35), transparent 70%), linear-gradient(200deg, #9d7cf5 0%, #f6cfc4 38%, #fde0d8 60%, #8fd3c2 120%); }
.impact .text { max-width: 600px; }
.impact .lead { margin-top: 28px; }
.impact .copy { margin-top: 28px; }

/* obiettivo */
.goal { background: var(--dark); color: #fff; }
.goal .eyebrow { color: rgba(255,255,255,.5); }
.goal h2 .accent { color: var(--coral-strong); }
.pillars { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(48px, 7vw, 88px) 32px; }
.pillar { text-align: center; max-width: 380px; margin-inline: auto; }
.pillar h3 { font-family: var(--mono); font-weight: 400; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; }
.pillar .icon { width: 64px; height: 64px; margin: 22px auto; }
.pillar .icon.circle { border-radius: 50%; background: var(--g-circle); }
.pillar .icon.square { width: 58px; height: 58px; background: var(--g-square); }
.pillar .icon.diamond { width: 50px; height: 50px; margin-block: 28px; transform: rotate(45deg); background: var(--g-diamond); }
.pillar .icon.tri { width: 56px; background: var(--g-tri); clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: calc(50% - 22px); }
.pillar p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.82); }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* chi è coinvolto */
.people { background: linear-gradient(180deg, #fde3db 0%, #fbd3cc 55%, #eeb0cc 85%, #fbbfae 100%); }
.people .intro { max-width: 900px; }
.people .intro .lead, .people .intro .copy { max-width: 640px; }
.people .lead { margin-top: 18px; }
.people .copy { margin-top: 14px; }
.roles { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1060px; }
.role { position: relative; padding: 52px 28px 40px 44px; min-height: 170px; background: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.role .num { position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.role h3 { font-size: 17px; font-weight: 700; }
.role p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } }

/* partner */
.partner { background: radial-gradient(40% 60% at 32% 105%, rgba(50,197,155,.45), transparent 70%), var(--dark); color: #fff; }
.partner .eyebrow { color: var(--green); }
.partner .grid2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.partner h2 { color: #fff; }
.logos { margin-top: 44px; display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.logos .sep { width: 1px; height: 40px; background: rgba(255,255,255,.7); }
.logos small { font-weight: 500; font-size: 15px; letter-spacing: 0; }
.logos .red { font-weight: 400; }
.partner .lead { color: var(--coral-strong); font-size: clamp(19px, 2vw, 23px); }
.partner .copy { margin-top: 32px; }
.partner .copy p { color: rgba(255,255,255,.75); font-size: 15px; }
.partner .copy b { color: #fff; }
@media (max-width: 760px) { .partner .grid2 { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: #000; color: #fff; padding-block: clamp(48px, 6vw, 64px) 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr auto auto; gap: 48px clamp(48px, 10vw, 140px); }
.site-footer .claim { margin-top: 16px; font-weight: 700; font-size: 14px; }
.site-footer .date { margin-top: 8px; font-family: var(--mono); font-size: 14px; }
.site-footer .dots { margin-top: 24px; display: flex; gap: 8px; }
.site-footer .dots i { width: 8px; height: 8px; display: block; }
.site-footer h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; opacity: .4; }
.site-footer ul { margin-top: 18px; display: grid; gap: 12px; font-size: 14px; }
.site-footer ul a:hover { opacity: .75; }
.site-footer .legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
@media (max-width: 640px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ===== Pagina Edizione 2025 ===== */
.ed-hero { position: relative; height: clamp(360px, 58vw, 680px); overflow: hidden; background: #2a2a2a; }
.ed-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ed-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 30%, transparent 70%, rgba(251,200,190,.6) 100%); }
.summary { background: linear-gradient(180deg, #fcc3b6 0%, #f7d6cf 45%, #dfe3e1 100%); }
.summary .copy { margin-top: 36px; max-width: 980px; }

.gallery-sec { background: linear-gradient(180deg, #f6f1ef 0%, #fbe1db 30%, #fbd3cb 100%); }
.gallery { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(110px, 15.6vw, 202px); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; background: rgba(255,255,255,.4); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
@media (min-width: 761px) { .gallery figure { grid-column: var(--c) / span var(--w, 1); grid-row: var(--r) / span var(--h, 1); } }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 28vw; grid-auto-flow: dense; gap: 8px; }
  .gallery figure { grid-column: span var(--w, 1); grid-row: span var(--h, 1); }
}

.speakers { background: linear-gradient(180deg, #fbf3f1 0%, #f8e6e1 100%); }
.speakers .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 40px; height: 40px; border: 1.5px solid var(--ink); background: transparent; font-size: 18px; line-height: 1; }
.arrows button:hover { background: var(--ink); color: #fff; }
.track { margin-top: 44px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.spk { position: relative; flex: 0 0 min(334px, 82vw); aspect-ratio: 334 / 418; scroll-snap-align: start; overflow: hidden;
  background: linear-gradient(180deg, #fcb9a8 0%, #f6c9c4 55%, #dfe0de 100%); container-type: inline-size; }
.spk .logo { position: absolute; top: 6%; left: 7%; width: 21%; }
.spk .photo { position: absolute; top: 10.5%; right: 4%; width: 60%; height: 82.5%; overflow: hidden;
  background: linear-gradient(180deg, #f5ebe1 0%, #f3d9d4 45%, #e3bfe9 80%, #d5bdf3 100%); }
.spk .photo img { display: block; width: 100%; height: 66%; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.spk .tags { position: absolute; left: 11%; top: 49%; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.spk .kind { background: var(--purple); color: #fff; font-family: var(--mono); font-size: 4cqw; letter-spacing: .5px; text-transform: uppercase; padding: .35em .6em; }
.spk .name { margin-top: 3.5cqw; background: var(--coral); font-family: var(--pixel); font-weight: 700; font-size: 11.5cqw; line-height: .78; text-transform: uppercase; padding: .16em .2em .08em; }
.spk .job { margin: 2.5cqw 0 0 10cqw; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 3.6cqw; line-height: 1.35; padding: .5em .7em; max-width: 64cqw; }
.dots-nav { margin-top: 18px; display: flex; justify-content: center; gap: 6px; }
.dots-nav i { width: 22px; height: 2px; background: rgba(15,15,15,.2); }
.dots-nav i:first-child { background: var(--ink); }

/* call for speakers */
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn-light, .btn-dark { display: inline-block; padding: 15px 22px; font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: 1.3px; text-transform: uppercase; border: 0; cursor: pointer; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light.bordered { border: 1.5px solid rgba(15,15,15,.15); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light:hover, .btn-dark:hover { opacity: .88; }
.modal { margin: auto; width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: clamp(28px, 5vw, 64px); border: 0; color: var(--ink);
  background: linear-gradient(180deg, #ffdcd4 0%, #fdeae6 100%); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(40,20,40,.45); backdrop-filter: blur(3px); }
.modal .close { position: absolute; top: 18px; right: 22px; background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; }
.modal h2 { font-size: clamp(30px, 4.6vw, 52px); padding-right: 24px; }
.modal .copy { margin-top: 28px; }
.modal .copy a { text-decoration: underline; }
.modal ul { margin: 6px 0 0 4px; display: grid; gap: 4px; font-size: 16px; line-height: 1.5; }
.modal li { padding-left: 18px; position: relative; }
.modal li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: var(--ink); }
.modal .ask { margin-top: 26px; font-family: var(--mono); font-weight: 700; font-size: 17px; }
.modal .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

@media (min-width: 761px) { .hero h1 { white-space: nowrap; } }
@media (max-width: 760px) { .shape.tri, .shape.diamond { display: none; } }

.site-footer .flogo { display: block; width: 154px; height: auto; overflow: visible; }
@media (min-width: 761px) { .hero .wrap { padding-right: 0; } .edition-card { justify-self: end; } }

/* video edizione 2025 */
.ed-hero .play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 14px; color: #fff; text-decoration: none; }
.ed-hero .play-icon { width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--coral); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .2s; }
.ed-hero .play-icon::after { content: ""; width: 34%; height: 40%; margin-left: 8%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ed-hero .play:hover .play-icon { transform: scale(1.06); }
.ed-hero .play-label { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(15,15,15,.55); padding: 6px 10px; }
.ed-hero iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #000; }
.ed-hero.playing .play, .ed-hero.playing::after { display: none; }
.logos img { height: 34px; width: auto; display: block; }
.spk-card { flex: 0 0 min(334px, 78vw); margin: 0; scroll-snap-align: start; }
.spk-card img { display: block; width: 100%; height: auto; }
.track { scroll-padding-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spk-card { position: relative; }
.spk-card svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spk-card text.mono { font-family: 'Anonymous Pro', monospace; font-weight: 700; }
.spk-card text.pixel { font-family: 'NeueBit', sans-serif; font-weight: 700; }
/* copertina video: stile del play come nel mockup */
.ed-hero img { object-position: center center; }
.ed-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 22%); }
.ed-hero .play-icon { width: clamp(72px, 8.4vw, 124px); background: rgba(255,255,255,.55); border: 3px solid var(--coral);
  box-shadow: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ed-hero .play-icon::after { width: 26%; height: 30%; margin-left: 8%; background: var(--coral); }
