/* ============================================================
   RESET E BASE
============================================================ */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

 body.kind-home {
  background:
    linear-gradient(
      to right,
      rgba(244,241,234,0.9) 0%,
      rgba(244,241,234,0.95) 30%,
      rgba(244,241,234,0.98) 50%,
      rgba(244,241,234,0.95) 70%,
      rgba(244,241,234,0.9) 100%
    ),
    #f4f1ea;
} 

body.page-chi-sono {
  background-color: #E6C1C3;
  background-image:
    radial-gradient(
      rgba(198, 47, 33, 0.05) 1px,
      transparent 1px
    );
  background-size: 26px 26px;
}

body::before {
  content: "";
  position: fixed;
  top: 160px;
  bottom: 0;
  left: 0;
  width: 24vw;
  height: 100%;
  background: url('/img/bg-left.png') no-repeat 50% top;
  background-size: cover;
  opacity: 0.55;
  filter: contrast(1.1) saturate(1.05);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 160px;
  bottom: 0;
  right: 0;
  width: 24vw;
  height: 100%;
  background: url('/img/bg-left.png') no-repeat 50% top;
  background-size: cover;
  transform: scaleX(-1);
  opacity: 0.55;
  filter: contrast(1.1) saturate(1.05);
  pointer-events: none;
  z-index: -2;
}

body::before,
body::after {
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 15%,
    rgba(0,0,0,1) 85%,
    rgba(0,0,0,0) 100%
  );
}

body:not(.kind-home)::before,
body:not(.kind-home)::after {
  display: none;
}

main {
  position: relative;
  z-index: 2;
}

:root {
  --accent-main: #b76e79;     /* rosa antico */
  --accent-strong: #1e2a38;   /* blu notte */
  --accent-soft: #f3e6e8;     /* rosa chiarissimo */
  --text-main: #2a2a2a;
   --bg-dark: #0a0a0a;
  --bg-mid: #1a1a1a;
  --bg-light: #f4f1ea;
   --bg-rosa: #E6C1C3;

  --accent-gold: #c9a35b;
  --accent-red: #b23a2f;

  --text-light: #f5f5f5;
  --text-dark: #1a1a1a;
}

section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  /* Dà respiro e importanza */
  color: var(--accent);
}

h2 {
  font-size: 2.5rem;
  border-bottom: 1px solid rgba(201, 163, 91, 0.3);
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 50px;
}

a {
  font-family: 'Inter', cursive;
  color: var(--accent-red);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;

  padding: 0.9rem 1.6rem;

  background: var(--accent-gold);
  color: #111;

  border-radius: 6px;
  text-decoration: none;

  transition: all 0.25s ease;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn:hover {
  background: #d8b46a;

  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.about-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

 /* 👉 back to top */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: #c9a35b;
  color: #000;

  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition: all 0.3s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: #b8924a;
}

.content-wrapper {
  background: rgba(255, 255, 255, 0.92);  /* 👈 trasparenza controllata */

   backdrop-filter: blur(15px);             /* 👈 effetto vetro figo */
  -webkit-backdrop-filter: blur(6px);

  border-radius: 16px;

  padding: 50px;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 40px 20px;
  }
}

/* ============================================================
   1a. Header
============================================================ */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(244, 241, 234, 0.75);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* LOGO CENTRO */

.logo {
  grid-column: 2;
  text-align: center;
  position: relative;
  margin-top: 10px;
  z-index: 2;
}

.logo img {
  height: 130px;   /* un filo più grande → ora si vede */
  opacity: 0.9;
  margin-bottom: 10px;
}

/* MENU A DESTRA */

nav {
  grid-column: 1 / 4;
  justify-self: center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 centra davvero */
  gap: 35px;
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a,
.dropdown-trigger {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; /* 🔥 allineato */
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;

  color: #6f6a64;
  text-decoration: none;

  cursor: pointer;
  transition: all 0.25s ease;
}

.main-nav a:hover,
.dropdown-trigger:hover {
  color: #000;
}

.main-nav a::after,

.dropdown-trigger::after {

  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c62f21;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,

.dropdown-trigger:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* 🔥 ponte invisibile */
}

.dropdown-menu {
  position: absolute;
  top: 140%;
  left: 0;

  background: #fff;
  border-radius: 8px;

  padding: 10px 0;
  min-width: 180px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.35s ease;
}

.site-header nav a:hover {
  color: #c62f21;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;

  font-size: 0.8rem;
  color: #333;

  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,0.04);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* ============================================================
   FOOTER PREMIUM
============================================================ */

.site-footer {
  position: relative;
  text-align: center;
  padding: 120px 20px 60px;

  background: linear-gradient(
    to bottom,
    rgba(244,241,234,0.6) -50%,   /* 🔥 parte subito */
    rgba(244,241,234,0.85) 40%,
    rgba(244,241,234,0.95) 70%,
    rgba(244,241,234,1) 100%
  );
}

.site-footer p,
.site-footer a {
  text-align: center;
}

.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 15px 0;
}

.site-footer h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.site-footer p {
  font-size: 0.85rem;
  color: #666;
}

.site-footer small {
  font-size: 0.75rem;
  color: #999;
}

/* CONTENITORE */

.footer-inner {
  max-width: 700px;
  margin: auto;
}

/* BRAND */

.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* FRASE */

.footer-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: #555;

  margin-bottom: 30px;
  line-height: 1.6;
}

/* NAV FOOTER */

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;

  margin-bottom: 30px;
}

.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #666;

  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #c62f21;
}

/* COPYRIGHT */

.footer-copy {
  font-size: 0.75rem;
  color: #999;
}

.site-footer::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #c9a35b;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.footer-logo {
  width: 150px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-role {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
}

.footer-data {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 25px;
}

.footer-dev {
  font-size: 0.8rem;
  margin-top: 10px;
}

.footer-dev span {
  color: #c62f21;
  font-weight: 500;
}

/* ============================================================
   1. Hero Section
============================================================ */

.hero {
  position: relative;
  padding: 110px 20px 80px;
  text-align: center;
  margin-top: 0px;
  padding-top: 120px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      rgba(244,241,234,0.82),
      rgba(244,241,234,0.92)
    ),
    url('/img/bg-left.png') center/contain no-repeat;

  opacity: 0.35;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: auto;
}

.hero-inner {
  max-width: 700px;
  margin: auto;
}

.hero-logo {
  width: 70px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-nickname {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
}

.hero-role {
  color: #c62f21;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #444;
}

.hero blockquote {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 auto 30px;
  color: #2e2e2e;
  max-width: 680px;
}

.hero-roles {
  margin: 18px auto 28px;
  font-style: italic;

  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 700px;

  text-align: center;

  color: #c62f21; /* rosso coerente con i libri */

  letter-spacing: 0.4px;

  opacity: 0.9;
}

.hero .btn {
  display: inline-block;
  margin-top: 18px;

  background: #c9a35b;
  color: #111;

  padding: 12px 22px;
  border-radius: 8px;

  font-weight: 600;
  letter-spacing: 0.6px;

  border: 1px solid rgba(0,0,0,0.05);

  transition: all 0.35s ease;
}

.hero .btn:hover {
  background: #d8b46a;
  transform: translateY(-3px);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.06);
}

/* ============================================================
   2. About Section
============================================================ */

.about {
  padding: 100px 20px;
  position: relative;
}

.about-inner {

  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;

  /* 👉 CONTENITORE */

  background: linear-gradient(
    rgba(255,255,255,0.75),
    rgba(255,255,255,0.65)
  );

  backdrop-filter: blur(6px);
  padding: 60px 70px;
  border-radius: 20px;
  box-shadow:

    0 20px 60px rgba(0,0,0,0.06);

  border: 1px solid rgba(0,0,0,0.04);
  transform: translateY(-40px);

}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.about-subtitle {
  margin-top: 10px;
  font-style: italic;
  color: #777;
}

.about-highlight {
  margin-top: 20px;
  font-weight: 600;
  color: #333;
}

.about-text p {
  margin-bottom: 15px;
  max-width: 450px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-side {
  margin-top:160px;
}

.about-image img {
  width: 100%;
  max-width: 350px;

  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;

  border-radius: 14px;

  border: 3px solid rgba(0, 0, 0, 0.08);
  padding: 4px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.about-long {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.btn-about {
  display: inline-block;
  margin-top: 25px;

  padding: 10px 18px;

  font-size: 0.85rem;
  letter-spacing: 1px;

  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);

  border-radius: 6px;
  text-decoration: none;

  transition: all 0.3s ease;
}

.btn-about:hover {
  background: var(--accent-gold);
  color: #111;
}

.about-card {
  position: relative;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 2px;
  background: #c9a35b;
}

/* ============================================================
   3. Methods Section
============================================================ */

.method-wrapper {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);

  border-radius: 14px;
  padding: 50px 40px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.06);

  max-width: 1100px;
  margin: 0 auto;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 60px;
}

.method-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.03);

  display: flex;
  flex-direction: column;
  min-height: 440px;
  height: 100%;

  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.method-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201,163,91,0.22);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.10),
    0 8px 22px rgba(0,0,0,0.05);
}

.method-img {
  background: #fff;
  padding: 18px 18px 0;
}

.method-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

.method-content {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 0.9rem;
  font-weight: 500;

  color: #c62f21;
  background: none;

  text-decoration: none;
}

/* icona YouTube */
.yt-link {
  display: inline-flex;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  align-items: center;
  gap: 8px;

  font-size: 0.7rem;
  font-weight: 500;

  color: #c62f21;
  text-decoration: none;
   margin-top: auto;

  align-self: center;
}

.yt-link img {
  width: 20px;
  height: auto;
  align-items: center;
}

.yt-link:hover {
  text-decoration: underline;
}

.method-content .btn-youtube {
  margin-top: auto;
  align-self: center;
}

.method-content h3 {
  text-align: center;
  min-height: 48px; /* 🔥 uniforma le altezze */
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-content h3 span {
  color: #c62f21;
}

.method-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: #3f3f3f;
  text-align: center;
  flex-grow: 1;
}

.method-cta {
  text-align: center;
  margin-top: 70px;
}

.method-cta .btn {
  margin-top: 10px;
}

.method-cta .btn:hover {
  transform: translateY(-2px);
}

/* ============================================================
   4. Books Section
============================================================ */

.books {
  background: #f4f1ea;
  color: #111;
  padding: 80px 20px;
}

.books-inner {
  max-width: 1100px;
  margin: auto;
}

.books-intro {
  text-align: left;
  margin-bottom: 40px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.book-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  height: 100%; /* 🔥 chiave */

  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-card img {
  width: 100%;
  height: 520px;           /* 🔥 altezza fissa */
  object-fit: cover;       /* 🔥 ritaglia elegante */
  border-radius: 6px;

  margin-bottom: 15px;
}

.book-card h3 {
  margin-bottom: 10px;

  min-height: 48px; /* 🔥 uniforma */
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;

  flex-grow: 1; /* 🔥 riempie lo spazio */
}

.book-card .btn {
  margin-top: auto; /* 🔥 sempre in basso */
}

/* ============================================================
   5. Quote Section
============================================================ */

.quote {
  background: linear-gradient(
    to bottom,
    #f4f1ea,
    #e9e4d8
  );
  color: #1a1a1a;
}

.quote-inner {
  max-width: 800px;
  margin: auto;
}

.quote blockquote {
  font-size: 1.8rem;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 20px;
}

.quote-author {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============================================================
   CONTACT REFINED
============================================================ */

.contact {
  margin-top: 120px;
}

/* CONTENITORE PRINCIPALE */

.contact-box {
  max-width: 900px;
  margin: auto;

  padding: 60px 50px;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);

  border-radius: 20px;

  box-shadow:
    0 25px 60px rgba(0,0,0,0.06);

  text-align: center;
}

/* TITOLO */

.contact-box h2 {
  margin-bottom: 20px;
}

/* SOTTOTITOLO */

.contact-subtitle {
  font-size: 0.95rem;
  margin-bottom: 25px;

  color: #c62f21;
  font-weight: 500;
}

/* CTA (IMPORTANTISSIMA) */

.contact-cta {
  display: inline-block;

  margin-bottom: 40px;
  padding: 10px 18px;

  border: 1px solid var(--accent-gold);
  border-radius: 6px;

  font-size: 0.85rem;
  letter-spacing: 1px;

  color: #1a1a1a;

  transition: all 0.35s ease;
}

.contact-cta:hover {
  background: var(--accent-gold);
  color: #111;
  transform: translateY(-2px);
}

/* GALLERY */

.contact-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.contact-gallery img {
  width: 220px;
  height: 220px;

  object-fit: cover;

  border-radius: 12px;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.08);

  transition: all 0.45s ease;
}

.contact-gallery img:hover {
  transform: scale(1.05);
}

/* CAPTION */

.contact-caption {
  font-size: 0.8rem;
  color: #777;
}

/* ============================================================
    ABOUT REFINED PAGE
============================================================ */

body.page-chi-sono {
  background-color: #f4f1ea;
  background-image: url('/img/chipois5.webp');
  background-size: 220px;
  background-repeat: repeat;
}

.page-about {
  padding: 180px 20px;
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.page-about::before,
.page-about::after {
  pointer-events: none;
}

.page-about .container {
  position: relative;
  z-index: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px;

  background: rgb(255, 255, 255);
  backdrop-filter: blur(6px);

  border-radius: 18px;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.05);
}

.page-about h1 {
  text-align: center;
  margin-bottom: 10px;
}

.page-about .subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 60px;
}

.about-long {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.about-text p {
  margin-bottom: 20px;
  max-width: 520px;

  line-height: 1.9;
}

.about-side img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.page-about .btn {
  display: inline-block;
  margin-top: 30px;
}

/* ============================================================
   BOOKS PAGE
============================================================ */

body.section-libri {
  background:
    linear-gradient(
      rgba(244,241,234,0.30),
      rgba(244,241,234,0.30)
    ),
    url('/img/pallros.webp') center/cover fixed no-repeat;
}

.books-page {
  padding: 130px 20px 100px;
  background: transparent;
}

.books-page-container {
  max-width: 1100px;
  margin: 0 auto;
}

.books-page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}

.books-page-header h1 {
  margin-bottom: 20px;
}

.books-page-header p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.books-page-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.book-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: center;

  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  padding: 40px;
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.06);

  transition: all 0.4s ease;
}

.book-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.10);
}

.book-cover-link img {
  width: 100%;
  border-radius: 8px;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.15);
}

.book-item h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  align-items: center;
}

.book-item-content .book-subtitle {
  color: #c62f21;
  font-style: italic;
  margin-bottom: 15px;
}

.book-item-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.book-item .btn {
  margin-top: 25px;
  display: inline-block;
}

.book-item.reverse {
  grid-template-columns: 1fr 300px;
}

.book-item.reverse .book-cover-link {
  order: 2;
}

.book-item.reverse .book-item-content {
  order: 1;
}

/* single book */

/* =========================================
   RESET BASE
========================================= */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f7f8fa;
  color: #1a1a1a;
  margin: 0;
}

/* =========================================
   LAYOUT
========================================= */

.page-wrapper {
  margin-top: 200px;
}

.book-page {
  margin-top: 40px;
}

/* =========================================
   CARD CONTAINER
========================================= */

.book-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* =========================================
   HERO
========================================= */

.book-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* =========================================
   COVER
========================================= */

.book-cover img {
  width: 95%;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.book-cover img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* =========================================
   CONTENUTO TESTO
========================================= */

.book-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0;
}

.book-subtitle {
  color: #c62f21;
  font-style: italic;
  font-size: 1rem;
}

.book-description {
  color: #444;
  line-height: 1.6;
}

/* =========================================
   CTA + LINK
========================================= */

.book-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.book-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
}

.link-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #8a8178;
  text-decoration: none;
  transition: 0.2s;
}

.link-main:hover {
  color: #b89565;
  transform: translateY(-1px);
}

.link-ghost {
  font-size: 0.9rem;
  color: #8a8178;
  text-decoration: none;
  position: relative;
}

.link-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #b89565;
  transition: 0.3s;
}

.link-ghost:hover::after {
  width: 100%;
}

/* =========================================
   BOTTONI
========================================= */

.btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;

  padding: 0.9rem 1.6rem;

  background: var(--accent-gold);
  color: #111;

  border-radius: 6px;
  text-decoration: none;

  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #a07f52;
}

.btn-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;

  color: #c62f21;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  transition: all 0.25s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  color: #a91e15;
}

.btn-soft {
  background: transparent;
  color: #b89565;
  border: 1px solid #b89565;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
}

.btn-soft:hover {
  background: #b89565;
  color: white;
}

/* =========================================
   ESTRATTO
========================================= */

.book-preview-card {
  margin-top: 70px;
  padding-top: 50px;
  max-width: 720px;

  margin: 70px auto 0;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  position: relative;

  background: #f9f7f4;
  border: 1px solid rgba(184,149,101,0.25);

  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.book-preview-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: #b89565;
  border-radius: 2px;
}

.book-preview-card h2 {
  margin-top: 30px;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.book-preview-card h3 {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.book-preview-card p {
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #333;
}

.editorial-block img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.cta-note {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.book-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.75;
  hyphens: auto;
}

.book-preview-card blockquote {
  border-left: 3px solid #b89565;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.book-preview-card p:not(.cta-note),
.book-preview-card blockquote {
  text-align: justify;
}

.book-preview-card hr {
  margin: 40px 0;
  border: none;
  height: 1px;
  background: #eee;
}

.editorial-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
  margin: 30px 0;
  margin-top: 10px;
}

.editorial-block p {
  text-align: justify;
  line-height: 1.75;
  hyphens: auto;
}

.editorial-block > * {
  margin-top: 0 !important;
}

.editorial-block > :first-child {
  margin-top: 0;
}

.editorial-block img {
  width: 100%;
  border-radius: 10px;
  margin-top: 0;
   display: block;
}

.editorial-block div {
  text-align: justify;
  line-height: 1.7;
  margin-top: 0;
}

.book-preview-card::after {
  content: "";
  display: block;
  clear: both;
}

.book-preview-card p.text-red {
  color: #c62f21;
}

@media (max-width: 768px) {
  .editorial-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .editorial-block div {
    text-align: left;
  }

  .editorial-block img {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =========================================
   FORM
========================================= */

.book-form {
  margin-top: 40px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.book-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.book-form textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);

  font-family: inherit;
  font-size: 0.9rem;

  background: rgba(255,255,255,0.8);
}

.book-form input:focus,
.book-form textarea:focus {
  outline: none;
  border-color: #c9a35b;
  box-shadow: 0 0 0 2px rgba(201,163,91,0.15);
}

.book-form input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.book-form button {
  align-self: flex-start;
}

/* =========================================
   PAGINA VETRINA BOOKS
========================================= */

.book-page.vetrina .book-card {
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.book-page.vetrina .book-form p {
  text-align: center;
}

.book-preview-light {
  max-width: 680px;
  margin: 70px auto 0;

  padding: 35px;
  border-radius: 12px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(184,149,101,0.25);

  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.book-form.light {
  max-width: 600px;
  margin: 50px auto;

  padding: 30px;
  border-radius: 12px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(0,0,0,0.05);

  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.book-form input,
.book-form textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;

  background: #fff;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .book-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover {
    max-width: 250px;
    margin: 0 auto;
    order: -1;
  }

  .book-content h1 {
    font-size: 1.8rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
    METODO REFINED PAGE
============================================================ */

.metodo-page {
  padding: 140px 20px 100px;
}

body.section-metodo {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.2),
      rgba(255,255,255,0.35)
    ),
    url('/img/alberosa.webp') center/180% no-repeat,
    #c8a39b;
}

/* CONTENUTO SOPRA */
.metodo-page * {
  position: relative;
  z-index: 2;
}

.metodo-container {
  max-width: 1000px;
  margin: auto;
}

/* HEADER */
.metodo-header {
  text-align: center;
  margin-bottom: 60px;
}

.metodo-header h1 {
  font-size: 2.6rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.metodo-header p {
  font-size: 1.05rem;
  color: #666;
}

/* INTRO */
.metodo-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 100px;

  line-height: 2.1;
  font-size: 1.05rem;

  color: #333;
}

/* TOOLS */
.metodo-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 100px;
}

.tool {
  text-align: center;
  padding: 30px;

  border-radius: 18px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);

  transition: all .35s ease;
  position: relative;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.05);
}

.tool:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.tool img {
  transition: transform .4s ease;
  width: 100%;
  max-width: 260px;   /* 🔥 LIMITE */
  height: auto;
  display: block;
  margin: 0 auto 20px;  /* 🔥 CENTRA */
  border-radius: 12px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12);
}

.tool:hover img {
  transform: scale(1.05);
}

/* micro highlight elegante */
.tool::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(201,163,91,0.15) inset;
  pointer-events: none;
}

.tool h3 {
  letter-spacing: 2px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.tool a {
  display: inline-block;
  margin-top: 10px;

  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #c62f21;

  transition: all 0.3s ease;
}

.tool a:hover {
  transform: translateY(-2px);
}

/* MANIFESTO */
.metodo-manifesto {
  text-align: center;
  max-width: 760px;
  margin: auto;

  line-height: 2.1;
  font-size: 1.05rem;
}

.metodo-intro,
.metodo-manifesto {
  text-align: justify;
  hyphens: auto;
  margin-top: 50px;
}

.metodo-manifesto::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #c9a35b;
  margin: 0 auto 30px;
  opacity: 0.5;
}

.metodo-intro strong{
 color: #c62f21;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.metodo-cta {
  text-align: center;
  margin-top: 120px;
}

.metodo-cta p {
  margin-bottom: 20px;
  color: #555;
}

.metodo-manifesto strong {
  color: #c62f21;
  font-weight: 600;
}

.metodo-extra {
  max-width: 720px;
  margin: 80px auto;
  text-align: center;
  line-height: 2;
}

.metodo-quote {
  font-style: italic;
  margin-bottom: 30px;
  color: #444;
}

.metodo-subtitle {
  color: #c62f21;
  margin-bottom: 20px;
}

.metodo-list {
  text-align: left;
  margin: 0 auto 40px;
  max-width: 690px;
  text-align: justify;
}

.metodo-list li {
  margin-bottom: 10px;
}

.metodo-highlight {
  margin-top: 25px;
  padding-top: 15px;

  border-top: 1px solid rgba(0,0,0,0.08);

  font-style: italic;
}

.metodo-text {
  max-width: 690px;
  margin: 0 auto 40px;
  text-align: justify;
  text-justify: inter-word;
}

.metodo-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.btn-youtube {
  display: inline-block;
  margin-top: 12px;

  padding: 10px 20px;
  border-radius: 30px;

  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;

  background: linear-gradient(
    135deg,
    #c62f21,
    #e04b3f
  );

  color: #ffffff; /* 🔥 TESTO VISIBILE */
  text-decoration: none !important;

  box-shadow: 0 8px 20px rgba(198,47,33,0.25);

  transition: all 0.25s ease;
}

.btn-youtube:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(198,47,33,0.35);

  filter: brightness(1.05); /* 🔥 micro effetto, non invasivo */
}

.btn-youtube,
.btn-youtube:visited,
.btn-youtube:hover {
  color: #fff !important;
}

@media (max-width: 768px) {
  .metodo-intro,
  .metodo-manifesto {
    text-align: left;
  }
}

/* ============================================================
    CONTATTI REFINED PAGE
============================================================ */

.contatti-page {
  padding: 140px 20px 100px;
}

.contatti-layout {
  align-items: center;
}

.contatti-layout.single {
  display: flex;
  justify-content: center;
}

.contatti-center {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.contatti-info {
  margin-bottom: 40px;
}

.contatti-form {
  margin-bottom: 50px;
  position: relative;
}

.contatti-form-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

/* SPIGA */
.form-deco {

  position: absolute;

  left: -140px;

  top: 50%;

  transform: translateY(-50%);

  width: 170px;

  opacity: 0.6;

  pointer-events: none;

  display: block; /* 👈 FORZA comportamento */

}

@media (max-width: 768px) {
  .form-deco {
    display: none;
  }
}

/* FORM */
.contatti-form {
  position: relative;
  z-index: 1;
}

.contact-bottom {
  margin-top: 40px;
}


body.section-contatti {
  background:

    /* overlay leggero */
    linear-gradient(
      to right,
      rgba(244,241,234,0.7),
      rgba(244,241,234,0.85)
    ),

    /* SINISTRA */
    url('/img/contact.webp') left center / 35% no-repeat,

    /* DESTRA (specchiata) */
    url('/img/contact.webp') right center / 27% repeat;

  
  background-attachment: fixed, fixed, fixed;
}

/* HEADER */
.contatti-header {
  text-align: center;
  max-width: 700px;
  margin-bottom: 80px;
  margin: 0 auto 60px;
}

.contatti-header h1 {
  font-size: 2.6rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.contatti-intro {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contatti-soft {
  font-size: 0.95rem;
  color: #777;
}

/* LAYOUT */
.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  align-items: center;
}

/* COLONNA SINISTRA */

/* COLONNA DESTRA */
.contatti-right > * {
  margin-bottom: 90px;
}

.contatti-right {
  padding: 60px 40px;
  max-width: 480px;
  margin-left: 40px;
  max-width: 480px;
}

/* INFO */
.contatti-info {
  margin-bottom: 40px;
  line-height: 1.8;
}

/* FORM */
.contatti-form {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid input {
  min-width: 0; /* 🔥 fondamentale in grid */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);

  font-family: inherit;
  font-size: 0.9rem;

  background: rgba(255,255,255,0.8);
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: #c9a35b;
  box-shadow: 0 0 0 2px rgba(201,163,91,0.15);
}

.form-grid textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

.contatti-hero-img {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
}

.contatti-hero-img img {
  width: 100%;
  max-width: 700px;
  border-radius: 14px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* BOTTONE FORM */
.contatti-form .btn {
  width: 100%;
  margin-top: 15px;

  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* SOCIAL */
.social-block {
  margin-top: 40px;
}

.social-title {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 15px;
  text-align: center;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 33px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 15px;

  text-decoration: none;
  color: #444;
  opacity: 0.85;
  align-items: center;

  font-size: 0.95rem;

  padding: 6px 10px;
  border-radius: 8px;

  transition: all 0.25s ease;
}

.social-item span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.social-item img {
  width: 20px;
  height: 20px;
}

.social-item:hover {
  background: rgba(198,47,33,0.06);
  transform: translateX(3px);
  opacity: 1;
  color: #c62f21;
}

.contact-divider {
  width: 60px;
  height: 1px;
  background: #c9a35b;
  opacity: 0.55;
  margin: 38px 0;
}

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 45px;
  padding-top: 35px;

  border-top: 1px solid rgba(201,163,91,0.35);

  align-items: start;
}

.contact-legal {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
  text-align: center;
}

.contact-legal p {
  margin: 49px 10px -38px;
}

.social-title {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a8178;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .contact-bottom {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contatti-layout {
    grid-template-columns: 1fr;
  }

  .contatti-left {
    display: none;
  }

  .contatti-right {
    max-width: 100%;
    padding: 40px 20px;
  }
}

/* Contatti Home */

.contact-subtitle.big {
  text-align: center;
  font-size: 1.2rem;
  margin: 20px 0 50px;

  color: #c62f21;
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* 🔥 asimmetrico */
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.contact-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 20px;
}

.contact-gallery img {
  width: 100%;
  height: 320px; /* 🔥 più presenti */
  object-fit: cover;

  border-radius: 20px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.contact-gallery img:hover {
  transform: translateY(-6px);
}

.contact-caption {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: #888;
  margin-bottom: 50px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);

  padding: 35px;
  border-radius: 18px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px;

  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);

  background: rgba(255,255,255,0.8);
}

.form-intro {
  text-align: center;
  margin-bottom: 20px;
  color: #444;
}

@media (max-width: 768px) {
  .contact-gallery {
    grid-template-columns: 1fr;
  }

  .contact-gallery img {
    height: 260px;
  }
}