
:root{
  --bg:#070708;
  --bg-soft:#111114;
  --panel:#151518;
  --panel-2:#1e1b1d;
  --text:#f4efe9;
  --muted:#b6ada7;
  --line:rgba(244,239,233,.14);
  --accent:#8d1f2d;
  --accent-2:#b73a4c;
  --gold:#c7b28a;
  --shadow:0 24px 70px rgba(0,0,0,.55);
  --radius:28px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 10% 0%, rgba(141,31,45,.20), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(180deg,#050506 0%,#0b0b0d 45%,#050506 100%);
  color:var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.55;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode:screen;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(var(--max), calc(100% - 40px));margin:0 auto}
.site-header{
  position:sticky;top:0;z-index:100;
  backdrop-filter:blur(16px);
  background:rgba(7,7,8,.72);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:22px}
.brand{display:flex;align-items:center;gap:14px;font-family:Georgia,serif;letter-spacing:.08em}
.brand-mark{
  width:42px;height:42px;border:1px solid rgba(244,239,233,.35);border-radius:50%;
  display:grid;place-items:center;color:var(--text);font-size:16px;background:rgba(255,255,255,.03)
}
.brand span{font-size:18px}
.nav-links{display:flex;align-items:center;gap:22px;color:var(--muted);font-size:14px}
.nav-links a:hover{color:var(--text)}
.menu-toggle{display:none;background:none;border:1px solid var(--line);color:var(--text);border-radius:999px;padding:10px 14px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border-radius:999px;padding:13px 20px;font-weight:700;font-size:14px;
  border:1px solid rgba(244,239,233,.18);background:rgba(255,255,255,.04);
  transition:.22s ease;cursor:pointer;
}
.btn:hover{transform:translateY(-2px);border-color:rgba(244,239,233,.34);background:rgba(255,255,255,.08)}
.btn-primary{background:linear-gradient(135deg,var(--accent),#58141d);border-color:rgba(183,58,76,.7);box-shadow:0 14px 40px rgba(141,31,45,.22)}
.btn-primary:hover{background:linear-gradient(135deg,var(--accent-2),#681926)}
.btn-ghost{color:var(--muted)}
.hero{position:relative;min-height:760px;display:grid;align-items:center;overflow:hidden;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center;padding:80px 0}
.eyebrow{letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-size:12px;font-weight:800;margin-bottom:18px}
h1,h2,h3{font-family:Georgia, "Times New Roman", serif;line-height:1.02;margin:0}
h1{font-size:clamp(56px,9vw,126px);letter-spacing:.035em;text-transform:uppercase;text-shadow:0 8px 40px rgba(0,0,0,.55)}
h2{font-size:clamp(38px,5vw,70px);letter-spacing:.015em}
h3{font-size:clamp(26px,3vw,42px)}
.lead{font-size:clamp(18px,2vw,23px);color:#ddd5ce;max-width:730px;margin:24px 0 0}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.hero-note{margin-top:24px;color:var(--muted);font-size:14px;max-width:560px}
.hero-covers{
  position:relative;min-height:560px;display:grid;place-items:center;
}
.cover-stack{position:relative;width:min(480px, 88vw);height:600px}
.cover-stack img{
  position:absolute;width:280px;border-radius:18px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.13);
  aspect-ratio:2/3;object-fit:cover;background:#111;
}
.cover-stack img:nth-child(1){left:0;top:85px;transform:rotate(-8deg);z-index:1;filter:brightness(.78)}
.cover-stack img:nth-child(2){left:106px;top:15px;transform:rotate(0deg);z-index:3}
.cover-stack img:nth-child(3){right:0;top:115px;transform:rotate(8deg);z-index:2;filter:brightness(.86)}
.section{padding:96px 0;border-bottom:1px solid var(--line)}
.section-head{display:flex;justify-content:space-between;gap:28px;align-items:end;margin-bottom:42px}
.section-head p{max-width:620px;color:var(--muted);margin:0;font-size:17px}
.kicker{font-family:Georgia,serif;color:var(--accent-2);font-style:italic;font-size:24px;margin-bottom:12px}
.start-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.start-card{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
  border:1px solid var(--line);border-radius:var(--radius);padding:28px;min-height:250px;
}
.start-card .num{font-family:Georgia,serif;color:var(--gold);font-size:28px;margin-bottom:24px}
.start-card p{color:var(--muted);margin:14px 0 0}
.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.book-card{
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.28)
}
.book-card .cover-wrap{padding:18px 18px 0}
.book-card img{border-radius:20px;aspect-ratio:2/3;object-fit:cover;width:100%;box-shadow:0 18px 45px rgba(0,0,0,.42)}
.book-card-body{padding:24px;display:flex;flex-direction:column;gap:14px;flex:1}
.book-card .tag{font-family:Georgia,serif;font-style:italic;color:#e2d4c9;font-size:20px}
.book-card p{color:var(--muted);margin:0}
.card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:44px;align-items:center}
.panel{
  border:1px solid var(--line);background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border-radius:var(--radius);padding:36px;box-shadow:var(--shadow)
}
.panel p{color:var(--muted)}
.future-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.future-card{
  border:1px solid var(--line);border-radius:22px;overflow:hidden;background:rgba(255,255,255,.035);
  min-width:0;
}
.future-card img{aspect-ratio:2/3;object-fit:cover;width:100%;filter:saturate(.92)}
.future-card div{padding:14px}
.future-card h3{font-size:22px}
.future-card p{font-size:13px;color:var(--muted);margin:8px 0 0}
.newsletter{
  background:
    linear-gradient(135deg,rgba(141,31,45,.30),rgba(255,255,255,.035)),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.10), transparent 34%);
  border:1px solid rgba(183,58,76,.28);border-radius:calc(var(--radius) + 8px);
  padding:46px;display:grid;grid-template-columns:1fr .9fr;gap:34px;align-items:center;box-shadow:var(--shadow)
}
.newsletter p{color:#ddd0cb;max-width:620px}
.form-note{font-size:13px;color:var(--muted)}
form{display:grid;gap:12px}
input,textarea{
  width:100%;border:1px solid rgba(244,239,233,.16);border-radius:18px;background:rgba(0,0,0,.32);
  color:var(--text);padding:15px 16px;font:inherit;outline:none
}
textarea{min-height:140px;resize:vertical}
input:focus,textarea:focus{border-color:rgba(183,58,76,.8)}
.author-box{display:grid;grid-template-columns:1fr 2fr;gap:32px;align-items:center}
.author-portrait{
  border-radius:50%;border:1px solid rgba(244,239,233,.18);aspect-ratio:1/1;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), rgba(141,31,45,.18) 38%, rgba(0,0,0,.38) 70%), #101012;
  display:grid;place-items:center;font-family:Georgia,serif;font-size:54px;color:#f1ede8;box-shadow:var(--shadow)
}
.quote-band{text-align:center;padding:110px 0;background:#050506;border-bottom:1px solid var(--line)}
.quote-band blockquote{font-family:Georgia,serif;font-size:clamp(32px,5vw,68px);line-height:1.08;margin:0 auto;max-width:960px}
.quote-band p{color:var(--muted);margin:22px 0 0}
.footer{padding:44px 0;background:#050506;color:var(--muted)}
.footer-grid{display:flex;justify-content:space-between;gap:28px;flex-wrap:wrap}
.footer a{color:#d8d0cb}
.page-hero{padding:84px 0 54px;border-bottom:1px solid var(--line)}
.breadcrumb{color:var(--muted);font-size:14px;margin-bottom:24px}
.book-detail{display:grid;grid-template-columns:380px 1fr;gap:54px;align-items:start}
.book-detail img{border-radius:24px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.14)}
.meta-list{display:grid;gap:12px;margin:26px 0;color:var(--muted)}
.meta-list strong{color:var(--text)}
.text-page{max-width:850px;margin:0 auto;color:#d8d0cb;font-size:18px}
.text-page h2{margin-top:42px;margin-bottom:16px;font-size:38px}
.text-page p{margin:0 0 18px}
.notice{border:1px solid rgba(199,178,138,.3);background:rgba(199,178,138,.08);border-radius:18px;padding:16px;color:#e8dccd}
@media(max-width:980px){
  .hero-grid,.split,.newsletter,.author-box,.book-detail{grid-template-columns:1fr}
  .hero{min-height:auto}
  .hero-grid{padding:60px 0}
  .cover-stack{height:520px}
  .start-grid,.book-grid{grid-template-columns:1fr}
  .future-grid{grid-template-columns:repeat(2,1fr)}
  .section-head{display:block}
  .section-head p{margin-top:18px}
}
@media(max-width:760px){
  .container{width:min(100% - 28px, var(--max))}
  .nav-links{display:none;position:absolute;left:14px;right:14px;top:72px;background:#101012;border:1px solid var(--line);border-radius:22px;padding:18px;flex-direction:column;align-items:flex-start}
  .nav-links.open{display:flex}
  .menu-toggle{display:inline-flex}
  .nav{min-height:70px}
  h1{font-size:48px}
  .cover-stack{height:430px}
  .cover-stack img{width:210px}
  .cover-stack img:nth-child(2){left:72px}
  .newsletter{padding:28px}
  .section{padding:72px 0}
  .future-grid{grid-template-columns:1fr}
  .footer-grid{display:block}
}


.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 239, 233, .16);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: .22s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 58, 76, .7);
  background: rgba(141, 31, 45, .22);
}


/* Social icon buttons */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-links a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: .22s ease;
}

.social-links a {
  justify-content: center;
  border: 1px solid rgba(244, 239, 233, .16);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  padding: 12px 18px;
}

.social-links a:hover,
.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.social-links a:hover {
  border-color: rgba(183, 58, 76, .7);
  background: rgba(141, 31, 45, .22);
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .footer-social {
    justify-content: flex-start;
  }
}


/* Footer social icons - compact noir version */
.footer-right {
  text-align: right;
}

.footer-social-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-social-compact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  border: 1px solid rgba(244, 239, 233, .14);
  background: rgba(255, 255, 255, .035);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  transition: .22s ease;
}

.footer-social-compact a:hover {
  color: var(--text);
  border-color: rgba(183, 58, 76, .55);
  background: rgba(141, 31, 45, .18);
  transform: translateY(-1px);
}

.footer-social-compact .footer-icon,
.footer-social-compact svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  display: inline-block !important;
  flex: 0 0 18px !important;
}

.footer-legal {
  color: var(--muted);
  font-size: 13px;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .footer-right {
    text-align: left;
    margin-top: 18px;
  }

  .footer-social-compact {
    justify-content: flex-start;
  }
}


/* FINAL FIX - compact social icons everywhere */
.social-compact {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}

.panel .social-compact {
  justify-content: flex-start !important;
  margin-top: 22px !important;
}

.social-compact a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: var(--muted) !important;
  border: 1px solid rgba(244, 239, 233, .15) !important;
  background: rgba(255, 255, 255, .035) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: .22s ease !important;
}

.social-compact a:hover {
  color: var(--text) !important;
  border-color: rgba(183, 58, 76, .62) !important;
  background: rgba(141, 31, 45, .18) !important;
  transform: translateY(-1px) !important;
}

.social-compact svg,
.social-compact .social-mini-icon,
.social-mini-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  display: inline-block !important;
  overflow: visible !important;
}

.footer-right {
  text-align: right !important;
}

.footer-legal {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.footer-legal a {
  color: var(--muted) !important;
}

.footer-legal a:hover {
  color: var(--text) !important;
}

@media (max-width: 760px) {
  .footer-right {
    text-align: left !important;
    margin-top: 18px !important;
  }

  .social-compact {
    justify-content: flex-start !important;
  }
}


/* FINAL social compact */
.social-compact {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}

.panel .social-compact {
  justify-content: flex-start !important;
  margin-top: 22px !important;
}

.social-compact a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: var(--muted) !important;
  border: 1px solid rgba(244, 239, 233, .15) !important;
  background: rgba(255, 255, 255, .035) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: .22s ease !important;
}

.social-compact a:hover {
  color: var(--text) !important;
  border-color: rgba(183, 58, 76, .62) !important;
  background: rgba(141, 31, 45, .18) !important;
  transform: translateY(-1px) !important;
}

.social-compact svg,
.social-compact .social-mini-icon,
.social-mini-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  display: inline-block !important;
}

.footer-right {
  text-align: right !important;
}

.footer-legal {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.footer-legal a {
  color: var(--muted) !important;
}

.footer-legal a:hover {
  color: var(--text) !important;
}

@media (max-width: 760px) {
  .footer-right {
    text-align: left !important;
    margin-top: 18px !important;
  }

  .social-compact {
    justify-content: flex-start !important;
  }
}

/* FINAL author photo */
.author-photo {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 233, .18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  filter: grayscale(100%) contrast(1.05);
  display: block;
}

.author-page-box {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 56px !important;
  align-items: center !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}

.author-photo-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.author-photo-round {
  width: 260px !important;
  height: 260px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  border: 1px solid rgba(244, 239, 233, .18) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55) !important;
  filter: grayscale(100%) contrast(1.05) !important;
  display: block !important;
}

.author-text {
  max-width: 720px !important;
  margin: 0 !important;
}

.author-text p {
  font-size: 18px !important;
  line-height: 1.75 !important;
}

@media (max-width: 900px) {
  .author-page-box {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: left !important;
  }

  .author-photo-round {
    width: 220px !important;
    height: 220px !important;
    margin: 0 auto !important;
  }

  .author-text {
    margin: 0 auto !important;
  }
}


/* PATCH DEFINITIVA FOTO AUTORE - non modifica altro */
.author-box img,
.author-box .author-photo,
.author-page-box img,
.author-page-box .author-photo-large,
.author-page-box .author-photo-round,
img.author-photo,
img.author-photo-large,
img.author-photo-round,
img[src*="autore.jpg"] {
  width: 260px !important;
  height: 260px !important;
  max-width: 260px !important;
  max-height: 260px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  border: 1px solid rgba(244, 239, 233, .18) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55) !important;
  filter: grayscale(100%) contrast(1.05) !important;
  display: block !important;
}

/* Posizione foto + testo nella pagina Autore */
.author-page-box {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 56px !important;
  align-items: center !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}

.author-page-box > img,
.author-photo-wrap {
  justify-self: center !important;
  align-self: center !important;
}

.author-text,
.author-page-box .text-page {
  max-width: 720px !important;
  margin: 0 !important;
}

.author-text p,
.author-page-box .text-page p {
  font-size: 18px !important;
  line-height: 1.75 !important;
}

/* Home: foto autore rotonda e proporzionata */
.author-box {
  align-items: center !important;
}

.author-box img,
.author-box .author-photo {
  flex: 0 0 260px !important;
}

@media (max-width: 900px) {
  .author-page-box {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: left !important;
  }

  .author-page-box img,
  .author-page-box .author-photo-large,
  .author-page-box .author-photo-round,
  .author-box img,
  .author-box .author-photo,
  img[src*="autore.jpg"] {
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    max-height: 220px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .author-text,
  .author-page-box .text-page {
    margin: 0 auto !important;
  }
}
