/*
Theme Name: Alessandro Sannini Premium
Theme URI: https://alessandrosannini.net
Author: Alessandro Sannini
Author URI: https://alessandrosannini.net
Description: Sito ufficiale di Alessandro Sannini — Private Equity Investor, Space Economy Advisor e Divulgatore. Tema WordPress premium con design editoriale di lusso, interfaccia IT/EN/FR, rassegna online con interviste, cinematica e blog riattivabile. | Official website of Alessandro Sannini — Private Equity Investor, Space Economy Advisor and Science Communicator.
Version: 9.4.0
Requires at least: 6.6
Tested up to: 7.1.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: as-premium
Tags: blog, portfolio, custom-logo, custom-menu, featured-images, responsive-layout, translation-ready, two-columns, three-columns, grid-layout

Design System:
  Typefaces  : Cormorant Garamond (display/serif) · DM Sans (UI/body) · DM Mono (code/data)
  Palette    :
    --ink     : #0A0A0A   (Nero assoluto — testi principali)
    --navy    : #0B1D3A   (Blu notte istituzionale)
    --gold    : #C9A84C   (Oro antico — accento premium)
    --gold-lt : #E8C97A   (Oro chiaro — hover)
    --stone   : #F5F3EF   (Pietra — sfondi alternati)
    --fog     : #EAE8E3   (Nebbia — bordi, divisori)
    --slate   : #4A5568   (Ardesia — testi secondari)
    --white   : #FFFFFF
  Spacing    : 8px grid system
  Motion     : cubic-bezier(.22,.68,0,1.2) — spring naturale
*/

/* =========================================================
   0. CUSTOM PROPERTIES & RESET
   ========================================================= */
:root {
  --ink:       #0A0A0A;
  --navy:      #0B1D3A;
  --navy-deep: #060F1E;
  --gold:      #C9A84C;
  --gold-lt:   #E8C97A;
  --gold-dk:   #9A7A2E;
  --stone:     #F5F3EF;
  --fog:       #EAE8E3;
  --slate:     #4A5568;
  --mist:      #8896A8;
  --white:     #FFFFFF;
  --red-err:   #C0392B;
  --green-ok:  #1A7A4A;

  --ff-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --ff-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono:    'DM Mono', 'Courier New', monospace;

  --fs-xs:   0.72rem;
  --fs-sm:   0.85rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.35rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;
  --fs-5xl:  5.5rem;

  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.65;
  --lh-loose:  1.85;

  --ls-tight:  -0.03em;
  --ls-normal: -0.01em;
  --ls-wide:   0.08em;
  --ls-wider:  0.15em;
  --ls-widest: 0.25em;

  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  48px;
  --sp-6:  64px;
  --sp-7:  80px;
  --sp-8:  96px;
  --sp-9:  120px;
  --sp-10: 160px;

  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 8px;

  --shadow-xs: 0 1px 3px rgba(10,10,10,.06);
  --shadow-sm: 0 4px 16px rgba(10,10,10,.07);
  --shadow-md: 0 12px 40px rgba(10,10,10,.10);
  --shadow-lg: 0 24px 64px rgba(10,10,10,.14);
  --shadow-xl: 0 40px 100px rgba(10,10,10,.18);

  --ease-spring: cubic-bezier(.22,.68,0,1.2);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast:  180ms;
  --dur-base:  320ms;
  --dur-slow:  600ms;

  --header-h: 76px;
  --max-w:    1280px;
  --text-w:   760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ff-body); }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--white); }

/* =========================================================
   1. TIPOGRAFIA — SISTEMA EDITORIALE DI LUSSO
   ========================================================= */

/* Display — Cormorant Garamond */
.t-display {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
.t-display-bold {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-2);
}

h1 { font-size: clamp(2.4rem, 5vw, var(--fs-4xl)); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, var(--fs-3xl)); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.5vw, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); font-family: var(--ff-body); font-weight: 600; }
h6 { font-size: var(--fs-base); font-family: var(--ff-body); font-weight: 700; }

p {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--slate);
  margin-bottom: var(--sp-2);
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: var(--ls-normal);
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--gold);
  display: block;
  margin-bottom: var(--sp-2);
}

.caption {
  font-size: var(--fs-xs);
  color: var(--mist);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: 500;
}

blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-5) 0;
  background: var(--stone);
}
blockquote p {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--navy);
  line-height: var(--lh-snug);
  margin: 0;
}

/* =========================================================
   2. LAYOUT & GRID
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
.container--narrow { max-width: var(--text-w); }
.container--wide   { max-width: 1440px; }

.section { padding: var(--sp-9) 0; }
.section--sm { padding: var(--sp-6) 0; }
.section--lg { padding: var(--sp-10) 0; }
.section--stone { background: var(--stone); }
.section--navy  { background: var(--navy); }
.section--ink   { background: var(--ink); }

/* =========================================================
   3. HEADER — DESIGN MINIMALISTA DI LUSSO
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--fog);
  box-shadow: 0 1px 40px rgba(10,10,10,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-4);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img,
.site-logo .custom-logo {
  max-height: 52px;
  width: auto;
  transition: opacity var(--dur-fast);
}
.site-logo:hover img { opacity: .8; }

/* Nav principale */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: inline-block;
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--slate);
  transition: color var(--dur-fast);
  position: relative;
}
.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.main-nav__link:hover,
.main-nav__item.current > .main-nav__link { color: var(--navy); }
.main-nav__link:hover::after,
.main-nav__item.current > .main-nav__link::after { transform: scaleX(1); }

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--sp-3);
  border-left: 1px solid var(--fog);
  padding-left: var(--sp-3);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 26px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--dur-fast);
  border-radius: var(--radius-sm);
}
.lang-btn:hover { color: var(--navy); border-color: var(--fog); }
.lang-btn.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  transition: all var(--dur-base) var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   4. HERO — CINEMATOGRAFICO E MONUMENTALE
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .06;
}
.hero__bg-circle--1 {
  width: 700px; height: 700px;
  background: var(--gold);
  top: -200px; right: -200px;
}
.hero__bg-circle--2 {
  width: 500px; height: 500px;
  background: var(--navy);
  bottom: -100px; left: -150px;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,29,58,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,29,58,.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-9) 0 var(--sp-7);
}
.hero__text { position: relative; z-index: 1; }

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.hero__overline-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: .6; }
}
.hero__overline-text {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--gold);
}

.hero__name {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  letter-spacing: var(--ls-tight);
  line-height: 1.0;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}
.hero__name strong {
  font-weight: 700;
  display: block;
}

.hero__roles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-4);
}
.hero__role {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--slate);
  font-weight: 400;
}
.hero__role-line {
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__desc {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--slate);
  max-width: 520px;
  margin-bottom: var(--sp-5);
}

.hero__cta {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Foto hero */
.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero__photo-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero__photo-frame::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  opacity: .3;
  z-index: 0;
}
.hero__photo-frame::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 60%; height: 60%;
  background: var(--stone);
  z-index: -1;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
  filter: grayscale(8%) contrast(1.04);
}
.hero__photo-badge {
  position: absolute;
  bottom: var(--sp-3);
  left: calc(-1 * var(--sp-4));
  background: var(--white);
  border: 1px solid var(--fog);
  padding: var(--sp-2) var(--sp-3);
  box-shadow: var(--shadow-md);
  z-index: 2;
  min-width: 200px;
}
.hero__badge-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.hero__badge-value {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-5);
  padding-top: var(--sp-3);
}
.hero__scroll-line {
  width: 40px; height: 1px;
  background: var(--fog);
}
.hero__scroll-text {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--mist);
  font-weight: 600;
}

/* =========================================================
   5. SECTION HEADERS — EDITORIALE
   ========================================================= */
.section-header {
  margin-bottom: var(--sp-7);
}
.section-header--center { text-align: center; }
.section-header--center .section-header__line { margin: 0 auto; }

.section-header__eyebrow { margin-bottom: var(--sp-2); }
.section-header__title {
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.section-header__title--white { color: var(--white); }
.section-header__line {
  width: 48px; height: 2px;
  background: var(--gold);
  margin-top: var(--sp-3);
  display: block;
}
.section-header__desc {
  font-size: var(--fs-md);
  color: var(--slate);
  max-width: 600px;
  margin-top: var(--sp-3);
  line-height: var(--lh-loose);
}
.section-header--center .section-header__desc { margin: var(--sp-3) auto 0; }

/* =========================================================
   6. BUTTONS — SISTEMA COMPLETO
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  border: 1.5px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::before { opacity: .06; }

.btn--primary {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: 0 8px 30px rgba(11,29,58,.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
  box-shadow: 0 8px 30px rgba(201,168,76,.3);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn--sm { padding: 10px 20px; font-size: 0.68rem; }
.btn--lg { padding: 18px 40px; font-size: var(--fs-sm); }
.btn--full { width: 100%; justify-content: center; }

.btn-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--fog);
  background: transparent;
  color: var(--navy);
  transition: all var(--dur-base) var(--ease-out);
  font-size: 1rem;
}
.btn-icon:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =========================================================
   7. CARDS — SISTEMA PREMIUM
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--fog);
  padding: var(--sp-5);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: var(--sp-3);
  transition: background var(--dur-base), color var(--dur-base);
}
.card:hover .card__icon {
  background: var(--navy);
  color: var(--gold-lt);
}
.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.card__text { font-size: var(--fs-sm); color: var(--slate); line-height: var(--lh-loose); margin: 0; }

/* Card numero */
.card--numbered {
  padding-top: var(--sp-6);
}
.card__number {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--fog);
  line-height: 1;
  transition: color var(--dur-base);
}
.card:hover .card__number { color: rgba(201,168,76,.15); }

/* =========================================================
   8. CHI SONO — LAYOUT EDITORIALE BICOLONNA
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
  align-items: start;
}
.about-text .lead { margin-bottom: var(--sp-4); }
.about-text p { color: var(--slate); }

.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.skill-tag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 16px;
  border: 1px solid var(--fog);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  transition: all var(--dur-fast);
  background: var(--white);
}
.skill-tag i { color: var(--gold); font-size: .9rem; }
.skill-tag:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,.04);
}

/* Profile sidebar */
.profile-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-3));
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--fog);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.profile-card__photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(5%) contrast(1.03);
  transition: transform var(--dur-slow) var(--ease-out);
}
.profile-card:hover .profile-card__photo { transform: scale(1.02); }
.profile-card__body { padding: var(--sp-4); }
.profile-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-card__title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  display: block;
}
.profile-card__divider {
  height: 1px;
  background: var(--fog);
  margin: var(--sp-3) 0;
}
.profile-meta { display: flex; flex-direction: column; gap: var(--sp-2); }
.profile-meta__item {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  align-items: flex-start;
}
.profile-meta__icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.profile-meta__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--mist);
  font-weight: 600;
  display: block;
}
.profile-meta__value { color: var(--navy); font-weight: 500; }

/* =========================================================
   9. SPACE ECONOMY — GRID PREMIUM
   ========================================================= */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  padding: var(--sp-5);
  background: var(--stone);
  border: 1px solid var(--fog);
}
.stat-item { text-align: center; }
.stat-item__number {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__number span { color: var(--gold); }
.stat-item__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--mist);
  font-weight: 600;
}

/* =========================================================
   10. VOLARE ALTO — DARK SECTION PREMIUM
   ========================================================= */
.book-section { background: var(--navy); position: relative; overflow: hidden; }
.book-section::before {
  content: '';
  position: absolute;
  top: -300px; right: -300px;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}

.book-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

/* Copertina 3D */
.book-cover-wrap {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.book-cover-3d {
  position: relative;
  display: block;
  perspective: 1000px;
}
.book-cover-3d::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 10%; right: 10%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,.4) 0%, transparent 70%);
  filter: blur(10px);
}
.book-cover-img {
  width: 100%;
  border: 1px solid rgba(201,168,76,.25);
  box-shadow: -8px 8px 0 rgba(201,168,76,.15), var(--shadow-xl);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
.book-cover-3d:hover .book-cover-img {
  transform: perspective(800px) rotateY(-8deg) rotateX(2deg) translateY(-8px);
  box-shadow: -16px 16px 0 rgba(201,168,76,.2), var(--shadow-xl);
}

.book-rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.2);
}
.book-rating__stars { color: var(--gold); font-size: .9rem; }
.book-rating__text { font-size: var(--fs-xs); color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: var(--ls-wide); font-weight: 600; }

/* Dettagli libro */
.book-details { padding-top: var(--sp-2); }
.book-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}
.book-subtitle {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--sp-5);
  font-weight: 300;
}

.book-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: var(--sp-5);
}
.book-spec {
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,.03);
}
.book-spec__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}
.book-spec__value { font-size: var(--fs-sm); color: rgba(255,255,255,.8); font-weight: 500; }

/* Griglia acquisto */
.purchase-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.purchase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: var(--sp-5);
}
.purchase-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8) !important;
  transition: all var(--dur-base) var(--ease-out);
  text-align: center;
}
.purchase-btn:hover {
  background: rgba(201,168,76,.12);
  border-color: rgba(201,168,76,.4);
  color: var(--gold-lt) !important;
  transform: translateY(-2px);
}
.purchase-btn i { font-size: 1.2rem; }
.purchase-btn__name { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-wide); }
.purchase-btn__price { font-size: .72rem; color: var(--gold); font-weight: 600; }

/* Descrizione libro */
.book-description {
  color: rgba(255,255,255,.7);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,.03);
}

/* Struttura libro */
.book-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}
.book-part {
  padding: var(--sp-4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-top: 2px solid var(--gold);
}
.book-part__num {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,168,76,.3);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.book-part__title { font-size: var(--fs-sm); font-weight: 700; color: var(--white); margin-bottom: var(--sp-2); font-family: var(--ff-body); }
.book-part__text { font-size: var(--fs-xs); color: rgba(255,255,255,.55); line-height: var(--lh-loose); margin: 0; }

/* Prefatori */
.prefatori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.prefatore {
  padding: var(--sp-3) var(--sp-4);
  border-left: 2px solid rgba(201,168,76,.3);
  background: rgba(255,255,255,.03);
}
.prefatore__name { font-size: var(--fs-sm); font-weight: 700; color: var(--white); margin-bottom: 2px; font-family: var(--ff-body); }
.prefatore__role { font-size: var(--fs-xs); color: var(--gold); text-transform: uppercase; letter-spacing: var(--ls-wide); font-weight: 600; margin-bottom: var(--sp-2); display: block; }
.prefatore__quote { font-size: var(--fs-xs); color: rgba(255,255,255,.55); font-style: italic; line-height: var(--lh-loose); margin: 0; }

/* Recensioni */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.review {
  padding: var(--sp-4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  position: relative;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.review:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(201,168,76,.25);
}
.review__quote-mark {
  font-family: var(--ff-display);
  font-size: 5rem;
  color: rgba(201,168,76,.2);
  line-height: .8;
  margin-bottom: var(--sp-2);
  display: block;
}
.review__stars { color: var(--gold); font-size: .8rem; margin-bottom: var(--sp-2); }
.review__text { font-size: var(--fs-sm); font-style: italic; color: rgba(255,255,255,.7); line-height: var(--lh-loose); margin-bottom: var(--sp-3); }
.review__author { font-size: var(--fs-xs); font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.review__source a { color: var(--gold); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-wide); }
.review__source a:hover { color: var(--gold-lt); }

/* Media links */
.media-links { display: flex; flex-direction: column; gap: 8px; margin: var(--sp-4) 0; }
.media-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px var(--sp-3);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.7) !important;
  font-size: var(--fs-sm);
  transition: all var(--dur-base) var(--ease-out);
}
.media-link:hover {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.3);
  color: var(--gold-lt) !important;
  padding-left: var(--sp-4);
}
.media-link i:first-child { color: var(--gold); flex-shrink: 0; }
.media-link span { flex: 1; }

/* =========================================================
   11. RASSEGNA STAMPA
   ========================================================= */
.press-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.filter-btn {
  padding: 8px 18px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  border: 1px solid var(--fog);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.press-list {
  border-top: 2px solid var(--navy);
}
.press-item {
  display: grid;
  grid-template-columns: 120px 160px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--fog);
  transition: padding-left var(--dur-base) var(--ease-out),
              background var(--dur-fast);
}
.press-item:hover {
  padding-left: var(--sp-2);
  background: rgba(201,168,76,.02);
}
.press-date {
  font-size: var(--fs-xs);
  color: var(--mist);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.press-source {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--gold);
}
.press-title {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
.press-title a { color: var(--navy); }
.press-title a:hover { color: var(--gold); }
.press-link {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--navy);
  padding: 6px 14px;
  border: 1px solid var(--fog);
  white-space: nowrap;
  transition: all var(--dur-fast);
}
.press-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =========================================================
   12. GALLERIA
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}
.gallery-grid .gallery-item:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,29,58,.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-3);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { color: var(--white); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; font-family: var(--ff-body); }
.gallery-category { color: var(--gold); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); font-weight: 700; }

/* Lightbox */
#as-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,15,30,.97);
  opacity: 0; transition: opacity var(--dur-base);
}
#as-lightbox.active { display: flex; opacity: 1; }
.lb-content { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--sp-3); max-width: 90vw; }
.lb-img { max-width: 80vw; max-height: 80vh; border: 2px solid rgba(255,255,255,.1); box-shadow: var(--shadow-xl); }
.lb-close { position: fixed; top: var(--sp-3); right: var(--sp-4); background: none; border: none; color: rgba(255,255,255,.6); font-size: 2rem; cursor: pointer; transition: color var(--dur-fast); line-height: 1; }
.lb-close:hover { color: var(--white); }
.lb-prev, .lb-next { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--white); font-size: 1.5rem; width: 48px; height: 48px; cursor: pointer; transition: all var(--dur-fast); flex-shrink: 0; }
.lb-prev:hover, .lb-next:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lb-caption { position: fixed; bottom: var(--sp-3); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: var(--fs-xs); text-align: center; text-transform: uppercase; letter-spacing: var(--ls-wide); }

/* =========================================================
   13. BLOG — LAYOUT EDITORIALE PREMIUM
   ========================================================= */
.blog-hero {
  padding: var(--sp-8) 0 var(--sp-6);
  border-bottom: 1px solid var(--fog);
  background: var(--stone);
}
.blog-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.blog-hero__desc { font-size: var(--fs-md); color: var(--slate); max-width: 600px; }

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--fog);
  margin-bottom: var(--sp-6);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--dur-base);
}
.blog-featured:hover { box-shadow: var(--shadow-lg); }
.blog-featured__image {
  overflow: hidden;
  height: 460px;
}
.blog-featured__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.blog-featured:hover .blog-featured__image img { transform: scale(1.04); }
.blog-featured__body {
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--fog);
}
.blog-featured__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--sp-3);
  align-self: flex-start;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--mist);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}
.blog-featured__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fog); }
.blog-featured__title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-snug);
}
.blog-featured__title a { color: var(--navy); }
.blog-featured__title a:hover { color: var(--gold-dk); }
.blog-featured__excerpt { font-size: var(--fs-sm); color: var(--slate); line-height: var(--lh-loose); margin-bottom: var(--sp-4); }
.blog-featured__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--navy);
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.blog-featured__read-more:hover { color: var(--gold-dk); gap: 14px; }

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--fog);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.blog-card__image {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--gold-dk);
  margin-bottom: var(--sp-1);
}
.blog-card__meta {
  font-size: var(--fs-xs);
  color: var(--mist);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-card__title {
  font-size: var(--fs-lg);
  color: var(--navy);
  margin-bottom: var(--sp-2);
  line-height: var(--lh-snug);
}
.blog-card__title a { color: var(--navy); }
.blog-card__title a:hover { color: var(--gold-dk); }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--slate); line-height: var(--lh-loose); margin-bottom: var(--sp-3); flex: 1; }
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--fog);
  margin-top: auto;
}
.blog-card__read-more {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.blog-card__read-more:hover { color: var(--gold-dk); gap: 10px; }
.blog-card__reading-time {
  font-size: var(--fs-xs);
  color: var(--mist);
  font-weight: 500;
}

/* Sidebar blog */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-7);
  align-items: start;
}
.blog-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
.sidebar-widget {
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--fog);
  background: var(--white);
}
.sidebar-widget__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--navy);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--gold);
  display: block;
}

/* Articolo singolo */
.single-post { max-width: var(--text-w); margin: 0 auto; }
.single-post__header { margin-bottom: var(--sp-6); }
.single-post__cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--gold-dk);
  margin-bottom: var(--sp-2);
  display: block;
}
.single-post__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: var(--sp-3);
  font-weight: 400;
}
.single-post__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--mist);
  font-weight: 500;
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.single-post__meta-sep { color: var(--fog); }
.single-post__cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: var(--sp-6);
}

/* Contenuto articolo */
.post-content {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--slate);
}
.post-content h2 { font-size: var(--fs-2xl); margin: var(--sp-6) 0 var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--fog); }
.post-content h3 { font-size: var(--fs-xl); margin: var(--sp-5) 0 var(--sp-2); }
.post-content h4 { font-size: var(--fs-lg); margin: var(--sp-4) 0 var(--sp-2); }
.post-content p { margin-bottom: var(--sp-3); }
.post-content a { color: var(--gold-dk); border-bottom: 1px solid rgba(201,168,76,.3); transition: border-color var(--dur-fast); }
.post-content a:hover { border-color: var(--gold-dk); }
.post-content ul, .post-content ol { padding-left: var(--sp-4); margin-bottom: var(--sp-3); }
.post-content li { margin-bottom: var(--sp-1); list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content img { width: 100%; height: auto; margin: var(--sp-5) 0; }
.post-content strong { color: var(--navy); font-weight: 700; }
.post-content code { font-family: var(--ff-mono); font-size: .88em; background: var(--stone); padding: 2px 6px; }
.post-content pre { background: var(--ink); color: var(--white); padding: var(--sp-4); overflow-x: auto; margin: var(--sp-4) 0; }

/* TOC */
.toc {
  background: var(--stone);
  border: 1px solid var(--fog);
  border-left: 3px solid var(--gold);
  padding: var(--sp-4);
  margin: var(--sp-5) 0;
}
.toc__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--navy);
  margin-bottom: var(--sp-3);
  display: block;
}
.toc__list { padding-left: var(--sp-3); }
.toc__item { margin-bottom: 6px; list-style: none; }
.toc__link {
  font-size: var(--fs-sm);
  color: var(--slate);
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc__link::before { content: '—'; color: var(--gold); font-size: .7rem; flex-shrink: 0; }
.toc__link:hover { color: var(--navy); }

/* SEO Score bar */
.seo-score-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--stone);
  border: 1px solid var(--fog);
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-2);
}
.seo-score-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.seo-score-dot--green { background: var(--green-ok); }
.seo-score-dot--yellow { background: #E6A817; }
.seo-score-dot--red { background: var(--red-err); }

/* =========================================================
   14. CONTATTI
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.contact-info {
  background: var(--navy);
  padding: var(--sp-6);
  color: rgba(255,255,255,.7);
}
.contact-info__title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  color: var(--white);
  font-weight: 400;
  margin-bottom: var(--sp-5);
}
.contact-info__item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.contact-info__item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; font-size: 1rem; }
.contact-info__item strong { color: var(--white); display: block; margin-bottom: 2px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); font-weight: 700; }
.contact-info__item a { color: rgba(255,255,255,.65); }
.contact-info__item a:hover { color: var(--gold-lt); }
.contact-info__divider { height: 1px; background: rgba(255,255,255,.08); margin: var(--sp-4) 0; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--fog);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-group { margin-bottom: var(--sp-3); }
.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--navy);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--fog);
  background: var(--stone);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11,29,58,.06);
}
.form-control::placeholder { color: var(--mist); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-privacy {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--slate);
  cursor: pointer;
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-4);
}
.form-privacy input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.form-privacy a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--fog); }

.form-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.form-msg--success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.form-msg--error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.form-msg i { flex-shrink: 0; margin-top: 2px; }

/* =========================================================
   15. PRIVACY PAGE
   ========================================================= */
.privacy-wrap { max-width: 860px; margin: 0 auto; }
.privacy-header { text-align: center; margin-bottom: var(--sp-7); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--fog); }
.privacy-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.privacy-update { font-size: var(--fs-xs); color: var(--mist); margin-top: var(--sp-2); text-transform: uppercase; letter-spacing: var(--ls-wide); font-weight: 600; }
.privacy-section { margin-bottom: var(--sp-6); }
.privacy-section h2 { font-size: var(--fs-xl); border-left: 3px solid var(--gold); padding-left: var(--sp-3); margin-bottom: var(--sp-3); }
.privacy-section h3 { font-size: var(--fs-lg); margin: var(--sp-4) 0 var(--sp-2); }
.privacy-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.privacy-table th, .privacy-table td { padding: 10px 14px; border: 1px solid var(--fog); text-align: left; }
.privacy-table th { background: var(--stone); font-weight: 700; color: var(--navy); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0; }
.right-item { border: 1px solid var(--fog); padding: var(--sp-3); }
.right-item i { color: var(--gold); font-size: 1.2rem; margin-bottom: var(--sp-2); display: block; }
.right-item h4 { font-size: var(--fs-sm); margin-bottom: 6px; }
.right-item p { font-size: var(--fs-xs); color: var(--slate); margin: 0; }

/* =========================================================
   16. COOKIE BANNER
   ========================================================= */
#as-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--navy-deep);
  border-top: 2px solid var(--gold);
  padding: var(--sp-4) 0;
  display: none;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
#as-cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.7);
  line-height: var(--lh-normal);
}
.cookie-text strong { color: var(--white); }
.cookie-text a { color: var(--gold); }
.cookie-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 22px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  border: 1.5px solid;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.cookie-btn--accept { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.cookie-btn--accept:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.cookie-btn--reject { background: transparent; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
.cookie-btn--reject:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
.cookie-btn--custom { background: transparent; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: .68rem; }
.cookie-btn--custom:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.6); }
#as-cookie-custom-panel {
  display: none;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-3) 0;
  margin-top: var(--sp-3);
}
.cookie-custom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); }
.cookie-toggle { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: rgba(255,255,255,.7); }
.cookie-toggle input { accent-color: var(--gold); width: 16px; height: 16px; }

/* =========================================================
   17. FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: var(--sp-9) 0 var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer-brand__logo { max-height: 44px; filter: brightness(0) invert(1); margin-bottom: var(--sp-3); }
.footer-brand__desc { font-size: var(--fs-sm); line-height: var(--lh-loose); color: rgba(255,255,255,.45); }
.footer-brand__address { font-size: var(--fs-xs); color: rgba(255,255,255,.35); margin-top: var(--sp-2); line-height: var(--lh-normal); }

.footer-col__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.45);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--gold-lt); padding-left: 4px; }
.footer-links a i { color: rgba(201,168,76,.5); font-size: .7rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* =========================================================
   18. BREADCRUMB
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--mist);
  font-weight: 500;
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { color: var(--fog); }

/* =========================================================
   19. ANIMAZIONI ENTRATA
   ========================================================= */
.as-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.as-reveal.visible { opacity: 1; transform: translateY(0); }
.as-reveal--delay-1 { transition-delay: 80ms; }
.as-reveal--delay-2 { transition-delay: 160ms; }
.as-reveal--delay-3 { transition-delay: 240ms; }
.as-reveal--delay-4 { transition-delay: 320ms; }
.as-reveal--delay-5 { transition-delay: 400ms; }

/* =========================================================
   20. UTILITY
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: var(--sp-3); background: var(--navy); color: var(--white); padding: 8px 16px; font-size: var(--fs-sm); font-weight: 700; z-index: 9999; transition: top var(--dur-fast); }
.skip-link:focus { top: var(--sp-2); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-mist  { color: var(--mist); }
.divider { height: 1px; background: var(--fog); margin: var(--sp-5) 0; }
.divider--gold { background: linear-gradient(90deg, var(--gold), transparent); }

/* =========================================================
   21. RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  :root { --max-w: 100%; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-layout { grid-template-columns: 280px 1fr; gap: var(--sp-6); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid .gallery-item:nth-child(5n+1) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero__visual { display: none; }
  .hero { min-height: auto; padding-bottom: var(--sp-7); }
  .about-grid { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .book-parts { grid-template-columns: 1fr; }
  .prefatori-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: var(--sp-2); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--fog); padding: var(--sp-4); box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav__list { flex-direction: column; gap: 4px; }
  .main-nav__link { font-size: var(--fs-sm); padding: 12px 0; }
  .lang-switch { border-left: none; padding-left: 0; margin-left: 0; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--fog); }
  .nav-toggle { display: flex; }
  .section { padding: var(--sp-7) 0; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__image { height: 260px; }
  .blog-featured__body { padding: var(--sp-4); }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .press-item { grid-template-columns: 1fr; gap: 6px; padding: var(--sp-3) 0; }
  .press-date, .press-source { display: inline; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--sp-4); }
  .purchase-grid { grid-template-columns: repeat(2, 1fr); }
  .book-layout { grid-template-columns: 1fr; }
  .book-cover-wrap { position: static; text-align: center; }
  .book-cover-img { max-width: 240px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-skills { grid-template-columns: 1fr; }
  .hero__name { font-size: clamp(2.8rem, 8vw, 4rem); }
  .book-specs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-2); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .purchase-grid { grid-template-columns: 1fr 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   22. PRINT
   ========================================================= */
@media print {
  .site-header, .site-footer, #as-cookie-banner, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 20pt 0; }
}
