/* ==========================================================================
   IPSE srl — Comunicazione e Uffici Stampa
   Template CSS — palette antracite / rosso brand, tipografia Inter
   ========================================================================== */

:root {
    --brand:       #232323;   /* antracite del logo: header scuri, titoli */
    --brand-700:   #3a3a3a;
    --brand-900:   #141414;
    --red:         #c20000;   /* rosso del logo: accenti, CTA, link attivi */
    --red-soft:    #e23b3b;
    --ink:         #242424;   /* testo corrente */
    --muted:       #6c6c6c;
    --muted-light: #9b9b9b;
    --line:        #e6e6e8;
    --bg:          #ffffff;
    --bg-alt:      #f5f5f6;
    --bg-soft:     #fafafa;
    --radius:      10px;
    --radius-sm:   4px;
    --shadow:      0 10px 30px rgba(0, 0, 0, .10);
    --shadow-sm:   0 4px 14px rgba(0, 0, 0, .07);
    --container:   1440px;
    --serif:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    /* Colore primario del brand: usato anche dal widget di accessibilita */
    --c-primary:   var(--red);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--brand); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: #fff; }
.section--tight { padding: 60px 0; }

/* ---- utilities ---- */
.text-center { text-align: center; }
.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.eyebrow--light { color: var(--red-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.08rem; color: var(--muted); }
.section--brand .lead, .section--brand p { color: rgba(255,255,255,.78); }

.divider { width: 56px; height: 3px; background: var(--red); border: 0; margin: 18px 0; }
.text-center .divider { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-size: .85rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 14px 28px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: #9c0000; border-color: #9c0000; color: #fff; }
.btn--brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn--light { background: #fff; color: var(--brand); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: #fff; color: var(--brand); }
.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar { background: var(--brand-900); color: rgba(255,255,255,.8); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 24px; flex-wrap: nowrap; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 24px; flex-wrap: nowrap; align-items: center; min-width: 0; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* Topbar compatta: gli orari spariscono sotto i 1150px, l'email sotto gli 820px */
@media (max-width: 1150px) { .topbar__hours { display: none !important; } }
@media (max-width: 820px)  { .topbar__email { display: none !important; } }
.topbar__info i { color: var(--red-soft); }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { font-size: .9rem; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
/* Il logo non deve restringersi quando il menu si allunga (regola globale
   img { max-width:100% } + flex-shrink lo comprimerebbero). */
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 60px; width: auto; max-width: none; }
.main-nav { min-width: 0; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); padding: 6px 0; position: relative; white-space: nowrap;
}
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
    background: var(--red); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--brand); font-size: 1.5rem; cursor: pointer; }

/* ---- sottomenu a due livelli ---- */
.main-nav li { position: relative; }
.sub-caret { font-size: .6rem; margin-left: 4px; transition: transform .2s ease; }
.main-nav .has-sub:hover > a .sub-caret { transform: rotate(180deg); }
.sub-toggle { display: none; }
.sub-nav {
    position: absolute; top: 100%; left: -18px; min-width: 264px;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
    padding: 10px 0 !important; margin: 0; list-style: none;
    display: block !important; flex-direction: column !important; gap: 0 !important;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.main-nav .has-sub:hover > .sub-nav,
.main-nav .has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav li { width: 100%; }
.sub-nav a {
    display: block; padding: 10px 22px; font-size: .78rem; letter-spacing: .04em;
    text-transform: none; font-weight: 500; color: var(--ink); white-space: normal;
}
.sub-nav a::after { display: none; }
.sub-nav a:hover { background: var(--bg-alt); color: var(--red); }

@media (max-width: 1280px) {
    .site-header .container { gap: 16px; }
    .main-nav ul { gap: 14px; }
    .main-nav a { font-size: .74rem; letter-spacing: .05em; }
    .brand img { height: 50px; }
    .header-actions .btn { padding: 12px 18px; font-size: .74rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 96px 0; }
.hero__content h1 { color: #fff; margin-bottom: 18px; }
.hero__content h1 .accent { color: var(--red-soft); }
.hero__content p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 520px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
/* Home: hero a tutta larghezza con immagine di sfondo, testo a sinistra */
.hero--home { background-size: cover; background-position: right center; background-repeat: no-repeat; }
.hero--home::before { content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(18,18,18,.95) 0%, rgba(18,18,18,.86) 32%, rgba(18,18,18,.55) 62%, rgba(18,18,18,.18) 100%); }
.hero--home .container { position: relative; z-index: 2; }
.hero--home .hero__inner { display: flex; align-items: center; min-height: 720px; padding: 72px 0; }
.hero--home .hero__content { max-width: 560px; }
/* Lo Studio: stesso hero della home, banda un po' più bassa (foto team a destra) */
.hero--studio .hero__inner { min-height: 520px; }
/* Overlay che si dissolve prima della zona del team: la foto (tela estesa 2.5:1)
   ha le persone nella metà destra, la sfumatura copre solo la parte sfocata a sinistra */
.hero--studio::before { background: linear-gradient(90deg, rgba(18,18,18,.95) 0%, rgba(18,18,18,.86) 30%, rgba(18,18,18,.50) 45%, rgba(18,18,18,0) 62%); }
.hero--page { padding: 0; background-color: var(--brand); background-size: cover; background-position: center; position: relative; }
.hero--page::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,18,18,.92) 0%, rgba(38,38,38,.78) 100%); }
.hero--page .container { position: relative; z-index: 2; }
.hero--page .hero__inner { display: block; padding: 92px 0 80px; }
.hero--page h1 { font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.hero--page p { max-width: 640px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.hero--page.hero--center { text-align: center; }
.hero--page.hero--center .breadcrumb { justify-content: center; }
.hero--page.hero--center p { margin-left: auto; margin-right: auto; }
.hero--page .hero__actions { margin-top: 26px; }
/* ---- hero grafico (nessuna foto: pattern del brand) ---- */
.hero--brandwall {
    background-color: var(--brand-900);
    background-repeat: no-repeat;
    background-image:
        linear-gradient(115deg, rgba(194,0,0,0) 54%, rgba(194,0,0,.92) 54.4%, rgba(194,0,0,.92) 63%, rgba(194,0,0,0) 63.4%),
        linear-gradient(115deg, rgba(255,255,255,.05) 66%, rgba(255,255,255,.05) 69%, rgba(0,0,0,0) 69.2%),
        linear-gradient(120deg, #1a1a1a 0%, #262626 100%);
}
.hero--brandwall::before { display: none; }
/* Su schermi stretti la banda diagonale diventa piu sottile, per non coprire il testo */
@media (max-width: 900px) {
    .hero--brandwall {
        background-image:
            linear-gradient(155deg, rgba(194,0,0,0) 61%, rgba(194,0,0,.92) 61.4%, rgba(194,0,0,.92) 66%, rgba(194,0,0,0) 66.4%),
            linear-gradient(155deg, rgba(255,255,255,.05) 68%, rgba(255,255,255,.05) 71%, rgba(0,0,0,0) 71.2%),
            linear-gradient(120deg, #1a1a1a 0%, #262626 100%);
    }
}

.breadcrumb { display: flex; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 20px; list-style: none; padding: 0; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li::after { content: '/'; margin-left: 10px; color: rgba(255,255,255,.35); }
.breadcrumb li:last-child::after { content: ''; }

/* ==========================================================================
   SERVICE / FEATURE CARDS
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); color: var(--red); font-size: 1.4rem; margin-bottom: 20px;
}
.card:hover .card__icon { background: var(--brand); color: #fff; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.card__link { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); display: inline-flex; gap: 8px; align-items: center; }
.card__link:hover { color: var(--red); }
.card__link:hover i { transform: translateX(4px); }
.card__link i { transition: transform .2s ease; }

/* horizontal service card (servizi page) */
.card--row { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 30px; }
.card--row .card__icon { margin-bottom: 0; }
.card--row h3 { margin-bottom: 8px; }

/* value cards (centered, borderless) */
.value { text-align: center; padding: 20px; }
.value__icon { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-alt); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.value h3 { font-size: 1.1rem; }
.value p { color: var(--muted); font-size: .92rem; }

/* ==========================================================================
   SPLIT (image + text)
   ========================================================================== */
/* ---- elenco compatto dei servizi dentro la card di area ---- */
.mini-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.mini-list li { border-bottom: 1px solid var(--line); }
.mini-list a {
    display: block; padding: 9px 0 9px 16px; position: relative;
    font-size: .88rem; color: var(--ink);
}
.mini-list a::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 1px;
    background: var(--red); transition: width .2s ease;
}
.mini-list a:hover { color: var(--red); }
.mini-list a:hover::before { width: 10px; }

/* ---- pannello di brand usato al posto di una foto ---- */
.brandpanel {
    background: var(--brand-900);
    background-image: linear-gradient(140deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: var(--radius); padding: 48px 42px; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.brandpanel::after {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px; border: 24px solid var(--red);
    border-radius: 50%; opacity: .16;
}
.brandpanel img { height: 62px; width: auto; position: relative; z-index: 1; }
.brandpanel__claim {
    color: var(--red-soft); font-size: .78rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; margin: 18px 0 26px;
    position: relative; z-index: 1;
}
.brandpanel__list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.brandpanel__list li {
    display: flex; gap: 12px; align-items: flex-start;
    color: rgba(255,255,255,.86); font-size: .95rem; padding: 11px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.brandpanel__list i { color: var(--red-soft); margin-top: 5px; font-size: .8rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list i { color: var(--red); font-size: 1.1rem; margin-top: 4px; }
.feature-list h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--brand); margin: 0 0 2px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); color: #fff; font-weight: 700; line-height: 1; }
.stat__num .accent { color: var(--red-soft); }
.stat__label { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 8px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid { display: flex; flex-direction: column; gap: 28px; }
.team-card { display: flex; align-items: center; gap: 30px; text-align: left; }
.team-card__photo { flex: 0 0 210px; width: 210px; height: 280px; border-radius: 14px; overflow: hidden; margin: 0; background: #fff; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { flex: 1 1 auto; min-width: 0; background: var(--bg-alt); border-radius: var(--radius); padding: 32px 38px; }
.team-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.team-card .role { display: block; color: var(--red); font-size: .9rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.team-card .team-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }

/* ==========================================================================
   CTA STRIP
   ========================================================================== */
.cta-strip { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 44px 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-strip h3 { color: #fff; font-size: 1.6rem; margin: 0; }
.cta-strip p { color: rgba(255,255,255,.75); margin: 6px 0 0; }
.cta-strip__text { max-width: 640px; }

/* ==========================================================================
   PORTFOLIO — card video
   ========================================================================== */
.video-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.video-card__thumb { display: block; position: relative; background: var(--brand-900); }
.video-card__thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.video-card__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(18,18,18,.28); transition: background .25s ease;
}
.video-card__play i {
    width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    padding-left: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .25s ease;
}
.video-card:hover .video-card__play { background: rgba(18,18,18,.12); }
.video-card:hover .video-card__play i { transform: scale(1.08); }
.video-card__body { display: block; padding: 20px 24px 24px; }
.video-card__title {
    display: block; font-weight: 600; font-size: 1.05rem; color: var(--brand);
    line-height: 1.3; margin-bottom: 8px;
}
.video-card__meta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted);
}
.video-card__meta i { color: var(--red); font-size: 1rem; }
.video-card:hover .video-card__meta { color: var(--red); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 13px 16px; font-family: var(--sans); font-size: .95rem; color: var(--ink);
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,137,78,.12); background: #fff; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form-check input { margin-top: 4px; }
.choice-group { display: flex; gap: 14px; flex-wrap: wrap; }
.choice {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem; transition: all .2s ease; background: var(--bg-soft);
}
.choice:hover { border-color: var(--red); }
.choice input { accent-color: var(--red); }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .92rem; }
.alert--error { background: #fdeced; color: #b53241; border: 1px solid #f5c2c7; }

/* ==========================================================================
   CONTACT INFO CARDS
   ========================================================================== */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.info-card > div:not(.info-card__icon) { min-width: 0; width: 100%; overflow-wrap: anywhere; }
.info-card__icon { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-alt); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.info-card h4 { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--brand); margin: 0 0 4px; }
.info-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.info-card a { color: var(--muted); }
.info-card a:hover { color: var(--red); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; height: 100%; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; margin-bottom: 26px; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { overflow: hidden; background: var(--bg-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
/* Articoli senza immagine: blocco grafico del brand al posto di un placeholder ripetuto */
.post-card__media--empty {
    display: flex; align-items: center; justify-content: center;
    min-height: 180px; color: rgba(255,255,255,.55); font-size: 2.4rem;
    background-color: var(--brand-900);
    background-image:
        linear-gradient(150deg, rgba(194,0,0,0) 57%, rgba(194,0,0,.9) 57.4%, rgba(194,0,0,.9) 68%, rgba(194,0,0,0) 68.4%),
        linear-gradient(120deg, #1a1a1a 0%, #2a2a2a 100%);
}
.post-card__media--empty:hover { color: rgba(255,255,255,.8); }
/* Miniatura di riserva (sidebar articoli recenti) */
.thumb-empty {
    flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55); font-size: 1.1rem;
    background-color: var(--brand-900);
    background-image:
        linear-gradient(150deg, rgba(194,0,0,0) 55%, rgba(194,0,0,.9) 55.5%, rgba(194,0,0,.9) 70%, rgba(194,0,0,0) 70.5%),
        linear-gradient(120deg, #1a1a1a 0%, #2a2a2a 100%);
}
.post-card__body { padding: 24px 26px 24px 0; }
.post-meta { display: flex; gap: 18px; font-size: .8rem; color: var(--muted-light); margin-bottom: 10px; flex-wrap: wrap; }
.post-meta span { display: inline-flex; gap: 6px; align-items: center; }
.post-meta i { color: var(--red); }
.post-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--brand); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); background: var(--bg-alt); padding: 4px 12px; border-radius: 40px; }

/* sidebar */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 26px; }
.widget__title { font-family: var(--serif); font-size: 1.15rem; color: var(--brand); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: .92rem; color: var(--ink); }
.cat-list a:hover { color: var(--red); padding-left: 6px; }
.cat-list .count { background: var(--bg-alt); color: var(--muted); font-size: .78rem; padding: 2px 10px; border-radius: 40px; }
.widget--newsletter { background: var(--brand); color: #fff; text-align: center; }
.widget--newsletter .widget__title { color: #fff; border-color: rgba(255,255,255,.15); }
.widget--newsletter p { color: rgba(255,255,255,.75); font-size: .9rem; }
.widget--newsletter .form-control { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.widget--newsletter .form-control::placeholder { color: rgba(255,255,255,.55); }
.widget__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--red-soft); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 16px; }

/* article body */
.article-body { font-size: 1.02rem; color: #374151; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-hero-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 32px; width: 100%; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; color: var(--brand); }
.pagination a:hover { border-color: var(--brand); }
.pagination .is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .is-disabled { color: var(--muted-light); pointer-events: none; }

/* ==========================================================================
   COMPARISON ROW (booking page)
   ========================================================================== */
.compare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.compare__item .compare__icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--bg-alt); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.compare__item h4 { font-family: var(--sans); font-size: 1rem; color: var(--brand); margin: 0 0 6px; }
.compare__item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* method steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { text-align: center; position: relative; }
.step__num { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.step h4 { font-family: var(--sans); font-size: 1.02rem; color: var(--brand); margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* perk list (booking right column) */
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.perk:last-child { border-bottom: 0; }
.perk__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-alt); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.perk h4 { font-family: var(--sans); font-size: .98rem; color: var(--brand); margin: 0 0 3px; }
.perk p { margin: 0; color: var(--muted); font-size: .88rem; }

/* hours list */
.hours-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 28px; }
.hours-card h4 { color: #fff; font-family: var(--sans); display: flex; align-items: center; gap: 10px; }
.hours-card h4 i { color: var(--red-soft); }
.hours-list { list-style: none; margin: 16px 0 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.85); }
.hours-list li:last-child { border-bottom: 0; }
/* Il riquadro ha fondo scuro: link e testo di servizio vanno in chiaro,
   altrimenti ereditano il colore antracite dei link globali (nero su nero). */
.hours-card a { color: #fff; }
.hours-card a:hover { color: var(--red-soft); }
.hours-card__note { margin: 14px 0 0; font-size: .92rem; color: rgba(255,255,255,.65); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-cta { background: var(--brand-900); padding-top: 72px; }
.footer-cta .cta-strip { background: linear-gradient(120deg, #9c0000, var(--red)); margin-bottom: -44px; position: relative; z-index: 2; }
.footer-cta .cta-strip .btn--light { color: var(--red); }
.footer-cta .cta-strip .btn--light:hover { color: #fff; }
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.7); padding: 100px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; opacity: .95; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.6); max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-col h4 { font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 22px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-col a:hover { color: var(--red-soft); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.65); }
.footer-contact i { color: var(--red-soft); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--red-soft); }
.footer-bottom__links { display: flex; gap: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Evita overflow orizzontale globale e media/iframe troppo larghi */
html, body { overflow-x: hidden; }
iframe, video, embed, object { max-width: 100%; }

/* ---- Tablet landscape / small desktop (≤ 1024px) ---- */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
    .grid { gap: 22px; }
}

/* ---- Tablet (≤ 992px) ---- */
@media (max-width: 992px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 70px 0; }
    .hero__media { order: -1; }
    .hero--home .hero__inner { min-height: 580px; padding: 64px 0; }
    .hero--studio .hero__inner { min-height: 480px; }
    .split { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .stat + .stat { border-left: 0; }
    .blog-layout { grid-template-columns: 1fr; }
    .compare, .steps { grid-template-columns: repeat(2, 1fr); }
    /* le pagine contatti/prenotazione usano grid-template-columns inline:
       forziamo il collasso a una colonna sotto a questa soglia */
    .grid--2[style] { grid-template-columns: 1fr !important; }
    .map-embed { min-height: 280px; }
}

/* ---- Mobile landscape / large phone (≤ 768px) ---- */
@media (max-width: 768px) {
    .topbar { display: none; }
    .nav-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin-right: -10px; padding: 0;
        font-size: 1.6rem; line-height: 1; flex: 0 0 auto;
    }
    .header-actions { display: none; }
    .site-header .container { min-height: 64px; gap: 14px; }
    .brand img { height: 42px; }
    .main-nav {
        position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow); z-index: 40;
        max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px; }
    .main-nav li { width: 100%; border-bottom: 1px solid var(--line); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 14px 0; white-space: normal; }
    .main-nav .has-sub > a { padding-right: 48px; }
    .sub-caret { display: none; }
    .sub-toggle {
        display: block; position: absolute; top: 4px; right: 0; width: 44px; height: 44px;
        background: none; border: 0; color: var(--brand); font-size: .85rem; cursor: pointer;
    }
    .sub-toggle[aria-expanded="true"] i { transform: rotate(180deg); display: inline-block; }
    .sub-nav {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; border-top: 1px solid var(--line); box-shadow: none; border-radius: 0;
        min-width: 0; padding: 0 0 8px 14px !important; display: none !important;
    }
    .sub-nav.is-open { display: block !important; }
    .sub-nav li { border-bottom: 0; }
    .sub-nav a { padding: 11px 0; }
    .section { padding: 60px 0; }
    .section--tight { padding: 44px 0; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .grid--2[style] { grid-template-columns: 1fr !important; }
    .card--row { grid-template-columns: auto 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .post-card__media img { min-height: 200px; }
    .post-card__body { padding: 0 26px 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-strip { padding: 32px 28px; text-align: center; justify-content: center; }
    .cta-strip__text { max-width: 100%; }
    .compare, .steps, .stats { grid-template-columns: 1fr; }
    .hero--page .hero__inner { padding: 72px 0 60px; }
    .hero--home .hero__inner { min-height: 480px; padding: 56px 0; }
    .hero--home .hero__content { max-width: 100%; }
    .hero--home::before { background: linear-gradient(180deg, rgba(18,18,18,.80) 0%, rgba(18,18,18,.90) 100%); }
    .form-card { padding: 28px 22px; }
}

/* ---- Mobile (≤ 600px) ---- */
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-bottom__links { gap: 16px; flex-wrap: wrap; }
    .card--row { grid-template-columns: 1fr; gap: 16px; }
    .card--row .card__icon { margin-bottom: 4px; }
    .choice-group { flex-direction: column; }
    .choice { width: 100%; }
    .cta-strip .btn { width: 100%; justify-content: center; }
    .team-card { flex-direction: column; text-align: center; gap: 18px; }
    .team-card__photo { flex-basis: 200px; width: 200px; height: 260px; }
    .team-card__body { width: 100%; padding: 24px 22px; }
    .team-card .role { margin-bottom: 6px; }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    .container { padding: 0 18px; }
    .section { padding: 48px 0; }
    h3 { font-size: 1.15rem; }
    .lead { font-size: 1rem; }
    .card { padding: 28px 22px; }
    .form-card { padding: 24px 18px; }
    .info-card { padding: 22px; gap: 14px; }
    .widget { padding: 24px 20px; }
    .hours-card { padding: 24px 20px; }
    .hours-list li { font-size: .85rem; gap: 12px; }
    .cta-strip { padding: 28px 22px; }
    .cta-strip h3 { font-size: 1.35rem; }
    .btn { padding: 13px 22px; font-size: .8rem; }
    /* pagination scrollabile invece di andare a capo disordinata */
    .pagination { flex-wrap: wrap; }
    .breadcrumb { flex-wrap: wrap; }
    .post-meta { gap: 12px; }
}

/* ===================== WHATSAPP FLOATING BUTTON =====================
   Stessi asset/stile di www.gestionalenoleggio.com (bottone tondo verde
   con SVG bianco inline); z-index sotto il banner cookie (9999). */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 900;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    background: #1ebe5d;
}
.whatsapp-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
.whatsapp-float svg { display: block; }
@media (max-width: 640px) {
    .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float:hover { transform: none; }
}
@media (max-width: 600px) {
    .wa-float { right: 16px; bottom: 16px; height: 56px; }
    .wa-float__icon { flex-basis: 56px; width: 56px; height: 56px; font-size: 30px; }
    /* su mobile mostriamo solo l'icona per non coprire i contenuti */
    .wa-float:hover .wa-float__label,
    .wa-float:focus-visible .wa-float__label { max-width: 0; opacity: 0; padding-right: 0; }
}
