/* Regole aggiunte solo per l'anteprima della riorganizzazione. */

.anteprima-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 5000;
  background: #c4a35a; color: #fff; font: 600 0.72rem/1 Inter, sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .55rem .8rem; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  pointer-events: none;
}

/* Menu: voci di testa, separatori, "in arrivo" */
.nav-dropdown-menu .dd-head { font-weight: 600; color: var(--primary); }
.nav-dropdown-menu .dd-sep { border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .8rem; border-radius: 0 0 6px 6px; }
.nav-dropdown-menu .dd-soon {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--txtm, #8a94a3); margin-left: .4rem; font-weight: 500;
}
.nav-dropdown-menu--wide { min-width: 270px; }

/* Piè di pagina a cinque colonne */
.footer-grid--5 { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.25rem; }
@media (max-width: 1024px) { .footer-grid--5 { grid-template-columns: 1fr 1fr; } .footer-grid--5 .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px)  { .footer-grid--5 { grid-template-columns: 1fr; } }

/* Home: tre porte d'ingresso */
.porte .porta { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.porte .porta:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Le voci del menu restano su una riga */
.nav-links > a, .nav-dropdown-toggle { white-space: nowrap; }

/* Testata a tutta larghezza */
.header .container { max-width: none; padding: 0 2.5rem; }
.nav-links { gap: 2rem; }

/* Selettore lingua compatto */
.lang-switch .lang-select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; color: inherit;
  font: 600 .85rem/1 Inter, sans-serif; letter-spacing: .04em;
  padding: .35rem 1rem .35rem .25rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right .35rem center, right .05rem center;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}

/* Home: About Us | Mission */
.about-mission .mission-col { border-left: 2px solid var(--accent); padding-left: 2.5rem; }
.about-mission .mission-col p { font-size: 1.2rem; line-height: 1.8; }
@media (max-width: 768px) { .about-mission .mission-col { border-left: 0; padding-left: 0; } }

/* Home: titoli in nero, Mission più in basso */
.about-mission h2 { color: #111; }
.about-mission .mission-col { align-self: center; }

/* Home: About Us sopra a sinistra, Mission sotto a destra */
.about-mission .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
.about-mission .grid-2 > div:first-child { max-width: 60%; }
.about-mission .mission-col { align-self: auto; width: 50%; margin-left: auto; }
@media (max-width: 768px) {
  .about-mission .grid-2 > div:first-child, .about-mission .mission-col { max-width: none; width: auto; }
}

/* Mission: senza linea dorata, allineata al margine destro */
.about-mission .mission-col { border-left: 0; padding-left: 0; text-align: right; }
@media (max-width: 768px) { .about-mission .mission-col { text-align: left; } }

/* Chi siamo: video di sfondo sotto il testo della storia */
.storia-video { position: relative; overflow: hidden; color: #fff; }
.storia-video .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.storia-video .bg-video-overlay { position: absolute; inset: 0; background: rgba(10, 22, 30, .62); z-index: 1; }
.storia-video .container { position: relative; z-index: 2; }
.storia-video .grid-2 { grid-template-columns: 1fr !important; max-width: 820px; }
.storia-video h2, .storia-video p { color: #fff; }
.storia-video p { opacity: .92; }

/* Chi siamo: senza fascia d'intestazione il video parte sotto la testata fissa */
.storia-video { padding-top: calc(var(--header-height, 80px) + 4rem); }

/* Chi siamo: video fermo a tutto schermo dietro la pagina, testo al centro.
   Le sezioni successive hanno fondo pieno e scorrono sopra il video. */
.storia-video { position: static; overflow: visible; background: transparent;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-height, 80px) + 2rem) 0 4rem; }
.storia-video .bg-video, .storia-video .bg-video-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.storia-video .container { position: relative; z-index: 2; text-align: center; }
.storia-video .grid-2 { margin: 0 auto; }
.storia-video ~ section, .storia-video ~ footer, .storia-video ~ .cookie-banner { position: relative; z-index: 1; }
.storia-video ~ section:not(.section-alt):not(.section-dark):not(.cta-banner) { background-color: var(--bg, #fff); }

/* Home: apertura con la foto, titolo bianco centrato in maiuscolo */
.hero {
  background: linear-gradient(rgba(8, 18, 28, .55), rgba(8, 18, 28, .65)), url("../img/hero-home.jpg") center / cover no-repeat !important;
}
.hero::before, .hero::after, .hero .hero-depth, .hero .hero-image { display: none !important; }
.hero .container { width: 100%; }
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.hero h1 .highlight { color: #fff; }
.hero-buttons { justify-content: center; }

/* Home: "Corporate Advisors" come sottotitolo elegante */
.hero h1 .highlight {
  display: inline-block; margin-top: .9rem;
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: .32em; letter-spacing: .5em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .35);
}
.hero h1 .highlight { border-top: 0; padding-top: 0; margin-top: .6rem; }
.hero h1 { line-height: 1.05; }
.hero h1 br { display: none; }
.hero h1 .highlight { display: block; margin-top: .35rem; line-height: 1.2; }

/* Libro: foto dell'autore al posto delle iniziali */
.author-photo--img { object-fit: cover; object-position: center top; padding: 0; background: #eee; display: block; }

/* Piè di pagina: "Strategic Advisory" accanto al logo era blu scuro su fondo scuro */
.footer-brand .logo-text { color: #fff; }

/* Blog: News dal mercato */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .news-grid { grid-template-columns: 1fr; } }
.news-item { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.35rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius, 10px);
  color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.news-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.news-meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #7a8590); }
.news-meta strong { color: var(--accent); font-weight: 600; }
.news-title { font-family: var(--font-serif, 'Playfair Display', serif); font-size: 1.05rem; line-height: 1.4; color: #111; flex: 1; }
.news-go { font-size: .8rem; color: var(--primary); font-weight: 500; }
.news-loading { grid-column: 1 / -1; text-align: center; color: var(--text-muted, #7a8590); }
.news-note { margin-top: 1.5rem; font-size: .75rem; color: var(--text-muted, #7a8590); text-align: center; }

/* Blog: intestazione con l'immagine dei giornali e la scritta in maiuscolo */
.page-header.blog-hero {
  background: linear-gradient(rgba(8, 18, 28, .55), rgba(8, 18, 28, .6)), url("../img/blog-header.jpg") center / cover no-repeat !important;
  padding: 6.5rem 0 6rem;
}
.page-header.blog-hero::before, .page-header.blog-hero::after { display: none !important; }
.page-header.blog-hero h1 { text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.page-header.blog-hero p { color: rgba(255, 255, 255, .9); max-width: 640px; margin-left: auto; margin-right: auto; }

/* Blog: la foto si vede tutta e scende fino agli articoli, con dentro "News dal mercato" */
.page-header.blog-hero {
  padding: 0; min-height: max(520px, calc(100vw * 857 / 2000));
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  background-position: center center !important;
}
.blog-hero-top { padding: 5.5rem 1.5rem 0; }
.blog-hero-news { padding: 0 1.5rem 3.5rem; }
.blog-hero-news h2 { color: #fff; font-size: 2.2rem; margin-bottom: .6rem; }
.blog-hero-news p { color: rgba(255, 255, 255, .85); font-size: 1rem; }
.news-section { padding-top: 3.5rem; }

/* Blog: un solo blocco al centro della foto — titolo, sottotitolo maiuscolo, nota piccola */
.page-header.blog-hero { justify-content: center; }
.blog-hero-top { padding: 3rem 1.5rem; max-width: 900px; }
.page-header.blog-hero h1 { font-size: 3.4rem; margin-bottom: 1.1rem; }
.page-header.blog-hero .blog-hero-sub {
  text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; font-weight: 500;
  line-height: 1.7; color: rgba(255, 255, 255, .92); max-width: 760px; margin: 0 auto 1rem;
}
.page-header.blog-hero .blog-hero-note { font-size: .85rem; color: rgba(255, 255, 255, .7); margin: 0 auto; }

/* Servizi: intestazione con la scacchiera (stesso schema del Blog) */
.page-header.svc-hero {
  background: linear-gradient(rgba(8, 18, 28, .45), rgba(8, 18, 28, .55)), url("../img/servizi-header.jpg") center / cover no-repeat !important;
}

/* Servizi: tre gruppi da tre schede numerate */
.svc-group + .svc-group { margin-top: 4rem; }
.svc-group-title {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; font-family: 'Inter', sans-serif;
  font-weight: 600; color: #111; margin-bottom: 1.5rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border); text-align: left;
}
.svc-card { position: relative; transition: transform .25s, box-shadow .25s, background-color .25s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); background-color: #fbf8f1; }
.svc-card .svc-num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--font-serif, 'Playfair Display', serif); font-size: 1.6rem; font-weight: 700;
  color: rgba(196, 163, 90, .45);
}
.svc-card .card-icon { background: var(--accent) !important; color: #fff; }
.svc-network { margin-top: 3.5rem; text-align: center; color: var(--text-light, #4b5358); }
.svc-network a { color: var(--primary); font-weight: 600; margin-left: .3rem; }

/* Servizi, "Il nostro metodo": senza trattini oro, titolo e sottotitolo in maiuscolo */
.svc-metodo::before, .svc-metodo .section-header h2::after { display: none !important; }
.svc-metodo .section-header h2 { text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.svc-metodo .section-header p {
  text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 500; max-width: 720px;
}

/* ===== REGOLA GENERALE (Francesco): titoli neri e maiuscoli, niente trattini oro ===== */
/* Vale sulle sezioni chiare; foto, fasce scure e piè di pagina restano col titolo bianco. */
.section:not(.section-dark):not(.storia-video):not([style*="gradient"]) :is(h2, h3, h4) {
  color: #111 !important; text-transform: uppercase; letter-spacing: .05em;
}
.section:not(.section-dark):not(.storia-video):not([style*="gradient"]) :is(h3, h4) { letter-spacing: .03em; }
.section + .section::before,
.section-header h2::after { display: none !important; }

/* Sezioni a elenco numerato (Valori, Metodo): più compatte */
.section-header { margin-bottom: 2.5rem; }
.value-item { padding: 1.1rem 0; gap: 1.1rem; }
.value-number { font-size: 1.5rem; min-width: 40px; }
.value-item h4 { margin-bottom: .25rem; }
/* Anche sui fondi scuri i titoli vanno in maiuscolo (restano bianchi per leggibilità) */
:is(.section-dark, .cta-banner, .page-header, .storia-video, .section[style*="gradient"]) :is(h1, h2, h3) {
  text-transform: uppercase; letter-spacing: .05em;
}

/* Opportunità: foto al posto dello sfondo blu nelle intestazioni */
.hero-foto { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.hero-foto::before, .hero-foto::after { display: none !important; }
.hero-immobiliare { background-image: linear-gradient(rgba(8, 18, 28, .58), rgba(8, 18, 28, .68)), url("../img/header-immobiliare.jpg") !important; }
.hero-aziende     { background-image: linear-gradient(rgba(8, 18, 28, .62), rgba(8, 18, 28, .72)), url("../img/header-aziende.jpg") !important; }
.hero-investitori { background-image: linear-gradient(rgba(8, 18, 28, .45), rgba(8, 18, 28, .6)), url("../img/header-investitori.jpg") !important; }
.hero-foto h1 { color: #fff !important; text-transform: uppercase; letter-spacing: .06em; }

/* Lavora con noi: foto del team, scritta in alto sopra le teste (velatura più scura in alto) */
.page-header.lavora-hero {
  background: linear-gradient(180deg, rgba(8, 18, 28, .82) 0%, rgba(8, 18, 28, .45) 45%, rgba(8, 18, 28, .15) 100%),
              url("../img/lavora-header.jpg") center bottom / cover no-repeat !important;
  justify-content: flex-start;
}
.page-header.lavora-hero .blog-hero-top { padding-top: 3rem; }
.page-header.lavora-hero { min-height: max(560px, calc(100vw * 0.5)); }
.page-header.lavora-hero .blog-hero-top { padding-top: 2rem; }
.page-header.lavora-hero h1 { margin-bottom: .6rem; }
.page-header.lavora-hero .blog-hero-sub { margin-bottom: .5rem; }

/* Lavora con noi: scritta al centro dell'immagine, velatura uniforme per leggerla sopra le persone */
.page-header.lavora-hero {
  background: linear-gradient(rgba(8, 18, 28, .58), rgba(8, 18, 28, .58)),
              url("../img/lavora-header.jpg") center center / cover no-repeat !important;
  justify-content: center;
}
.page-header.lavora-hero .blog-hero-top { padding: 2rem 1.5rem; }
.page-header.lavora-hero h1, .page-header.lavora-hero p { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }

/* Fondo pagina, variante C (scelta da Francesco): bianco, due colonne, contatto diretto */
.cta-c { background: #fff; border-top: 1px solid #e6e0d2; padding: 4.5rem 0; }
.cta-c-griglia { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.cta-c h2 { color: #111 !important; text-transform: uppercase; letter-spacing: .06em; font-size: 2rem; margin: 0 0 .9rem; }
.cta-c p { color: #4b5358; font-size: 1.05rem; margin: 0; max-width: 560px; }
.cta-c-recapiti { border-left: 1px solid #e6e0d2; padding-left: 3rem; }
.cta-c-riga { display: flex; gap: .9rem; align-items: baseline; margin-bottom: 1rem; color: #111; font-size: .98rem; text-decoration: none; }
.cta-c-riga:hover { color: var(--accent); }
.cta-c-riga i { color: var(--accent); width: 18px; }
.cta-c-bottoni { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }
.cta-c-btn { background: #111; color: #fff; padding: .9rem 2.2rem; border-radius: 2px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; text-decoration: none; display: inline-block; border: 1px solid #111; }
.cta-c-btn:hover { background: #2a2a2a; color: #fff; }
.cta-c-btn--sec { background: transparent; color: #111; }
.cta-c-btn--sec:hover { background: #111; color: #fff; }
@media (max-width: 768px) {
  .cta-c-griglia { grid-template-columns: 1fr; gap: 2rem; }
  .cta-c-recapiti { border-left: 0; padding-left: 0; }
  .cta-c h2 { font-size: 1.6rem; }
}

/* Piè di pagina: recapiti diretti (sostituiscono i riquadri di fine pagina) */
.footer-recapiti { display: flex; flex-direction: column; gap: .5rem; margin: 1.1rem 0 1.2rem; }
.footer-recapiti a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .9rem; }
.footer-recapiti a:hover { color: var(--accent); }
.footer-recapiti i { color: var(--accent); width: 18px; margin-right: .35rem; }

/* Contatti: rimando alla call al posto della mappa, sezione prenotazione */
.call-card { text-decoration: none; color: inherit; border: 1px solid var(--accent); transition: background-color .2s; }
.call-card:hover { background: #fbf8f1; }
.call-card p { color: var(--primary); font-weight: 500; }
.fissa-call { border-top: 1px solid #e6e0d2; }
.cal-box { max-width: 1000px; margin: 0 auto; min-height: 620px; border: 1px solid var(--border); border-radius: 4px; background: #fff; overflow: hidden; }
.cal-segnaposto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #4b5358; text-align: center; padding: 2rem; min-height: 360px; background: #f7f5f0; }
.cal-segnaposto i { font-size: 2.5rem; color: var(--accent); margin-bottom: .5rem; }
.cal-nota { text-align: center; font-size: .8rem; color: var(--text-muted, #7a8590); margin-top: 1.2rem; }

/* Contatti: prenotazione call (sistema interno) */
.pc-box { max-width: 1000px; margin: 0 auto; border: 1px solid #e6e0d2; background: #fff; }
.pc-corpo { display: grid; grid-template-columns: 1fr 1fr; }
.pc-colonna { padding: 2rem; }
.pc-colonna + .pc-colonna { border-left: 1px solid #e6e0d2; }
.pc-titoletto { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #111; margin: 0 0 .8rem; }
.pc-durate { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.pc-durata { flex: 1; padding: .6rem; border: 1px solid #111; background: #fff; color: #111; font-weight: 600; font-size: .85rem; cursor: pointer; }
.pc-durata.attiva { background: #111; color: #fff; }
.pc-mese { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.pc-mese strong { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.pc-nav { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #111; padding: 0 .5rem; }
.pc-nav:disabled { opacity: .25; cursor: default; }
.pc-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.pc-intest span { font-size: .7rem; text-transform: uppercase; color: #8a94a3; padding-bottom: .3rem; }
.pc-giorno { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .9rem; border: 1px solid transparent; background: none; }
button.pc-giorno { cursor: pointer; color: #111; font-weight: 600; border-color: #e6e0d2; }
button.pc-giorno:hover { border-color: var(--accent); }
button.pc-giorno.scelto { background: #111; color: #fff; border-color: #111; }
.pc-no { color: #c9ced4; }
.pc-orari { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.pc-orari .pc-titoletto { width: 100%; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.pc-ora { padding: .5rem .9rem; border: 1px solid #e6e0d2; background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; color: #111; }
.pc-ora:hover { border-color: var(--accent); }
.pc-ora.scelta { background: #111; color: #fff; border-color: #111; }
.pc-msg { color: #6b7480; font-size: .9rem; margin: 0; }
.pc-form { border-top: 1px solid #e6e0d2; padding-top: 1.2rem; }
.pc-riepilogo { font-weight: 600; color: #111; margin: 0 0 .9rem; }
.pc-campi { display: grid; gap: .6rem; }
.pc-campi input, .pc-campi textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #d9dde2; font: inherit; font-size: .9rem; border-radius: 0; }
.pc-campi input:focus, .pc-campi textarea:focus { outline: none; border-color: #111; }
.pc-hp { position: absolute !important; left: -9999px !important; }
.pc-privacy { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: #4b5358; margin: .9rem 0 .4rem; }
.pc-privacy input { margin-top: .2rem; }
.pc-errore { color: #b3261e; font-size: .85rem; min-height: 1.2em; margin: .2rem 0 .6rem; }
.pc-conferma { width: 100%; background: #111; color: #fff; border: 0; padding: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; cursor: pointer; }
.pc-conferma:disabled { opacity: .6; }
.pc-fatto { grid-column: 1 / -1; text-align: center; padding: 3rem 2rem; }
.pc-fatto i { font-size: 2.6rem; color: var(--accent); margin-bottom: .8rem; }
.pc-fatto h3 { text-transform: uppercase; letter-spacing: .06em; color: #111; }
@media (max-width: 768px) {
  .pc-corpo { grid-template-columns: 1fr; }
  .pc-colonna + .pc-colonna { border-left: 0; border-top: 1px solid #e6e0d2; }
  .pc-colonna { padding: 1.4rem; }
}
.pc-durata-fissa { margin: 0; font-weight: 600; color: #111; font-size: .9rem; }
.pc-durata-fissa i { color: var(--accent); margin-right: .35rem; }

/* Contatti: immagine con le icone a sinistra, titolo sulla destra */
.page-header.contatti-hero {
  background: linear-gradient(90deg, rgba(8, 18, 28, .15) 0%, rgba(8, 18, 28, .35) 50%, rgba(8, 18, 28, .55) 100%),
              url("../img/contatti-header.jpg") center / cover no-repeat !important;
  justify-content: center; align-items: flex-end;
}
.contatti-hero .blog-hero-top { margin-right: 7%; max-width: 560px; text-align: center; }
@media (max-width: 900px) {
  .page-header.contatti-hero { align-items: center; background-position: 20% center !important; }
  .contatti-hero .blog-hero-top { margin-right: 0; }
}
