/* =========================================================
   NEXORA AGENCY — foglio di stile
   Palette dal logo: blu notte + champagne
   ========================================================= */
:root {
  --ink: #0f131b;
  --navy: #151a24;
  --navy-2: #1c2230;
  --navy-3: #262e3f;
  --line-dark: rgba(227, 196, 160, .16);
  --gold: #e3c4a0;
  --gold-2: #c9a37a;
  --gold-3: #a8835c;
  --cream: #f6f1ea;
  --paper: #fbf9f6;
  --text-light: #ece6dc;
  --muted-light: #9aa1b0;
  --text: #1d2230;
  --muted: #6b7180;
  --line: #e6e0d6;
  --ok: #2f8a5b;
  --warn: #b7791f;
  --err: #b4423a;
  --info: #3b6ea8;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(15, 19, 27, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
code { background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line-dark); margin: 14px 0; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.h5 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); margin-top: 1.4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Marchio ---------- */
.brand-mark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: var(--gold); }
.brand-mark .brand-word { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .06em; }
.brand-mark .brand-sub { font-family: var(--sans); font-weight: 500; font-size: .56rem; letter-spacing: .5em; margin-top: 4px; padding-left: .5em; }
.brand-mark.small .brand-word { font-size: 1.45rem; }
.brand-mark.center { display: flex; margin: 0 auto 26px; }
.brand-mark.big .brand-word { font-size: clamp(3.2rem, 9vw, 6.4rem); }
.brand-mark.big .brand-sub { font-size: clamp(.8rem, 1.6vw, 1.1rem); margin-top: 10px; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: .2s ease; white-space: nowrap; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(227,196,160,.8); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-dark { background: var(--navy); color: var(--gold); }
.btn-dark:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-2); }
.btn-danger { background: transparent; color: var(--err); border-color: rgba(180,66,58,.35); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .68rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* =========================================================
   SITO PUBBLICO
   ========================================================= */
body.public { background: var(--navy); color: var(--text-light); }
body.public .muted { color: var(--muted-light); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21,26,36,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); opacity: .82; position: relative; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { opacity: 1; color: var(--gold); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px 8px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--gold); margin: 6px 0; transition: .2s; }
.nav-toggle.dark span { background: var(--navy); }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 78px); display: grid; place-items: center; text-align: center; overflow: hidden; padding: 80px 0; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 38%, rgba(70,82,108,.55), transparent 70%), linear-gradient(180deg, #1f2533 0%, var(--navy) 70%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; padding-inline: 24px; }
.hero .brand-mark { text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.45); pointer-events: none; }
.hero .eyebrow { margin-top: 38px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.5rem); color: var(--text-light); margin: 14px 0 34px; }
.hero .btn-row { justify-content: center; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.section { padding: 110px 0; }
.section.alt { background: var(--navy-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 10px 0 0; color: #fff; }
.section-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.lead { font-size: 1.08rem; color: var(--muted-light); max-width: 620px; }

/* Numeri */
.stats-band { border-block: 1px solid var(--line-dark); }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 42px 20px; text-align: center; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 600; color: var(--gold); line-height: 1; }
.stat span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }

/* Card talenti */
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.talent-card { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--navy-3); isolation: isolate; }
.talent-card img, .talent-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.talent-card .ph { display: grid; place-items: center; font-family: var(--serif); font-size: 5rem; color: var(--gold); background: linear-gradient(160deg, var(--navy-3), var(--ink)); }
.talent-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,13,19,.92)); z-index: 1; }
.talent-card:hover img { transform: scale(1.05); }
.talent-card .info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.talent-card .cat { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.talent-card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: #fff; margin: 4px 0 2px; }
.talent-card .reach { font-size: .8rem; color: var(--text-light); opacity: .85; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--text-light); }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.search-inline { margin-left: auto; display: flex; gap: 8px; }
.search-inline input { background: transparent; border: 1px solid var(--line-dark); color: var(--text-light); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: .85rem; min-width: 220px; }

/* Servizi */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--navy); padding: 44px 36px; }
.section.alt .service { background: var(--navy-2); }
.service .num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.service h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: #fff; margin: 14px 0 10px; }
.service p { color: var(--muted-light); margin: 0; font-size: .95rem; }

/* Step */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { border-top: 1px solid var(--gold); padding-top: 22px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.step h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.step p { color: var(--muted-light); font-size: .92rem; }

/* CTA */
.cta { text-align: center; padding: 120px 24px; background: radial-gradient(ellipse at center, rgba(227,196,160,.10), transparent 65%), var(--ink); }
.cta .section-title { max-width: 760px; margin: 12px auto 26px; }
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split-cta > div { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 48px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.split-cta h3 { font-family: var(--serif); font-size: 2.1rem; color: #fff; font-weight: 600; }

/* Profilo talento */
.profile-hero { display: grid; grid-template-columns: 430px 1fr; gap: 64px; padding: 70px 0 40px; align-items: start; }
.profile-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--navy-3); box-shadow: var(--shadow); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 8rem; color: var(--gold); }
.profile-name { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 600; color: #fff; margin: 10px 0 6px; line-height: 1; }
.profile-tag { font-size: 1.1rem; color: var(--gold); margin-bottom: 26px; font-family: var(--serif); font-style: italic; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; margin: 28px 0; }
.metric { background: var(--navy); padding: 20px 18px; }
.metric strong { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; }
.metric span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.bio { white-space: pre-line; color: var(--text-light); opacity: .9; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.back-link { display: inline-block; margin-top: 30px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* Pagine semplici */
.page-head { padding: 90px 0 50px; border-bottom: 1px solid var(--line-dark); }
.page-head .section-title { font-size: clamp(2.6rem, 5vw, 4rem); }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list span { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); color: #fff; margin-top: 1.6em; }

/* Form sul sito pubblico */
.form-card { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 40px; }
body.public .form label { color: var(--text-light); }
body.public .form input, body.public .form select, body.public .form textarea { background: var(--navy); border-color: var(--line-dark); color: #fff; }
body.public .form input:focus, body.public .form select:focus, body.public .form textarea:focus { border-color: var(--gold); }
.hp { position: absolute !important; left: -9999px !important; }

.site-footer { background: var(--ink); padding: 70px 0 30px; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid a:not(.brand-mark) { display: block; text-decoration: none; color: var(--text-light); opacity: .75; margin-bottom: 8px; }
.footer-grid a:not(.brand-mark):hover { opacity: 1; color: var(--gold); }
.footer-grid .brand-mark { align-items: flex-start; margin-bottom: 16px; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-dark); border-radius: var(--radius); }

/* =========================================================
   FORM (comuni)
   ========================================================= */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 .95rem var(--sans); letter-spacing: 0; text-transform: none; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); outline: none; transition: border-color .15s; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(227,196,160,.25); }
.form .check { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .88rem; }
.form .check input { width: auto; margin-top: 4px; }
.form .hint { font-size: .78rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert-ok { background: #edf7f1; border-color: #bfe0cc; color: #1f6440; }
.alert-err { background: #fbeeed; border-color: #efc6c2; color: #8d2f28; }
.alert-info { background: #eef3fa; border-color: #c8d8ec; color: #2a4f7c; }
.alert-warn { background: #fdf5e7; border-color: #f0dbb2; color: #7d5414; }

/* =========================================================
   AUTENTICAZIONE
   ========================================================= */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(ellipse at 50% 30%, #2a3244, var(--navy) 65%); font-family: var(--sans); }
.auth-card { width: min(440px, 100%); background: var(--paper); border-radius: 20px; padding: 46px 40px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); color: var(--text); }
.auth-card.wide { width: min(620px, 100%); }
.auth-card .brand-mark { color: var(--navy); }
.auth-card h1 { text-align: center; }
.auth-foot { text-align: center; margin-top: 22px; font-size: .85rem; }
.auth-foot a { color: var(--gold-3); }

/* =========================================================
   AREA RISERVATA (dashboard + admin)
   ========================================================= */
body.panel { background: #f4f1ec; color: var(--text); }
.panel-wrap { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: var(--text-light); padding: 30px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand-mark { margin: 0 auto 30px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); margin-bottom: 22px; }
.sidebar-user strong { display: block; font-size: .9rem; color: #fff; }
.sidebar-user .muted { color: var(--muted-light); display: block; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-size: .88rem; color: var(--text-light); opacity: .8; }
.side-nav a:hover { opacity: 1; background: rgba(255,255,255,.05); }
.side-nav a.is-active { opacity: 1; background: rgba(227,196,160,.13); color: var(--gold); }
.side-nav a.mail-link { margin-top: 10px; border: 1px solid var(--line-dark); color: var(--gold); opacity: 1; justify-content: center; font-weight: 600; letter-spacing: .06em; }
.side-nav a.mail-link:hover { background: var(--gold); color: var(--ink); }
.count { background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; padding: 0 6px; }
.panel-main { min-width: 0; }
.panel-top { display: flex; align-items: center; gap: 14px; padding: 28px 40px 6px; }
.panel-top h1 { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; margin: 0; }
.panel-content { padding: 22px 40px 60px; }

.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 40px; height: 40px; }
.avatar-lg { width: 120px; height: 120px; }
.avatar-ph { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.avatar-lg.avatar-ph { font-size: 3rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-title h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin: 0; }
.kpi span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1.1; margin-top: 6px; }
.kpi small { color: var(--muted); }
.kpi.dark { background: var(--navy); color: var(--text-light); border-color: var(--navy); }
.kpi.dark strong { color: var(--gold); }
.kpi.dark span { color: var(--muted-light); }
.stack { display: grid; gap: 22px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cols-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .person { display: flex; align-items: center; gap: 12px; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }

.badge { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.badge-ok { background: #e3f3ea; color: #23704a; }
.badge-warn { background: #fbefd8; color: #8a5a12; }
.badge-info { background: #e3ecf8; color: #2d5a90; }
.badge-muted { background: #eeece8; color: #6b6f78; }
.badge-gold { background: #f5ead9; color: #82603b; }
.badge-err { background: #f9e1df; color: #8d2f28; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.date-box { width: 54px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--navy); color: var(--gold); padding: 6px 0; line-height: 1.1; }
.date-box b { display: block; font-family: var(--serif); font-size: 1.5rem; }
.date-box span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }

.campaign { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; display: grid; gap: 14px; }
.campaign-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; }
.campaign-head h3 { font-family: var(--serif); font-size: 1.6rem; margin: 2px 0 0; }
.brand-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: .88rem; }
.meta b { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.deliverables { white-space: pre-line; background: var(--paper); border-radius: 10px; padding: 14px 16px; font-size: .9rem; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: .85rem; background: #fff; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: .82rem; background: #fff; border: 1px solid var(--line); }
.tabs a.is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 8px; }
.toolbar input[type=search] { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); min-width: 240px; font: inherit; font-size: .9rem; }

.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.gallery-admin figure { margin: 0; position: relative; }
.gallery-admin img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.gallery-admin form { position: absolute; top: 6px; right: 6px; }
.gallery-admin button { background: rgba(15,19,27,.75); color: #fff; border: 0; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.photo-edit { display: flex; gap: 20px; align-items: center; }
.empty { color: var(--muted); padding: 26px 0; text-align: center; font-size: .92rem; }
details.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; margin-bottom: 22px; }
details.box summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.box summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-3); }
details.box[open] summary::after { content: "–"; }
details.box[open] { padding-bottom: 24px; }
.mail-card { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--text-light); border: 0; }
.mail-card h2 { color: #fff; }
.mail-card .muted { color: var(--muted-light); }
.mail-card code { background: rgba(255,255,255,.08); color: var(--gold); }
.pill-sign { font-size: .78rem; color: var(--muted); }

/* Media kit (stampabile) */
.mediakit { background: #fff; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mk-top { background: var(--navy); color: var(--text-light); display: grid; grid-template-columns: 300px 1fr; }
.mk-top img, .mk-top .ph { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.mk-top .ph { display: grid; place-items: center; font-family: var(--serif); font-size: 6rem; color: var(--gold); background: var(--navy-3); }
.mk-id { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.mk-id h2 { font-family: var(--serif); font-size: 3.4rem; color: #fff; margin: 6px 0; line-height: 1; }
.mk-id .profile-tag { margin-bottom: 0; }
.mk-body { padding: 36px 40px 40px; }
.mk-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.mk-metrics div { background: #fff; padding: 18px; }
.mk-metrics strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.mk-metrics span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mk-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.mk-gallery img { aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; width: 100%; }
.mk-foot { background: var(--paper); padding: 22px 40px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; border-top: 1px solid var(--line); }
.mk-foot .brand-mark { color: var(--navy); }

@media print {
  @page { size: A4; margin: 10mm; }
  body.panel { background: #fff; }
  .sidebar, .panel-top, .no-print, .alert { display: none !important; }
  .panel-wrap { display: block; }
  .panel-content { padding: 0; }
  .mediakit { border: 0; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .profile-hero { grid-template-columns: 340px 1fr; gap: 40px; }
  .cols-main, .cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 22px; padding: 30px 24px 36px; background: var(--navy); border-bottom: 1px solid var(--line-dark); transform: translateY(-140%); transition: transform .3s ease; }
  .site-nav.open { transform: none; }
  .panel-wrap { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .panel-top { padding: 20px 20px 4px; }
  .panel-top h1 { font-size: 1.8rem; }
  .panel-content { padding: 16px 20px 40px; }
  .two-col, .split-cta, .profile-hero { grid-template-columns: 1fr; }
  .profile-photo { max-width: 420px; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mk-top { grid-template-columns: 1fr; }
  .mk-metrics, .mk-gallery { grid-template-columns: 1fr 1fr; }
  .search-inline { margin-left: 0; width: 100%; }
  .search-inline input { flex: 1; min-width: 0; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .service-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card, .split-cta > div { padding: 28px 22px; }
  .auth-card { padding: 36px 24px; }
  .container { width: calc(100% - 36px); }
}

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-h { background: var(--paper); padding: 8px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: center; }
.cal-d { background: #fff; min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.empty { background: #faf8f5; }
.cal-d .n { font-size: .78rem; font-weight: 600; color: var(--muted); }
.cal-d.today .n { background: var(--navy); color: var(--gold); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.cal-ev { display: block; font-size: .7rem; padding: 3px 6px; border-radius: 6px; text-decoration: none; background: #f2e8da; color: #6b4d2c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.t-shooting { background: #f5e3e0; color: #7d3b33; }
.cal-ev.t-diretta { background: #e6e3f5; color: #46397d; }
.cal-ev.t-riunione { background: #e3ecf8; color: #2d5a90; }
.cal-ev.t-consegna { background: #e3f3ea; color: #23704a; }
@media (max-width: 860px) { .cal-d { min-height: 64px; } .cal-ev { font-size: 0; padding: 0; height: 6px; } .cal-h { font-size: .58rem; padding: 6px 2px; } }

/* Fascia brand che scorre verso destra */
.brand-band { background: var(--ink); border-block: 1px solid var(--line-dark); padding: 46px 0 50px; overflow: hidden; }
.brand-band .eyebrow { margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee-right var(--marquee-time, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: var(--text-light); opacity: .7; text-decoration: none; white-space: nowrap; padding: 0 34px; transition: opacity .2s, color .2s; }
a.marquee-item:hover { opacity: 1; color: var(--gold); }
.marquee-sep { color: var(--gold); font-size: .9rem; opacity: .7; }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 240s; } }
