/* Report GEA – Edizioni PDF */

/* Riquadro in home */
.rge-home-griglia { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rge-giornale { display: block; text-decoration: none; }
.rge-carta { display: block; position: relative; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 18px 34px -12px rgba(0,0,0,.45); transform: rotate(-1.6deg); transition: transform .3s ease; }
.rge-carta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--verde, #27684E); z-index: 1; }
.rge-carta img { display: block; width: 100%; height: auto; }
a:hover .rge-carta, a:focus-visible .rge-carta { transform: rotate(0deg) translateY(-4px); }
.rge-senza { display: grid; place-items: center; aspect-ratio: 1 / 1.414; font: 700 1.5rem var(--f-locandina, serif); color: var(--inchiostro, #1A1A16); text-transform: uppercase; }
.rge-occhiello { font: 700 .75rem var(--f-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--oro, #C69619); }
.rge-testo h2 { font: 700 clamp(2rem, 1.3rem + 2.4vw, 3.5rem)/.95 var(--f-locandina, serif); text-transform: uppercase; color: var(--verde, #27684E); margin-top: 8px; }
.rge-lead { font-size: 1.0625rem; line-height: 1.55; color: var(--testo-2, #4a4a40); margin-top: 14px; max-width: 52ch; }
.rge-azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rge-prec-titolo { font: 700 .75rem var(--f-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; margin-top: 30px; color: var(--testo-2, #4a4a40); }
.rge-prec { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.rge-prec a, .rge-tutte { font: 500 .9375rem var(--f-ui, sans-serif); color: var(--verde, #27684E); }
.rge-tutte { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.rge-tutte:hover { text-decoration: underline; }

/* Giornale in alto a destra nell'apertura della home */
.rge-apertura-griglia { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 88px); align-items: center; }
.rge-apertura-giornale { width: clamp(220px, 22vw, 320px); text-align: center; }
.rge-apertura-giornale .rge-carta { transform: rotate(2deg); box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 22px 40px -12px rgba(0,0,0,.6); }
.rge-apertura-giornale a:hover .rge-carta { transform: rotate(0deg) translateY(-4px); }
.rge-apertura-data { margin-top: 22px; font: 700 .75rem var(--f-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--oro, #C69619); }
.rge-apertura-azioni { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.rge-apertura-tutte { font: 600 .875rem var(--f-ui, sans-serif); color: var(--su-verde-2, #CFD8C9); text-decoration: none; }
.rge-apertura-tutte:hover { text-decoration: underline; }

/* Griglia delle edizioni */
.rge-griglia { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 34px 24px; margin-top: 18px; }
.rge-griglia a { display: block; text-decoration: none; color: inherit; }
.rge-griglia .rge-carta { transform: none; }
.rge-griglia li:nth-child(odd) .rge-carta { transform: rotate(-1deg); }
.rge-griglia li:nth-child(even) .rge-carta { transform: rotate(.8deg); }
.rge-data { display: block; margin-top: 12px; font: 600 .875rem var(--f-ui, sans-serif); }
.rge-altre-titolo { margin-top: clamp(40px, 6vw, 72px); }

/* Lettore */
.rge-lettore-sezione > .wrap { --max: 1800px; max-width: 1800px; }
.rge-lettore { background: var(--carta, #F4F2E6); overflow: hidden; overflow: clip; }
.rge-barra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0 16px; }
.rge-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1.5px solid var(--testo, #27542E); background: transparent; color: var(--testo, #27542E); font: 700 1.25rem/1 var(--f-ui, sans-serif); cursor: pointer; text-decoration: none; border-radius: 2px; }
.rge-btn:hover { background: var(--testo, #27542E); color: var(--carta, #F4F2E6); }
.rge-testo-btn { font-size: .875rem; }
.rge-pagine { min-width: 8.5em; padding: 0 6px; text-align: center; font: 600 .875rem var(--f-ui, sans-serif); color: var(--testo, #27542E); white-space: nowrap; }
.rge-spazio { flex: 1; }
.rge-libro-box { position: relative; margin: 0 auto; width: 100%; }
.rge-caricamento { padding: 80px 0; text-align: center; font: 500 1rem var(--f-ui, sans-serif); color: var(--testo-2, #4a4a40); }
.rge-pagina { background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.rge-libro { filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.rge-pagina canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rge-num { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .875rem var(--f-ui, sans-serif); color: #9a9a8a; }
.rge-pagina.pronta .rge-num { display: none; }
.rge-link { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rge-link a { position: absolute; display: block; pointer-events: auto; border-radius: 2px; }
.rge-link a:hover, .rge-link a:focus-visible { background: rgba(198, 150, 25, .22); outline: 2px solid rgba(198, 150, 25, .7); }

/* Effetto carta di giornale: carta opaca chiara, inchiostro, piega (senza riflessi lucidi) */
.rge-pagina canvas { filter: contrast(.92) saturate(.9); }
.rge-pagina::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply; background-color: #F8F6EF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .20 0 0 0 0 .17 14 0 0 0 -11.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='.56'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.13' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .40 0 0 0 0 .39 0 0 0 0 .36 0 0 0 1.6 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.21'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .38 0 0 0 0 .35 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.40'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .006' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .45 0 0 0 0 .42 0 0 0 .9 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); background-size: 360px 360px, 400px 400px, 260px 260px, 900px 900px; }
.rge-pagina::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stf__item.--left.rge-pagina::before { background:
  linear-gradient(to left, rgba(30, 30, 26, .32) 0, rgba(30, 30, 26, .14) 2.5%, rgba(30, 30, 26, .05) 7%, rgba(30, 30, 26, 0) 13%),
  linear-gradient(to right, rgba(30, 30, 26, .07) 0, rgba(30, 30, 26, 0) 3%),
  linear-gradient(to bottom, rgba(30, 30, 26, .04) 0, rgba(30, 30, 26, 0) 4%, rgba(30, 30, 26, 0) 96%, rgba(30, 30, 26, .05) 100%); }
.stf__item.--right.rge-pagina::before { background:
  linear-gradient(to right, rgba(30, 30, 26, .32) 0, rgba(30, 30, 26, .14) 2.5%, rgba(30, 30, 26, .05) 7%, rgba(30, 30, 26, 0) 13%),
  linear-gradient(to left, rgba(30, 30, 26, .07) 0, rgba(30, 30, 26, 0) 3%),
  linear-gradient(to bottom, rgba(30, 30, 26, .04) 0, rgba(30, 30, 26, 0) 4%, rgba(30, 30, 26, 0) 96%, rgba(30, 30, 26, .05) 100%); }
.rge-pagina { box-shadow: none; }
.rge-libro { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16)) drop-shadow(0 18px 26px rgba(0, 0, 0, .30)); }
.rge-spessore { position: absolute; display: none; background: #F1EFE8; pointer-events: none; }
/* Angoli: morbidi verso il dorso, appena smussati fuori */
.stf__item.--left.rge-pagina { border-radius: 2px 5px 5px 2px; }
.stf__item.--right.rge-pagina { border-radius: 5px 2px 2px 5px; }
.rge-spessore-sx { border-radius: 2px 5px 5px 2px; }
.rge-spessore-dx { border-radius: 5px 2px 2px 5px; }
/* Ombra del foglio che gira: unica e morbida (niente strisce "metalliche") */
.stf__innerShadow[data-verso="avanti"] { background: linear-gradient(to left, rgba(30, 30, 26, .16) 0, rgba(30, 30, 26, .06) 18%, rgba(30, 30, 26, 0) 55%) !important; }
.stf__innerShadow[data-verso="indietro"] { background: linear-gradient(to right, rgba(30, 30, 26, .16) 0, rgba(30, 30, 26, .06) 18%, rgba(30, 30, 26, 0) 55%) !important; }
.stf__innerShadow::before { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; }
.stf__innerShadow[data-verso="avanti"]::before { right: 0; background: linear-gradient(to left, rgba(110, 104, 90, .55) 0, rgba(255, 255, 255, .9) 1px, rgba(238, 235, 226, .9) 2.5px, rgba(238, 235, 226, 0) 4px); }
.stf__innerShadow[data-verso="indietro"]::before { left: 0; background: linear-gradient(to right, rgba(110, 104, 90, .55) 0, rgba(255, 255, 255, .9) 1px, rgba(238, 235, 226, .9) 2.5px, rgba(238, 235, 226, 0) 4px); }

/* Frecce ai lati, strumenti e numero di pagina sotto il giornale */
.rge-palco { padding: 8px 86px 4px; box-sizing: border-box; }
.rge-freccia { position: absolute; top: calc(50% - 50px); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--verde, #27684E); color: var(--carta, #F4F2E6); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .15s ease, opacity .2s ease, left .45s cubic-bezier(.16, 1, .3, 1), right .45s cubic-bezier(.16, 1, .3, 1); }
.rge-freccia svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rge-freccia-sx { left: -68px; }
.rge-freccia-dx { right: -68px; }
.rge-freccia:hover:not(:disabled) { transform: scale(1.08); }
.rge-freccia:disabled { opacity: .2; cursor: default; box-shadow: none; }
.rge-freccia:focus-visible, .rge-tasto:focus-visible { outline: 3px solid var(--oro, #C69619); outline-offset: 3px; }

/* Giornale chiuso al centro: copertina (a destra) o ultima pagina (a sinistra) */
.rge-libro { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.rge-libro-box.sola-dx .rge-libro { transform: translateX(-25%); }
.rge-libro-box.sola-sx .rge-libro { transform: translateX(25%); }
.rge-libro-box.sola-dx .rge-freccia-sx, .rge-libro-box.sola-sx .rge-freccia-sx { left: calc(25% - 68px); }
.rge-libro-box.sola-dx .rge-freccia-dx, .rge-libro-box.sola-sx .rge-freccia-dx { right: calc(25% - 68px); }

/* Barra dei comandi, centrata sotto il giornale */
.rge-piede { display: flex; justify-content: center; margin-top: 22px; }
.rge-comandi { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1.5px solid var(--filetto, rgba(39,84,46,.22)); border-radius: 999px; background: var(--carta-2, #EBE8D8); }
.rge-tasto { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--testo, #27542E); font: 700 .8125rem var(--f-ui, sans-serif); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.rge-tasto svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rge-tasto:hover:not(:disabled), .rge-tasto.attivo { background: var(--filetto, rgba(39,84,46,.22)); }
.rge-tasto:disabled { opacity: .3; cursor: default; }
.rge-tasto-testo { padding: 0 14px 0 10px; }
.rge-separa { width: 1px; height: 22px; margin: 0 6px; background: var(--filetto, rgba(39,84,46,.22)); }
.rge-social svg { fill: currentColor; stroke: none; }
.rge-social svg .rge-contorno { fill: none; stroke: currentColor; stroke-width: 1.8; }
.rge-caricamento:not([hidden]) ~ .rge-freccia, .rge-caricamento:not([hidden]) ~ .rge-piede { visibility: hidden; }

.rge-lettore:fullscreen { padding: 16px; overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: center; }
.rge-lettore:fullscreen .rge-palco { width: 100%; }


@media (max-width: 720px) {
  .rge-home-griglia { grid-template-columns: 1fr; }
  .rge-apertura-griglia { grid-template-columns: 1fr; }
  .rge-apertura-giornale { width: min(260px, 100%); margin: 8px auto 0; }
  .rge-giornale { max-width: 240px; margin: 0 auto; }
  .rge-palco { padding: 8px 0 0; }
  .rge-freccia { width: 42px; height: 42px; top: calc(50% - 60px); background: var(--verde, #27684E); }
  .rge-freccia svg { width: 22px; height: 22px; }
  .rge-freccia-sx { left: 6px; }
  .rge-freccia-dx { right: 6px; }
  .rge-freccia:disabled { opacity: 0; pointer-events: none; }
  .rge-pagine { min-width: 0; }
  .rge-separa { margin: 0 2px; }
  .rge-comandi { flex-wrap: wrap; justify-content: center; border-radius: 24px; }
  .rge-tasto { min-width: 36px; }
  .rge-tasto-testo { padding: 0 10px 0 8px; }
  .rge-comandi .rge-separa:last-of-type { display: none; }
  .rge-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
}
