/* ==================================================
   COMPONENTS.CSS — MIRABILISSIME INVENZIONI
   ================================================== */


/* ===============================
   PULSANTI LINGUA
   =============================== */

.container .pulsanti {
  position: absolute;
  top: 1vh;
  right: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid transparent;
  z-index: 100;
}

.container .pulsanti a img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.container .pulsanti a img:hover {
  transform: scale(1.2);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

/* ===============================
   PULSANTI NAV (BOTTOM)
   =============================== */

.pulsanti_b{
  margin-top: 4vh;
  display:flex;
  justify-content:flex-start;
  gap:10px;
}

.pulsanti_b a{
  text-decoration:none;
}

.pulsanti_b img{
  width:20px;
  height:20px;
  border-radius:50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pulsanti_b img:hover{
  transform: scale(1.2);
  box-shadow:0px 0px 10px rgba(0,0,0,0.5);
}
/* ===============================
   BLOCCO IMMAGINE + COMMENTO DESTRA
   =============================== */

.figura-commentata {
  display: flex;
  align-items: center;              
  justify-content: space-between;
  gap: 4%;
/* ======= regolazione margini sopra e sotto di tutte le immagini=========== */
  margin-top: 8vh;
  margin-bottom: 6vh;
}

/* Contenitore immagine */
.figura-img {
  width: 48%;
}

.figura-img img {
  width: 100%;
  height: auto;
  display: block;
margin: 0 auto;  
}

/* Contenitore testo laterale */
.figura-testo {
  width: 48%;
  display: flex;                    
  align-items: center;              
}

/* Testo di commento */
.figura-testo p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.figura-img img + img {
  margin-top: 8px;
}

/* ===============================
   VARIANTE: IMMAGINE A DESTRA
   =============================== */

.figura-commentata.reverse {
  flex-direction: row-reverse;
}


/* ===============================
   VARIANTE: IMMAGINE CENTRATA + TESTO SOTTO
   =============================== */

.figura-commentata.centered {
  flex-direction: column;
  align-items: center;
  justify-content: initial;
  text-align: center;
}

.figura-commentata.centered .figura-img {
  width: 40%;
 margin-bottom: 4vh;
}

.figura-commentata.centered .figura-testo {
  width: 80%;
  display: block;
  text-align: left;
}

.figura-commentata.centered .figura-testo p {
  font-size: 15px;
  margin-top: 1vh;
}

/* ===============================
   VARIANTE: IMMAGINE WIDE - immagine con larghezza quanto il testo del commento
   ================================================================================= */

.figura-commentata.wide .figura-img,
.figura-commentata.wide .figura-testo {
  width: 80%;
}

.figura-commentata.wide .figura-img img {
  width: 100%;
  max-width: none;
  height: auto;
}

/* ===============================
   RESPONSIVE — MOBILE
   =============================== */

@media (max-width: 768px) {

  .figura-commentata,
  .figura-commentata.reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 2vh;
  }

  .figura-img,
  .figura-testo {
    width: 100%;
  }

  .figura-testo {
    display: block;
  }

  .figura-testo p {
    font-size: 16px;
    margin-top: 1vh;
  }

  .figura-commentata.centered .figura-img {
    width: 100%;
    margin-top: 1vh;
  }

  .figura-commentata.centered .figura-testo {
  width: 100%;
  text-align: left;
}

  .figura-commentata.doppia .figura-doppia {
    flex-direction: column;
    align-items: center;
    gap: 2vh;
  }

  .figura-commentata.doppia .figura-doppia .figura-img {
    width: 68%;
  }

  .figura-commentata.doppia .figura-testo {
    width: 100%;
    text-align: left;
  }


  .figura-commentata.doppia .figura-testo p {
    font-size: 16px;
  }
}


/* ===============================
   VARIANTE: DUE IMMAGINI AFFIANCATE
   - Supporta:
     (1) commento unico sotto la coppia: .figura-testo
     (2) commento sotto ogni immagine: .img-commento
   =============================== */

.figura-commentata.doppia {
  flex-direction: column;
  align-items: center;
  justify-content: initial;
  gap: 2vh;
}

/* Contenitore delle due immagini */
.figura-commentata.doppia .figura-doppia {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 4%;
}

/* Colonna immagine (con eventuale commento sotto) */
.figura-commentata.doppia .figura-doppia .figura-img {
  width: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Immagine */
.figura-commentata.doppia .figura-doppia .figura-img img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;

}

/* Commento sotto ciascuna immagine (opzionale) */
.figura-commentata.doppia .figura-doppia .figura-img .img-commento {
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-top: 3vh;
}

/* Commento unico sotto la coppia (opzionale) */
.figura-commentata.doppia .figura-testo {
  width: 100%;
  display: block;
  text-align: left;
}

.figura-commentata.doppia .figura-testo p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-top: 1vh;
}

/* ===============================
   RESPONSIVE — MOBILE (solo per la variante doppia)
   =============================== */

@media (max-width: 768px) {

  .figura-commentata.doppia .figura-doppia {
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    width: 100%;
  }

  .figura-commentata.doppia .figura-doppia .figura-img {
    width: 100%;
  }

  .figura-commentata.doppia .figura-testo {
    width: 100%;
    text-align: left;
  }

  .figura-commentata.doppia .figura-testo p,
  .figura-commentata.doppia .figura-doppia .figura-img .img-commento {
    font-size: 16px;
  }
}

/* ===============================
   TRE IMMAGINI AFFIANCATE
   =============================== */

.figura-img-row{
display:flex;
justify-content:center;
align-items:flex-start;
gap:16px;

/* impedisce di andare a capo */
flex-wrap:nowrap;

/* prende tutta la larghezza del contenitore testo */
width:100%;
}

/* tre colonne sempre */
.figura-img-row .mi-hold-overlay{
flex:1 1 33.33%;
max-width:none;
}

/* immagini riempiono il contenitore */
.figura-img-row img{
width:100%;
height:auto;
display:block;
}

/* ===========================
   COOKIE BANNER
   =========================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.88);
  color: #fff;
  padding: 12px 10px;
  z-index: 9999;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.cookie-btn--primary {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}


/* ===========================
   LISTA PERCENTUALI
   =========================== */

.lista-percentuali {
  margin: 2vh auto;
  padding-left: 2.2em;
  text-align: left;
}

.lista-percentuali li {
  margin: 0.4em 0;
  font-size: 16px;
  line-height: 1.4;
}


/* ===============================
   OPERE HOME
   =============================== */

.opere-home {
  display: flex;
  justify-content: center;
  gap: 8%;
  margin: 4vh 0;
  flex-wrap: wrap;
}

.opera-item {
  width: 260px;
  text-align: left;
}

.opera-titolo {
  font-size: 16px;
  font-style: italic;
  color: #000;
  margin-bottom: 2vh;
  line-height: 1.6;
}

.opera-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.opera-item img:hover {
  transform: scale(1.04);
}

/* MOBILE */
@media (max-width: 768px) {
  .opere-home {
    gap: 5vh;
  }

  .opera-item {
    width: 70%;
  }
}

/* ===============================
   DONAZIONE
   =============================== */

.donazione {
  text-align: center;
  margin: 4vh auto 3vh;
  max-width: 720px;
}

.donazione p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 2vh;
}


/* ===============================
   PULSANTE PAYPAL
   =============================== */

.paypal-btn {
  background-color: #0070ba;      /* Blu PayPal ufficiale */
  border: 1px solid #0070ba;
  color: #ffffff;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.25s ease,
              border-color 0.25s ease,
              transform 0.15s ease;
}

.paypal-btn:hover {
  background-color: #003087;      /* Blu PayPal scuro */
  border-color: #003087;
  transform: translateY(-1px);
}

.paypal-btn:active {
  transform: translateY(0);
}

/* ===============================
   CATALOGO – CONTENITORE + GRIGLIA
   Desktop invariato, mobile con respiro
   =============================== */

.catalogo {
  width: 80%;            /* desktop come prima */
  max-width: 1200px;     /* limite elegante */
  margin: 4vh auto;      /* centrato */
}

/* Griglia desktop */
.catalogo-griglia {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5vh 2.5%;
}

/* Card cliccabile */
.catalogo-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumb 3:4 */
.catalogo-figura {
  border: 1px solid #cfc5b8;
  background: transparent;
  padding: 6px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalogo-figura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Testi */
.catalogo-testo {
  margin-top: 0.9vh;
}

.catalogo-titolo {
  font-size: 15px;
  font-style: italic;
  line-height: 1.3;
  margin: 0;
  color: #000;
}

.catalogo-meta {
  font-size: 13px;
  line-height: 1.3;
  margin: 0.4vh 0 0 0;
  color: #555;
}

/* Hover discreto */
.catalogo-card:hover .catalogo-figura {
  border-color: #800000;
}

.catalogo-card:hover .catalogo-titolo {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* Tablet */
@media (max-width: 900px) {
  .catalogo {
    width: 85%;
  }

  .catalogo-griglia {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vh 4%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .catalogo {
    width: 85%;         /* piena larghezza */
    padding: 0 24px;     /* respiro dx/sx */
    box-sizing: border-box;
  }

  .catalogo-griglia {
    grid-template-columns: 1fr;
  }
}

.legenda-visiva {
  font-size: 0.9em;
  color: #555;
  margin: 1em 0;
}

.legenda-visiva ul {
  list-style: none;
  padding-left: 0;
}

.legenda-visiva li {
  margin: 0.3em 0;
  display: flex;
  align-items: center;
}

.colore {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid #666;
}

/* colori coerenti con le linee */
.colore.verde { background: #06FF00; }
.colore.viola { background: #8e44ad; }
.colore.giallo { background: #fffd00; }
.colore.blu { background: #0024ff; }
.colore.rosso { background: #e74c3c; }
.colore.verde-acido { background: #9cff00; }
.colore.arancione { background: #FFA800; }
.colore.magenta { background: #FF00FF; }

/* =========================================
   HOME — riuso stile catalogo senza crop
   ========================================= */

.opere-home .catalogo-figura{
  aspect-ratio: auto;     /* disattiva il 3:4 del catalogo */
  padding: 0;
  border: none;
}

.opere-home .catalogo-figura img{
  height: auto;
  object-fit: contain;    /* niente tagli */
  transition: transform 0.25s ease; /* mantiene hover "movimento" */
}

.opere-home .catalogo-card:hover .catalogo-figura img{
  transform: scale(1.04); /* come prima */
}

/* ===========================
   PULSANTE "CONTINUA"
   =========================== */

.continua {
  width: 100%;
  text-align: center;
  margin: 10vh 0 2vh;
}

.continua .imgcontinua {
  max-width: 180px;
  height: auto;
  cursor: pointer;
  transition: transform 0.25s ease-in-out,
              filter 0.25s ease-in-out;
}

.continua .imgcontinua:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ===============================
   CREDITI – dimensione ridotta
   =============================== */

/* Titolo Crediti più discreto */
.crediti .sezione-titolo h3 {
  font-size: 16px;
  font-weight: 600;
}

.crediti p,
.crediti li {
  font-size: 16px;
  line-height: 1.5;
 color: #000;

}

.crediti-label{
  margin: 0.6vh 0 0.6vh 0;
  font-size: 16px;      /* o 15px se vuoi più “colophon” */
}

.crediti ul {
  margin-top: 1vh;
  padding-left: 1.2em;
}

.spazio-img{ height: 3vh; }


/* ===============================
   LINK NON ATTIVO della pagina
   =============================== */

.menu-sito .attivo a {
  color: #000;
  font-style: italic;
  font-weight: normal;
  text-decoration: none;
  cursor: default;
}

