﻿/* =====================================================================
   milanoforyou — stile editoriale moda
   Per cambiare l'accento (oro → rosso) modifica solo --accent qui sotto.
   ===================================================================== */
/* Font ospitati sul sito (niente Google Fonts: più veloce e nessun dato inviato a terzi) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
    --ink: #0e0d0c;
    --ink-2: #2a2724;
    --paper: #faf8f4;
    --paper-2: #f2eee6;
    --line: #e4ded3;
    --muted: #77706a;
    --accent: #b08d57;        /* oro tenue  —  rosso: #b3122e */
    --accent-dark: #8a6c3e;
    --yt: #ff0033;
    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --wrap: 1200px;
    --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    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 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.kicker {
    font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 10px;
}

/* ===== TOPBAR ===== */
.topbar { background: var(--ink); color: #cfc8bd; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #cfc8bd; text-decoration: none; margin-left: 22px; transition: color .2s; }
.topbar a:hover { color: #fff; }

/* ===== TESTATA ===== */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.brand { display: block; text-align: center; text-decoration: none; padding: 26px 0 18px; }
.brand-name {
    font-family: var(--serif); font-size: 46px; font-weight: 500; letter-spacing: .02em; line-height: 1; color: var(--ink);
}
.brand-name em { font-style: italic; color: var(--accent); }
.brand-name--light { color: #fff; font-size: 34px; }
.brand-sub { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.nav { border-top: 1px solid var(--line); }
.nav-in { display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a {
    position: relative; white-space: nowrap; text-decoration: none; padding: 15px 16px;
    font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.nav a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 1px;
    background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.nav a.nav-yt { color: var(--ink); font-weight: 600; }
.yt-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yt);
    margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255,0,51,.15);
}
.masthead.is-compact .brand { padding: 12px 0 8px; }
.masthead.is-compact .brand-name { font-size: 30px; }
.masthead.is-compact .brand-sub { display: none; }
.brand, .brand-name { transition: all .25s ease; }

/* ===== BOTTONI ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 14px 26px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
    font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: all .2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; background: #fff; color: var(--ink); }
.btn-light:hover { background: transparent; color: #fff; }
.btn-gold { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn-gold:hover { background: transparent; color: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); background: transparent; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-yt { border-color: #fff; background: #fff; color: var(--ink); }
.btn-yt:hover { background: transparent; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 11px; }

/* ===== HERO ===== */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 54px; margin: 6px 0 18px; }
.hero p.lead { color: #cfc8bd; font-size: 17px; max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; cursor: pointer; border: 0; padding: 0; background: #000; width: 100%; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play {
    position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
    background: rgba(14,13,12,.72); border: 1px solid rgba(255,255,255,.7);
}
.video-facade .play::after {
    content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #fff;
}

/* ===== SEZIONI E CARD ===== */
.sezione { padding: 72px 0 8px; }
.sezione + .sezione { padding-top: 48px; }
.sezione-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sezione-head h2 { font-size: 40px; }
.link-tutti { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.link-tutti:hover { color: var(--accent); }
.griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-link:hover .card-img img { transform: scale(1.04); }
.card-img.is-video::after {
    content: ""; position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(14,13,12,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.card-body { padding: 18px 2px 0; }
.card-meta { margin: 0 0 8px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tag { color: var(--accent); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; margin-right: 10px; }
.card h3 { font-size: 24px; margin-bottom: 8px; transition: color .2s; }
.card-link:hover h3 { color: var(--accent-dark); }
.card-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.vuoto { padding: 30px 0; }

/* ===== VIDEO DAL CANALE ===== */
.yt-griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.yt-card { text-decoration: none; color: inherit; }
.yt-card .card-img { aspect-ratio: 16 / 9; }
.yt-card h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.4; margin-top: 12px; }

/* ===== INTESTAZIONE PAGINA DI SEZIONE ===== */
.page-head { padding: 64px 0 8px; text-align: center; }
.page-head h1 { font-size: 60px; }
.page-head p { max-width: 40em; margin: 16px auto 0; color: var(--muted); font-size: 17px; }

/* ===== ARTICOLO ===== */
.art-head { padding: 64px 0 36px; text-align: center; }
.art-head h1 { font-size: 58px; max-width: 16em; margin: 0 auto; }
.art-meta { margin-top: 18px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.art-meta span + span::before { content: "·"; margin: 0 12px; color: var(--accent); }
.art-media { max-width: 1040px; margin: 0 auto 8px; }
.art-cover img { width: 100%; max-height: 78vh; object-fit: cover; }
.art-body { max-width: 720px; margin: 48px auto 0; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.art-body p { margin: 0 0 1.3em; }
.art-body > p:first-of-type::first-letter {
    font-family: var(--serif); float: left; font-size: 4.4em; line-height: .82; padding: 6px 12px 0 0; color: var(--accent);
}
.art-body h3 { font-size: 30px; margin: 1.6em 0 .6em; color: var(--ink); }
.art-body a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-body strong { color: var(--ink); font-weight: 600; }
.art-video-extra { max-width: 1040px; margin: 40px auto 0; display: grid; gap: 28px; }
.galleria { max-width: 1040px; margin: 56px auto 0; columns: 3 260px; column-gap: 14px; }
.galleria a { display: block; margin-bottom: 14px; break-inside: avoid; cursor: zoom-in; }
.galleria img { width: 100%; }
.art-box { max-width: 720px; margin: 48px auto 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip {
    display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 40px; background: #fff;
    font-size: 13px; text-decoration: none; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.subscribe-box {
    max-width: 720px; margin: 40px auto 0; padding: 34px; background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.subscribe-box h3 { font-size: 28px; }
.subscribe-box p { margin: 6px 0 0; color: #cfc8bd; font-size: 14px; }

/* Lightbox foto */
.lightbox { position: fixed; inset: 0; background: rgba(10,9,8,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ===== PARTNER ===== */
.partner { padding: 80px 0 64px; }
.partner .kicker { text-align: center; margin-bottom: 26px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.partner-grid a { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.partner-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.35); transition: filter .3s, transform .5s; }
.partner-grid a:hover img { filter: none; transform: scale(1.03); }

/* ===== CTA YOUTUBE + FOOTER ===== */
.cta-yt { background: var(--ink-2); color: #fff; padding: 56px 0; }
.cta-yt-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-yt h2 { font-size: 38px; }
.cta-yt .muted { color: #bdb5aa; margin: 10px 0 0; }
.footer { background: var(--ink); color: #bdb5aa; padding: 56px 0 26px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 32px; }
.footer-sub { margin: 12px 0 0; line-height: 1.6; }
.footer-col a { display: block; color: #bdb5aa; text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c2925; font-size: 12px; letter-spacing: .06em; }

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; background: #1f9e55;
    box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px); }

/* ===== MEDIA KIT / COLLABORA ===== */
.numeri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numeri div { padding: 30px 18px; text-align: center; }
.numeri div + div { border-left: 1px solid var(--line); }
.numeri strong { display: block; font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1; }
.numeri span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pacchetti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.pacchetto { background: #fff; border: 1px solid var(--line); padding: 32px 28px; display: flex; flex-direction: column; }
.pacchetto h3 { font-size: 30px; margin-bottom: 6px; }
.pacchetto ul { margin: 18px 0 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; flex: 1; }
.pacchetto li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--paper-2); }
.pacchetto li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 1px; background: var(--accent); }
.pacchetto.evidenza { border-color: var(--accent); box-shadow: 0 20px 40px -24px rgba(176,141,87,.6); }

/* ===== CONTATTI ===== */
.contatti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 24px; }
.contatto { background: #fff; border: 1px solid var(--line); padding: 34px 28px; text-align: center; text-decoration: none; color: inherit; transition: border-color .2s; }
.contatto:hover { border-color: var(--accent); }
.contatto h3 { font-size: 28px; margin-bottom: 6px; }
.contatto p { margin: 0; color: var(--muted); }

/* ===== MODULI (invio esterni + admin) ===== */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 0 0 40px; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 36px; }
.campo { margin-bottom: 22px; }
.campo label, .campo .label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.campo .aiuto { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo input[type=date], .campo input[type=password],
.campo input[type=number], .campo select, .campo textarea, .campo input:not([type]) {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); font-family: var(--sans);
    font-size: 15px; color: var(--ink); border-radius: var(--radius); transition: border-color .2s, background .2s;
}
.campo textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.campo input[type=file] { font-size: 14px; }
.riga-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; }
.msg { padding: 14px 18px; margin-bottom: 22px; border-left: 3px solid var(--accent); background: #fff8ec; font-size: 14px; }
.msg.err { border-color: #b3122e; background: #fdf0f1; }
.msg.ok { border-color: #1f9e55; background: #eefaf2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { float: right; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 42px; }
    .griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yt-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pacchetti, .contatti { grid-template-columns: 1fr; }
    .numeri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .numeri div:nth-child(3) { border-left: 0; }
    .numeri div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .topbar-claim { display: none; }
    .topbar-in { justify-content: center; }
    .topbar a { margin: 0 10px; }
    .brand { padding: 18px 0 12px; }
    .brand-name { font-size: 36px; }
    .nav-in { justify-content: flex-start; }
    .nav a { padding: 13px 12px; font-size: 11px; }
    .hero { padding: 28px 0 40px; }
    .hero h1 { font-size: 34px; }
    .sezione { padding-top: 48px; }
    .sezione-head h2 { font-size: 30px; }
    .griglia { grid-template-columns: 1fr; gap: 34px; }
    .page-head h1, .art-head h1 { font-size: 38px; }
    .art-head { padding: 40px 0 24px; }
    .art-body { font-size: 17px; margin-top: 32px; }
    .subscribe-box, .cta-yt-in { flex-direction: column; align-items: flex-start; }
    .cta-yt h2 { font-size: 30px; }
    .footer-in { grid-template-columns: 1fr; }
    .riga-2 { grid-template-columns: 1fr; }
    .form-card { padding: 22px 18px; }
    .numeri strong { font-size: 36px; }
}

/* =====================================================================
   ADMIN
   ===================================================================== */
.adm { background: #f4f2ee; }
.adm-bar { background: var(--ink); color: #fff; }
.adm-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.adm-bar .brand-name { font-size: 24px; color: #fff; }
.adm-bar nav a { color: #cfc8bd; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-left: 18px; }
.adm-bar nav a:hover, .adm-bar nav a.active { color: #fff; }
.adm-main { padding: 36px 0 80px; }
.adm h1 { font-size: 36px; margin-bottom: 20px; }
.adm h2 { font-size: 26px; margin: 28px 0 14px; }
.badge { display: inline-block; min-width: 20px; padding: 2px 8px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0; text-align: center; }
.badge.InAttesa { background: #d98c10; }
.badge.Pubblicato { background: #1f9e55; }
.badge.Bozza { background: #8b857e; }
.badge.Rifiutato { background: #b3122e; }
.badge.Attivo { background: #1f9e55; }
.badge.Scaduto, .badge.Usato, .badge.Disattivato { background: #8b857e; }
.tab { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.tab th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tab td { padding: 12px 14px; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
.tab tr:hover td { background: #fcfbf8; }
.tab img { width: 72px; height: 48px; object-fit: cover; }
.filtri { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filtri select, .filtri input[type=text] { padding: 10px 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-family: var(--sans); }
.media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media-item { background: #fff; border: 1px solid var(--line); }
.media-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-item .media-azioni { display: flex; gap: 4px; padding: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.media-item .media-azioni input, .media-item .media-azioni a { padding: 5px 9px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 12px; text-decoration: none; color: var(--ink); }
.media-item .media-azioni .del { margin-left: auto; color: #b3122e; }
.media-item.copertina { border-color: var(--accent); }
.azioni-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.box-info { background: #fff; border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 22px; }
.box-info p { margin: 4px 0; }
.link-copia { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--paper); border: 1px solid var(--line); padding: 8px 10px; width: 100%; }
.adm .btn { padding: 11px 18px; }
.btn-rosso { border-color: #b3122e; background: #b3122e; color: #fff; }
.btn-rosso:hover { background: transparent; color: #b3122e; }
.btn-verde { border-color: #1f9e55; background: #1f9e55; color: #fff; }
.btn-verde:hover { background: transparent; color: #1f9e55; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 24px; }
.tabs a { padding: 10px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active, .tabs a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.periodo { font-size: 13px; margin-bottom: 20px; }
.periodo a { margin-left: 10px; color: var(--ink-2); text-decoration: none; }
.periodo a.active { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 30px; }
.kpi-box { background: #fff; border: 1px solid var(--line); padding: 18px 20px; }
.kpi-box span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi-box strong { display: block; font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1.1; margin-top: 6px; }
.kpi-box em { font-style: normal; font-size: 13px; color: var(--muted); }
.kpi-box.yt { border-top: 3px solid var(--yt); }
.due-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.due-colonne h2 { margin-top: 0; }
.barra { position: relative; height: 22px; background: var(--paper-2); }
.barra i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(176,141,87,.45); }
.barra b { position: relative; padding-left: 8px; font-size: 13px; font-weight: 600; line-height: 22px; }
@media (max-width: 900px) { .due-colonne { grid-template-columns: 1fr; } }
.login-box { max-width: 380px; margin: 12vh auto 0; }
@media (max-width: 760px) {
    .tab .nascondi-m { display: none; }
    .adm-bar nav a { margin-left: 10px; }
}
