@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #e5e7eb;
  line-height: 1.7;
}

/* Layout di base */

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
  background: #000000; /* nero puro */
}

.section-alt {
  padding: 4.5rem 0;
  background: #0d0d0d; /* leggermente meno nero */
}

.book-hero {
  background: #000000;
}

.book-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  align-items: center;
}

.book-hero-cover {
  display: flex;
  justify-content: center;
}

.book-cover-lg {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.book-hero-text h1 {
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
}

.book-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-size: 1rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.book-meta {
  font-size: 0.95rem;
  color: #cbd5f5;
  margin-bottom: 1.5rem;
}

.retailer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Hero del libro – mobile */
@media (max-width: 900px) {
  .book-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .book-hero-cover {
    order: -1;              /* copertina sopra il testo */
    margin-bottom: 0.5rem;
  }

  .book-hero-text {
    text-align: left;
  }

  .book-cover-lg {
    max-width: 220px;       /* copertina più piccola su schermi stretti */
  }
}


/* Header / Navbar */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: #000000cc; /* nero semitrasparente */
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.logo a {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #f9fafb;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

/* Switch lingua */

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.lang-btn:hover {
  background: rgba(15, 23, 42, 1);
}

.lang-btn .flag {
  font-size: 1rem;
}

.lang-btn .lang-code {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Su schermi molto piccoli, nascondo il testo e lascio solo la bandiera */
@media (max-width: 480px) {
  .lang-btn .lang-code {
    display: none;
  }

  .lang-btn {
    padding: 0.3rem 0.5rem;
  }
}

/* Pulsanti */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: #3B82F6;
  color: #020617;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.25);
  background: #16a34a;
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Hero */

.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  background:
    /* velo scuro per rendere leggibile il testo */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("images/Abell_S1063.jpg") center/cover no-repeat;
}



.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #f9fafb;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 34rem;
  color: #cbd5f5;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

/* Social icons */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.social-links img {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #020617;
}

/* Foto */

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  padding: 4px;
  background: #5E4DE2; /* bordo uniforme (blu glaciale) */
  display: flex;
  align-items: center;
  justify-content: center;
}


.photo-frame img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #020617;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

/* book cover styling */
.hero-book {
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 260px;
  border: 3px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  transition: transform 0.2s ease;
}

.book-cover:hover {
  transform: scale(1.02);
}

/* mobile responsiveness */
@media (max-width: 900px) {

  /* Layout verticale */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Foto profilo */
  .hero-photo {
    order: 1;
    display: flex;
    justify-content: center;
  }

  /* Testo */
  .hero-text {
    order: 2;
  }

  /* Copertina libro */
  .hero-book {
    order: 3;
    display: flex;
    justify-content: center;
  }

  /* Cover più piccola su mobile */
  .book-cover,
  .book-cover-lg {
    width: 60%;
    max-width: 220px;
    height: auto;
  }

  /* Foto profilo più piccola */
  .photo-frame {
    width: 160px;
    height: 160px;
  }

  /* Buttons a più righe */
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* Sezioni generiche */

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #f9fafb;
}

h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.section p {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  color: #e5e7eb;
  max-width: 48rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

/* Liste */

.pub-list,
.simple-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.pub-list li,
.simple-list li {
  margin-bottom: 0.9rem;
}

.pub-list span {
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* Contact */

.contact-email a {
  font-size: 1rem;
  font-weight: 500;
  color: #9868D1;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.2rem 0;
  background: #0d0d0d;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Sezioni libro con immagine affiancata */
.section-with-image {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.section-image {
  text-align: center;
}

.section-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* mobile */
@media (max-width: 900px) {
  .section-with-image {
    grid-template-columns: 1fr;
  }

  .section-image img {
    max-width: 320px;
  }
}


/* Responsivo */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-photo {
    order: -1;
    margin-bottom: 1rem;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {

  .nav-toggle {
    display: inline-flex;       /* visibile solo su mobile */
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #000;
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  /* Lingua e CV – niente affollamento */
  .btn-outline {
    display: none;
  }
}

@media (max-width: 600px) {

  h1, h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .section,
  .section-alt {
    padding: 3rem 0;
  }

  .container {
    width: 92vw;
  }

  .simple-list li {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .retailer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .retailer-links .btn,
  .retailer-links .btn-ghost {
    width: 100%;
      justify-content: center;
  }
}

  .site-header.nav-open .main-nav {
    display: flex;
  }

/*  .nav-toggle {
    display: inline-flex;
  }
*/
  .header-inner {
    padding: 0.6rem 0;
  }

  .btn-outline {
    display: none; /* per avere header più pulito su mobile */
  }


@media (max-width: 480px) {
  .hero {
    padding-top: 4rem;
  }

  .photo-frame {
    width: 180px;
    height: 180px;
  }
}

/* Mini book cover for outreach section */
.outreach-book {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.outreach-book img {
  width: 140px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
  transition: transform 0.2s ease;
}

.outreach-book img:hover {
  transform: scale(1.03);
}

.outreach-book-text {
  flex: 1;
}

/* Mobile layout */
@media (max-width: 700px) {
  .outreach-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .outreach-book img {
    width: 180px;
  }

  .outreach-book-text {
    text-align: left;
    width: 100%;
  }
}

/* Global links */
a {
  color: #9868D1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:visited {
  color: #9868D1;
}

a:active {
  color: #9868D1;
}

a:hover {
  color: #7dd3fc;
}

/* Restore navbar link color */
.main-nav a {
  color: #e5e7eb !important;
  opacity: 0.8;
}

.main-nav a:hover {
  opacity: 1;
  color: #ffffff !important;
}

.main-nav a:visited {
  color: #e5e7eb !important;
}

/* Restore white text color for navbar brand and language switch */
.site-header .logo a,
.site-header .lang-switch a {
  color: #e5e7eb !important;
}

/* Optional: hover effect (slightly brighter) */
.site-header .logo a:hover,
.site-header .lang-switch a:hover {
  color: #ffffff !important;
}

/* =========================
   RETAILER BUTTONS (GALASSIE)
   ========================= */

.retailer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.retailer-links a {
  display: inline-block;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #9868D1;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.retailer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
}

.retailer-links a:visited {
  color: #9868D1;
}

/* mobile: bottoni uno sotto l'altro */
@media (max-width: 600px) {
  .retailer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .retailer-links a {
    width: 100%;
    text-align: center;
  }
}

/* Publication list */
.pub-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pub-list li {
  margin-top: 2rem;
}

/* Image under each publication */
.pub-figure {
  display: block;
  margin-top: 1rem;
  text-decoration: none;
}

.pub-figure img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  transition: transform 0.25s ease;
}

.pub-figure img:hover {
  transform: scale(1.015);
}

/* Optional caption */
.pub-caption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.85;
}

/* Mobile: keep it neat */
@media (max-width: 700px) {
  .pub-figure img {
    max-width: 100%;
  }
}
