@charset "utf-8";
/* CSS Document */
/* ===== IMPOSTAZIONI GLOBALI E RESET ===== */
:root {
    --colore-oro: #F0E68C;
    --colore-sfondo-scuro: #1a1a1a;
    --colore-testo-chiaro: #f4f4f4;
    --font-titoli: 'Playfair Display', serif;
    --font-testo: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-testo);
    background-color: var(--colore-sfondo-scuro);
    color: var(--colore-testo-chiaro);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-titoli);
    font-weight: 700;
}

h2, h3 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

/* ===== SEZIONE HERO ===== */
#hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--colore-oro);
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), url('assets/copertina-libro_optimized.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

#hero h1 {
    font-size: 5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

#hero h2 {
    font-size: 2rem;
    font-family: var(--font-testo);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

#hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}
#hero h1:not(.hero-subtitle) {
    font-size: 5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Colonna: immagine sopra, testo sotto */
#hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Variante H1 piccola, in corsivo */
#hero h1.hero-subtitle {
    font-size: 1.3rem;
    font-weight: normal;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--colore-oro);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Più compatto su smartphone */
@media (max-width: 768px) {
    #hero h1.hero-subtitle {
        font-size: 0.95rem !important; /* forza dimensione ridotta */
        line-height: 1.3;
    }
}

/* ===== SEZIONE SINOSSI ===== */
#sinossi { background-color: #111; }

/* contenitore ristretto e con padding responsivo */
#sinossi .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* player audio standard, riga separata, senza rompere il layout */
.sinossi-audio-plain {
  display: block;
  width: 100%;
  max-width: 420px;     /* larghezza massima del player */
  margin: 8px auto 12px; /* auto ai lati = centrato */
}

/* testo sinossi */
#sinossi .synopsis p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* su mobile: testo un filo più stretto */
@media (max-width: 640px) {
  #sinossi .synopsis p { max-width: 92%; }
}

/* effetto “continua a leggere” */
.synopsis {
  max-height: 10.5rem; /* ~6-7 righe */
  overflow: hidden;
  position: relative;
}

.synopsis::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(17,17,17,1));
  pointer-events: none;
}

.synopsis.is-open { max-height: none; }
.synopsis.is-open::after { display: none; }

/* pulsante toggle */
.synopsis-toggle {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.synopsis-toggle:hover { opacity: .9; transform: translateY(-1px); }


/* ===== SEZIONE CTA ===== */

#cta {
    background-color: var(--colore-sfondo-scuro);
	
}

.store-text {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.store-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Va a capo su schermi piccoli */
    gap: 2rem;
}

.store-links a {
    display: inline-block; /* Per applicare trasformazioni */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-links img {
    height: 45px;
    opacity: 0.8;
}

.store-links a:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* ===== SEZIONE TRAILER ===== */
#trailer {
     background-color: #111;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Rapporto 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border: 2px solid #333;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== SEZIONE AUTORE ===== */
.author-container {
    display: flex;
    align-items: center;
    gap: 1,5rem;
    text-align: left;
}

.author-photo {
    flex-basis: 35%;
}

.author-photo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10%;
    
    
}

.author-bio {
    flex-basis: 65%;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--colore-testo-chiaro);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--colore-oro);
}

/* ===== FOOTER ===== */
footer {
    background-color: #000;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
}
/* Contenitore della lista piattaforme */
.store-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;      /* allinea tutto a sinistra */
    gap: 14px;                    /* spazio tra le righe */
    width: 100%;
    max-width: 520px;             /* opzionale: limita la larghezza per ordine visivo */
	padding-left: 30px; /* aggiunto per distanziare dal bordo sinistro */
}

/* Ogni riga (logo + testo) è un link */
.store-item {
    display: flex;
    align-items: center;
    gap: 12px;                    /* spazio tra icona e testo */
    text-decoration: none;        /* niente sottolineatura */
    color: #fff;                  /* colore del link */
}

/* Stato visited/hover/focus coerenti */
.store-item:visited { color: #fff; }
.store-item:hover,
.store-item:focus { 
    opacity: 0.9;
    transform: translateX(2px);   /* micro feedback, puoi rimuoverlo se non ti piace */
}

/* Icone: quadrato uniforme con contenimento */
.platform-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;          /* mantiene proporzioni senza deformare */
    display: block;
    flex-shrink: 0;               /* non si restringe */
}

/* Testo accanto all’icona */
.store-item span {
    font-size: 16px;
    line-height: 1.35;
    color: inherit;               /* eredita il bianco dal link */
}

/* Sinossi con "continua a leggere" */
.synopsis {
  max-height: 10.5rem;          /* ~6-7 righe: regola a gusto */
  overflow: hidden;
  position: relative;
}

.synopsis::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4rem;
  /* sfumatura per siti scuri; se hai sfondo chiaro, metti rgba(255,255,255,0.9) */
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.9));
  pointer-events: none;
}

.synopsis.is-open {
  max-height: none;
}

.synopsis.is-open::after {
  display: none;
}

.synopsis-toggle {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.synopsis-toggle:hover {
  opacity: .9;
  transform: translateY(-1px);
}


/* ===== RESPONSIVE DESIGN (MOBILE) ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
    h2, h3 { font-size: 1.5rem; }

    .container {
        padding: 3rem 1rem;
    }
    
    .author-container {
        flex-direction: column;
        text-align: center;
    }
    
    .author-photo img {
        margin-bottom: 2rem;
        max-width: 200px;
    }

    .store-links img {
        height: 40px;
    }
}