/* ==========================================================================
   🍂 OTTOBRE 2026 - APRI QUANDO...
   Stile Notturno Autunnale: Fondo Marrone Caldo, Foglie Verdi e Marroni,
   Testi Color Panna, Icone SVG Delicate
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & VARIABILI NOTTURNE AUTUNNALI
   -------------------------------------------------------------------------- */
:root {
  /* Fondo Notturno Marrone Caldo & Accogliente */
  --bg-page: #170d08;
  --bg-warm-tint: 
    radial-gradient(ellipse 70% 55% at 15% 12%, rgba(188, 92, 42, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 85% 78%, rgba(85, 118, 62, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 75% 60% at 50% 45%, rgba(135, 62, 28, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #140b07 0%, #1c110b 45%, #120a06 100%);

  /* Testi in Color Panna */
  --text-panna: #fbf5eb;            /* Panna pura per titoli e corpo lettura */
  --text-panna-soft: #edd9c6;       /* Panna vaniglia per sottotitoli e testi secondari */
  --text-panna-muted: #bfaaa0;      /* Panna latte per etichette, numeri e dettagli */
  --text-panna-dim: #8f796c;        /* Panna sfumata per bordi sottili e divisori */

  /* Accenti Notturni */
  --accent-gold: #f5c46e;
  --accent-amber: #e89547;
  --accent-terracotta: #dc7254;
  --accent-copper: #c75a3e;

  /* Ombre Notturne Calde */
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(220, 130, 70, 0.18);
  --modal-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(210, 115, 60, 0.14);

  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand: 'Caveat', cursive;

  --transition-quick: all 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  background-image: var(--bg-warm-tint);
  background-attachment: fixed;
  color: var(--text-panna);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   2. PULSANTE HOME (SEMPLICE & PULITO NOTTURNO)
   -------------------------------------------------------------------------- */
.back-home-link {
  position: absolute;
  top: 22px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(36, 22, 16, 0.85);
  color: var(--text-panna);
  border: 1px solid rgba(220, 160, 120, 0.26);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-quick);
  z-index: 10;
}

.back-home-link .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.back-home-link:hover {
  background: rgba(55, 34, 25, 0.95);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.back-home-link:hover .back-arrow {
  transform: translateX(-2px);
}

/* --------------------------------------------------------------------------
   3. STRUTTURA PAGINA & HEADER COZY NOTTURNO
   -------------------------------------------------------------------------- */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 75px 22px 65px;
}

.page-header {
  text-align: center;
  margin-bottom: 42px;
}

.page-title {
  font-family: var(--font-hand);
  font-size: clamp(42px, 6.5vw, 66px);
  font-weight: 700;
  color: var(--text-panna);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: clamp(15.5px, 2.2vw, 17.5px);
  color: var(--text-panna-soft);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. GRIGLIA CARD FOGLIE D'AUTUNNO (VERDI E MARRONI)
   -------------------------------------------------------------------------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Card Foglia d'Autunno */
.note-card {
  background: var(--leaf-bg, #261610);
  border: 1px solid var(--leaf-border, rgba(220, 160, 120, 0.28));
  border-radius: 20px 14px 20px 14px;
  padding: 24px 22px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: var(--transition-quick);
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

/* Sfumatura morbida simile a venatura di foglia */
.note-card::before {
  content: '';
  position: absolute;
  top: -45px;
  right: -45px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--leaf-accent) 0%, transparent 70%);
  opacity: 0.10;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.note-card:hover {
  transform: translateY(-5px);
  border-color: var(--leaf-accent);
  box-shadow: var(--card-shadow-hover);
}

.note-card:hover::before {
  opacity: 0.24;
  transform: scale(1.15);
}

/* ==========================================================================
   PALETTE AUTUNNALE: COLORI FORNITI DALL'UTENTE
   Giallo Sole: #FFD200 | Oro d'Acero: #E0A043 | Arancione Zucca: #F47B20
   Arancio Ruggine: #C65A2E | Rosso Fuoco: #D54700 | Rosso Mattone: #7A2E1B
   Marrone Caldo: #9C5708 | Marrone Corteccia: #542501 | Seppia Autunnale: #321F10
   ========================================================================== */

/* 1. Giallo Sole: #FFD200 (Il tono vivace delle prime foglie che cambiano colore) */
.theme-giallo-sole,
.theme-leaf-giallo-sole {
  --leaf-bg: linear-gradient(155deg, #3d3200 0%, #1c1600 100%);
  --leaf-border: rgba(255, 210, 0, 0.52);
  --leaf-accent: #FFD200;
  --leaf-glow: rgba(255, 210, 0, 0.30);
  --leaf-seal-bg: rgba(255, 210, 0, 0.16);
  --leaf-seal-color: #ffe866;
}

/* 2. Oro d'Acero: #E0A043 (Una tonalità calda e dorata) */
.theme-oro-acero,
.theme-leaf-oro-acero {
  --leaf-bg: linear-gradient(155deg, #38250b 0%, #1a1003 100%);
  --leaf-border: rgba(224, 160, 67, 0.52);
  --leaf-accent: #E0A043;
  --leaf-glow: rgba(224, 160, 67, 0.30);
  --leaf-seal-bg: rgba(224, 160, 67, 0.16);
  --leaf-seal-color: #f6cf98;
}

/* 3. Arancione Zucca: #F47B20 (Il classico colore dell'autunno inoltrato) */
.theme-arancione-zucca,
.theme-leaf-arancione-zucca {
  --leaf-bg: linear-gradient(155deg, #421e05 0%, #200d01 100%);
  --leaf-border: rgba(244, 123, 32, 0.52);
  --leaf-accent: #F47B20;
  --leaf-glow: rgba(244, 123, 32, 0.30);
  --leaf-seal-bg: rgba(244, 123, 32, 0.16);
  --leaf-seal-color: #fdbb85;
}

/* 4. Arancio Ruggine: #C65A2E (Un aranciato più scuro e terroso) */
.theme-arancio-ruggine,
.theme-leaf-arancio-ruggine {
  --leaf-bg: linear-gradient(155deg, #3a1809 0%, #1d0a03 100%);
  --leaf-border: rgba(198, 90, 46, 0.52);
  --leaf-accent: #C65A2E;
  --leaf-glow: rgba(198, 90, 46, 0.30);
  --leaf-seal-bg: rgba(198, 90, 46, 0.16);
  --leaf-seal-color: #f1a586;
}

/* 5. Rosso Fuoco: #D54700 (Il rosso acceso tipico degli aceri) */
.theme-rosso-fuoco,
.theme-leaf-rosso-fuoco {
  --leaf-bg: linear-gradient(155deg, #441400 0%, #220700 100%);
  --leaf-border: rgba(213, 71, 0, 0.55);
  --leaf-accent: #D54700;
  --leaf-glow: rgba(213, 71, 0, 0.32);
  --leaf-seal-bg: rgba(213, 71, 0, 0.18);
  --leaf-seal-color: #ff9058;
}

/* 6. Rosso Mattone: #7A2E1B (Una sfumatura profonda e intensa) */
.theme-rosso-mattone,
.theme-leaf-rosso-mattone {
  --leaf-bg: linear-gradient(155deg, #33120a 0%, #190704 100%);
  --leaf-border: rgba(191, 74, 48, 0.52);
  --leaf-accent: #bf4a30;
  --leaf-glow: rgba(122, 46, 27, 0.35);
  --leaf-seal-bg: rgba(122, 46, 27, 0.22);
  --leaf-seal-color: #f0a394;
}

/* 7. Marrone Caldo: #9C5708 (Il colore delle foglie che iniziano a seccarsi) */
.theme-marrone-caldo,
.theme-leaf-marrone-caldo {
  --leaf-bg: linear-gradient(155deg, #361c02 0%, #1a0c00 100%);
  --leaf-border: rgba(196, 118, 25, 0.52);
  --leaf-accent: #c47619;
  --leaf-glow: rgba(156, 87, 8, 0.32);
  --leaf-seal-bg: rgba(156, 87, 8, 0.18);
  --leaf-seal-color: #f7bf7c;
}

/* 8. Marrone Corteccia: #542501 (Una tonalità scura e legnosa) */
.theme-marrone-corteccia,
.theme-leaf-marrone-corteccia {
  --leaf-bg: linear-gradient(155deg, #281100 0%, #120600 100%);
  --leaf-border: rgba(168, 88, 30, 0.52);
  --leaf-accent: #a8581e;
  --leaf-glow: rgba(84, 37, 1, 0.35);
  --leaf-seal-bg: rgba(84, 37, 1, 0.22);
  --leaf-seal-color: #f0aa7b;
}

/* 9. Seppia Autunnale: #321F10 (Il marrone scuro delle foglie a terra) */
.theme-seppia-autunnale,
.theme-leaf-seppia-autunnale {
  --leaf-bg: linear-gradient(155deg, #24160a 0%, #100a04 100%);
  --leaf-border: rgba(176, 128, 88, 0.52);
  --leaf-accent: #b08058;
  --leaf-glow: rgba(50, 31, 16, 0.38);
  --leaf-seal-bg: rgba(50, 31, 16, 0.25);
  --leaf-seal-color: #dec2aa;
}

/* 10. Verde Oliva Dorato: #dbee52 (Il verde caldo tendente al giallino salvato dai vecchi colori) */
.theme-verde-oliva,
.theme-leaf-olive {
  --leaf-bg: linear-gradient(155deg, #3d4212 0%, #222608 100%);
  --leaf-border: rgba(205, 220, 68, 0.52);
  --leaf-accent: #dbee52;
  --leaf-glow: rgba(205, 220, 68, 0.30);
  --leaf-seal-bg: rgba(205, 220, 68, 0.16);
  --leaf-seal-color: #eef7a1;
}

/* Temi verdi e boschivi complementari */
.theme-leaf-emerald {
  --leaf-bg: linear-gradient(155deg, #0d3b30 0%, #061f19 100%);
  --leaf-border: rgba(56, 218, 170, 0.45);
  --leaf-accent: #3fe2b6;
  --leaf-glow: rgba(56, 218, 170, 0.28);
  --leaf-seal-bg: rgba(56, 218, 170, 0.16);
  --leaf-seal-color: #a3f7dc;
}

.theme-leaf-cinnamon {
  --leaf-bg: linear-gradient(155deg, #441e16 0%, #250f0a 100%);
  --leaf-border: rgba(230, 118, 85, 0.45);
  --leaf-accent: #f69874;
  --leaf-glow: rgba(230, 118, 85, 0.28);
  --leaf-seal-bg: rgba(230, 118, 85, 0.16);
  --leaf-seal-color: #fbc6b3;
}

.theme-leaf-olive {
  --leaf-bg: linear-gradient(155deg, #3d4212 0%, #222608 100%);
  --leaf-border: rgba(205, 220, 68, 0.45);
  --leaf-accent: #dbee52;
  --leaf-glow: rgba(205, 220, 68, 0.28);
  --leaf-seal-bg: rgba(205, 220, 68, 0.16);
  --leaf-seal-color: #eef7a1;
}

.theme-leaf-pine,
.theme-leaf-forest {
  --leaf-bg: linear-gradient(155deg, #0c2b16 0%, #05170b 100%);
  --leaf-border: rgba(72, 190, 108, 0.45);
  --leaf-accent: #64e08f;
  --leaf-glow: rgba(72, 190, 108, 0.28);
  --leaf-seal-bg: rgba(72, 190, 108, 0.16);
  --leaf-seal-color: #b5f7ca;
}

.theme-leaf-amber,
.theme-leaf-honey {
  --leaf-bg: linear-gradient(155deg, #46280d 0%, #271506 100%);
  --leaf-border: rgba(238, 172, 65, 0.45);
  --leaf-accent: #f8c257;
  --leaf-glow: rgba(238, 172, 65, 0.28);
  --leaf-seal-bg: rgba(238, 172, 65, 0.16);
  --leaf-seal-color: #fde09e;
}

.theme-leaf-moss,
.theme-leaf-laurel {
  --leaf-bg: linear-gradient(155deg, #2b3b18 0%, #16240b 100%);
  --leaf-border: rgba(152, 202, 82, 0.45);
  --leaf-accent: #b2ec65;
  --leaf-glow: rgba(152, 202, 82, 0.28);
  --leaf-seal-bg: rgba(152, 202, 82, 0.16);
  --leaf-seal-color: #dbf8ae;
}

.theme-leaf-sage,
.theme-leaf-chai {
  --leaf-bg: linear-gradient(155deg, #1e3a38 0%, #102221 100%);
  --leaf-border: rgba(135, 208, 198, 0.45);
  --leaf-accent: #8be4d8;
  --leaf-glow: rgba(135, 208, 198, 0.28);
  --leaf-seal-bg: rgba(135, 208, 198, 0.16);
  --leaf-seal-color: #c9f7f1;
}



/* --------------------------------------------------------------------------
   ELEMENTI INTERNI DELLA CARD
   -------------------------------------------------------------------------- */
.note-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Sigillo icona della foglia */
.note-seal {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--leaf-seal-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--leaf-border, rgba(255, 255, 255, 0.15));
  color: var(--leaf-seal-color, var(--text-panna));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}

.note-seal svg {
  display: block;
}

.note-card:hover .note-seal {
  transform: scale(1.1) rotate(4deg);
  background: var(--leaf-border);
  color: #ffffff;
}

.note-number {
  font-size: 11.5px;
  color: var(--text-panna-muted);
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Testo del biglietto */
.note-body {
  margin-bottom: 18px;
}

.note-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--leaf-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.note-title {
  font-family: var(--font-hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-panna);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.note-card:hover .note-title {
  color: #ffffff;
}

/* Footer card */
.note-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(240, 220, 200, 0.16);
}

.note-btn-hint {
  font-size: 13px;
  color: var(--text-panna);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.note-btn-hint .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.note-card:hover .note-btn-hint {
  transform: translateX(3px);
  color: var(--leaf-accent);
}

/* --------------------------------------------------------------------------
   5. MODALE LETTURA NOTTURNA (CARTA CALDA & TESTO PANNA)
   -------------------------------------------------------------------------- */
.letter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 6, 4, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.letter-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.letter-sheet {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  background: linear-gradient(165deg, #24140d 0%, #170d08 100%);
  border: 1px solid rgba(220, 150, 100, 0.32);
  border-radius: 22px;
  padding: 34px 32px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(188, 92, 42, 0.16);
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

/* Sfumatura calda e morbida nella modale */
.letter-sheet::before {
  content: '';
  position: absolute;
  top: -65px;
  right: -65px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(224, 160, 67, 0.22) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.letter-modal-overlay.active .letter-sheet {
  transform: scale(1) translateY(0);
}

/* Pulsante chiudi in alto a destra */
.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 150, 100, 0.25);
  border-radius: 50%;
  color: var(--text-panna);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-quick);
  z-index: 2;
}

.close-modal-btn:hover {
  background: rgba(220, 150, 100, 0.35);
  border-color: #f5c46e;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Area scorrevole del testo */
.letter-content-wrapper {
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 20px;
}

.letter-content-wrapper::-webkit-scrollbar {
  width: 5px;
}
.letter-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(220, 150, 100, 0.28);
  border-radius: 4px;
}

/* Badge della lettera nella modale */
.letter-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f5c46e;
  background: rgba(245, 196, 110, 0.10);
  border: 1px solid rgba(245, 196, 110, 0.25);
  border-radius: 12px;
  padding: 4px 12px;
  width: fit-content;
  margin-bottom: 12px;
}

.letter-badge-top .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #f5c46e;
}

/* Titolo della modale: SEMPRE COLOR PANNA */
.letter-modal-title {
  font-family: var(--font-hand);
  font-size: clamp(28px, 4.2vw, 36px);
  font-weight: 700;
  color: #fbf5eb !important; /* Colore panna puro garantito */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin-bottom: 18px;
}

/* Corpo della lettera nella modale: SEMPRE COLOR PANNA, ALLINEATO IN ALTO A SINISTRA SENZA SPAZI */
.letter-modal-body {
  font-size: 16.5px;
  line-height: 1.8;
  color: #fbf5eb !important; /* Colore panna puro garantito */
  margin-bottom: 24px;
  text-align: left;
}

.letter-modal-body p,
.letter-paragraph {
  margin: 0 0 16px 0;
  padding: 0;
  text-indent: 0 !important; /* Inizia perfettamente da in alto a sinistra senza spazi o rientri */
  line-height: 1.8;
  text-align: left;
}

.letter-modal-body p:last-child,
.letter-paragraph:last-child {
  margin-bottom: 0;
}

/* Firma nella modale: il testo "Tuo per sempre" e il cuore SEMPRE in rosso */
.letter-modal-sign {
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 700;
  color: #ff3b30 !important; /* Sempre in rosso */
  text-align: right;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.letter-modal-sign .sign-text {
  font-family: var(--font-hand);
  color: #ff3b30 !important;
  font-size: 32px;
  line-height: 1;
}

.sign-heart-svg {
  display: inline-block;
  width: 26px;
  height: 26px;
  fill: #ff3b30 !important;
  color: #ff3b30 !important;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.45));
  transition: transform 0.2s ease;
}

.sign-heart-svg:hover {
  transform: scale(1.18);
}

/* Navigazione footer modale */
.modal-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(220, 150, 100, 0.22);
}

.nav-arrow-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 150, 100, 0.22);
  color: #fbf5eb;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-quick);
}

.nav-arrow-btn:hover {
  background: rgba(220, 150, 100, 0.25);
  border-color: #f5c46e;
  color: #ffffff;
}

.close-action-btn {
  background: rgba(220, 114, 84, 0.22);
  border: 1px solid rgba(220, 114, 84, 0.45);
  color: #fbf5eb;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-quick);
}

.close-action-btn:hover {
  background: #dc7254;
  border-color: #dc7254;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 114, 84, 0.4);
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.simple-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-panna-muted);
  font-size: 13.5px;
}

.simple-footer p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-inline-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-terracotta);
}

/* --------------------------------------------------------------------------
   7. OTTIMIZZAZIONE MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .back-home-link {
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .page-container {
    padding: 62px 14px 45px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .note-card {
    padding: 20px 18px 16px;
  }

  .letter-sheet {
    padding: 26px 20px 18px;
    border-radius: 18px;
  }

  .letter-modal-title {
    font-size: 26px;
  }

  .letter-modal-body {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .nav-arrow-btn {
    padding: 6px 10px;
    font-size: 12.5px;
  }

  .close-action-btn {
    padding: 6px 14px;
    font-size: 12.5px;
  }
}
