/* Appunti in Ordine blocks on the Italian home (#appunti) and catalogue (#appunti and the
   «Percorsi» card), loaded only on those two pages (SiteLayout.astro). Each series keeps its
   identity inside the GCJ Editor pages: cream squared paper, Lilita One and night blue of
   the series, each volume in its own colour (--colore, from src/data/collana-appunti.json).
   Fonts are OFL, self-hosted (licences in /assets/fonts/). */
@font-face{font-family:"Lilita One";src:url("/assets/fonts/LilitaOne-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Shantell Sans";src:url("/assets/fonts/ShantellSans-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}
:root{--ao-blu:#16263A;--ao-crema:#FFF8E8;--ao-quadretti:#E9E3D2;--ao-arancio:#9E3410;--ao-titoli:"Lilita One","Arial Rounded MT Bold",Arial,sans-serif;--ao-mano:"Shantell Sans","Comic Sans MS",cursive}

.appunti-link,.appunti-buy{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;min-height:48px;padding:0 20px;border-radius:10px;font:400 18px/1 var(--ao-titoli);letter-spacing:.01em;text-decoration:none}
.appunti-link{background:var(--ao-blu);color:var(--ao-crema)}
.appunti-buy{background:var(--colore);color:#fff}
.appunti-link:hover{filter:brightness(1.3)}
.appunti-buy:hover{filter:brightness(.88)}
.col-soon{margin:0;font:600 15px/1.35 var(--ao-mano);color:var(--ao-blu)}

/* Home card (19/11/2026, ★ GN-1 A, GN-2 A, GN-3 A): the classroom scene with Martina, no text
   in the image; logo C3, title, copy, subjects, button and covers composed on top of it.
   Zones measured on the scene (x and y in % of the 16:9 frame): free wall x 0-27, y 0-43
   (globe from y 43); LIM x 28-82, y 10-57, free left of Martina's arm up to x 57; desk front
   x 26-90, y 82-100. Positions use cqw (1% of the card width): on 16:9, 1% of the height is
   0.5625cqw. Worst-case contrast measured on the scene: cream on the wall 8.4:1, gold eyebrow
   5.3:1, night blue on the LIM 5.5:1 (the series orange fails there, so the LIM text is blue).
   Layout «parete»: eyebrow, title and button on the wall, logo on the LIM.
   Layout «lim»: eyebrow, title and button on the LIM, logo on the wall. Chosen by Giacomo
   for the computer on 19/11/2026 (★ B); on the phone the two layouts are the same.
   Under 880 px of card the title goes in the band below the scene; under 620 px of screen the
   scene is the 4:5 column with Martina and the logo (★ GN-4 A). */
.appunti-scena{--ao-petrolio:#0A4740;--ao-oro:#F2C14E;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);background:var(--ao-petrolio);border:1.5px solid var(--ao-blu);border-radius:14px;box-shadow:8px 8px 0 var(--ao-blu);color:var(--ao-crema);overflow:hidden}
.appunti-scena-quadro{grid-area:1/1;position:relative;line-height:0}
.appunti-scena-img{display:block;width:100%;height:auto}
.appunti-scena-quadro::after{content:"";position:absolute;left:0;right:0;bottom:0;height:20%;background:linear-gradient(to bottom,#0a474000,var(--ao-petrolio));pointer-events:none}
.appunti-scena-logo{position:absolute;display:block;height:auto;max-width:none;filter:drop-shadow(0 .5cqw 1cqw #0b1d2a59)}
.appunti-scena--parete .appunti-scena-logo{left:32.5%;top:14.2%;width:20%}
.appunti-scena--lim .appunti-scena-logo{left:4%;top:4.1%;width:19%}
.appunti-scena-titolo{grid-row:2;padding:28px 28px 0}
.appunti-scena .eyebrow{margin:0 0 10px;color:var(--ao-oro)}
.appunti-scena h3{margin:0 0 20px;font:400 clamp(34px,6cqw,48px)/1 var(--ao-titoli);letter-spacing:0;color:var(--ao-crema);text-wrap:balance}
.appunti-scena .appunti-link{background:var(--ao-crema);color:var(--ao-blu)}
.appunti-scena-sotto{grid-row:3;position:relative;display:grid;gap:26px;padding:22px 28px 30px}
.appunti-scena-testo p{max-width:34em;margin:0;font-size:16px;line-height:1.6;color:#F4EFE3}
.appunti-subjects{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0;padding:0}
.appunti-subjects li{padding:8px 14px;border-radius:999px;background:var(--colore);color:#fff;font:600 15px/1 var(--ao-mano)}
.appunti-scena .appunti-subjects li{box-shadow:0 0 0 1.5px #f4efe3b3}
.appunti-covers{display:flex;justify-content:center;align-items:flex-start;gap:1.6cqw}
.appunti-covers img{display:block;flex:0 1 auto;width:15cqw;height:auto;max-width:none;min-width:0;border-radius:4px;box-shadow:0 1cqw 2.4cqw #04201c80}
.appunti-covers img:nth-child(odd){transform:rotate(-2.5deg)}
.appunti-covers img:nth-child(even){transform:rotate(2deg) translateY(.6cqw)}

@container (min-width:880px){
  .appunti-scena-titolo{grid-area:1/1;align-self:start;z-index:1;width:24cqw;margin:3.4cqw 0 0 2.6cqw;padding:0}
  .appunti-scena .eyebrow{margin-bottom:.9cqw;font-size:max(12px,1.08cqw);letter-spacing:.07em}
  .appunti-scena h3{margin:0 0 1.6cqw;font-size:4.2cqw}
  .appunti-scena-sotto{grid-row:2;grid-template-columns:minmax(0,31.4cqw) minmax(0,1fr);gap:3cqw;padding:.4cqw 2.6cqw 2.6cqw}
  .appunti-covers{margin-top:-7cqw;gap:1.2cqw}
  .appunti-covers img{width:9.4cqw}
  .appunti-scena--lim .appunti-scena-titolo{width:25cqw;margin:7.5cqw 0 0 31cqw}
  .appunti-scena--lim .eyebrow{color:var(--ao-blu)}
  .appunti-scena--lim h3{color:var(--ao-blu)}
  .appunti-scena--lim .appunti-link{background:var(--ao-blu);color:var(--ao-crema)}
  .appunti-scena--lim .appunti-scena-sotto{grid-template-columns:minmax(0,25.4cqw) minmax(0,26cqw) minmax(0,1fr)}
  .appunti-scena--lim .appunti-scena-testo{grid-column:2}
  .appunti-scena--lim .appunti-covers{grid-column:3}
}

/* Catalogue */
.catalog-appunti{padding:100px 0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6vw;align-items:start}
.catalog-appunti-head h2{margin:0 0 22px;font-size:clamp(44px,4.6vw,66px);line-height:1.01;color:var(--cat-ink)}
.catalog-appunti-head>p:not(.eyebrow){margin:0 0 28px;font-size:17px;line-height:1.8;color:#4E6669}
.catalog-appunti-list{list-style:none;margin:0;padding:0;display:grid;gap:22px}
.catalog-appunti-list li{display:grid;grid-template-columns:118px minmax(0,1fr);gap:24px;align-items:center;padding:22px;background:var(--ao-crema);border:1.5px solid var(--ao-blu);border-top:8px solid var(--colore);border-radius:12px;color:var(--ao-blu)}
.catalog-appunti-list figure{margin:0;transform:rotate(-2deg);box-shadow:0 6px 16px #16263a33;border-radius:3px;overflow:hidden}
.catalog-appunti-list img{display:block;width:100%;height:auto}
.appunti-subject{margin:0 0 6px;font:600 15px/1.3 var(--ao-mano);color:var(--colore)}
.catalog-appunti-list h3{margin:0 0 8px;font:400 24px/1.12 var(--ao-titoli);color:var(--colore)}
.appunti-meta{margin:0 0 14px;font-size:14px;color:#3c4b5c}

.path-appunti{grid-column:1/-1;min-height:400px;padding-right:min(46%,520px);background-color:var(--ao-crema);background-image:linear-gradient(var(--ao-quadretti) 1px,transparent 1px),linear-gradient(90deg,var(--ao-quadretti) 1px,transparent 1px);background-size:22px 22px;border:1.5px solid var(--ao-blu);color:var(--ao-blu)}
.path-appunti h3{font-family:var(--ao-titoli);font-weight:400;line-height:1;color:var(--ao-blu)}
.path-appunti .path-emblem{font-family:var(--ao-titoli);color:var(--ao-arancio)}
.path-card.path-appunti>.path-appunti-covers{position:absolute;right:6%;top:50%;transform:translateY(-50%);display:flex;width:min(40%,440px);justify-content:center;align-items:flex-start}
.path-appunti-covers img{display:block;width:min(200px,48%);height:auto;max-width:none;border-radius:4px;box-shadow:0 12px 26px #16263a40;min-width:0}
.path-appunti-covers img:first-child{transform:rotate(-4deg) translateX(10px)}
.path-appunti-covers img:last-child{transform:rotate(3deg) translate(-10px,20px)}

@media(max-width:1000px){
  .catalog-appunti{grid-template-columns:minmax(0,1fr);gap:40px;padding:70px 0}
}
@media(max-width:760px){
  .path-appunti{min-height:0;padding-right:32px}
  .path-card.path-appunti>.path-appunti-covers{position:relative;right:auto;top:auto;transform:none;width:auto;margin-top:28px}
}
@media(max-width:620px){
  .appunti-scena{box-shadow:5px 5px 0 var(--ao-blu)}
  .appunti-scena .appunti-scena-logo{left:5%;top:14.4%;width:34%}
  .appunti-scena-titolo{padding:24px 20px 0}
  .appunti-scena-sotto{padding:18px 20px 26px}
  .appunti-covers{gap:0}
  .appunti-covers img{width:21cqw}
  .appunti-covers img+img{margin-left:-3.5cqw}
  .catalog-appunti{padding:58px 0}
  .catalog-appunti-list li{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px}
  .catalog-appunti-list figure{width:96px}
  .catalog-appunti-list h3{font-size:21px}
  .appunti-link,.appunti-buy{width:100%;justify-content:center}
}
