/* ICONICA · sito mix · LA PAGINA CONTATTI (contatti.html) · 7/11/2026
   Sulla saracinesca, come l'invito: a sinistra la lettera col tagliando (è il modulo vero), a destra gli oggetti attaccati con lo scotch.
   Tutto a tutta larghezza, niente lati vuoti. Prefisso cq-. */
.cq-banco { position: relative; overflow: hidden; overflow: clip; padding: 34px 0 64px; color: #f4f1e8;
  background: #173329 url("/assets/invito/serranda-tile.webp") top center / max(100%, 900px) auto repeat-y; }
.cq-banco::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.08) 34%, rgba(0,0,0,.28)); }
.cq-banco .wrap { position: relative; }
.cq-titolo { margin: 0; font: 900 clamp(46px, 13.6vw, 230px)/.9 var(--sans); font-stretch: 125%; letter-spacing: -.035em; text-transform: uppercase; color: rgba(244,241,232,.94);
  -webkit-mask: url("../assets/rumore.webp") 0 0 / 300px; mask: url("../assets/rumore.webp") 0 0 / 300px; }
.cq-sotto { margin: 8px 0 28px; font: 400 clamp(18px, 2vw, 24px)/1.3 var(--macchina); color: rgba(244,241,232,.9); }
.cq-griglia { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }

.cq-nastro { position: absolute; z-index: 3; width: clamp(92px, 11vw, 150px); aspect-ratio: 4.36; background: url("/assets/invito/nastro.webp") center / 100% 100% no-repeat; pointer-events: none; }
.cq-nastro.n1 { left: -24px; top: -6px; rotate: -28deg; }
.cq-nastro.n2 { right: -24px; top: -6px; rotate: 26deg; }
.cq-bl { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 8px; border-bottom: 1.5px solid #1E5B45; font: 700 10.5px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #1E5B45; }

/* ---------- la lettera ---------- */
.cq-lettera { position: relative; rotate: -.5deg; color: #1c1f1d; filter: drop-shadow(0 16px 20px rgba(0,0,0,.5)); }
.cq-carta-alta { position: relative; padding: 26px clamp(20px, 4.5vw, 54px) 22px; background: url("/assets/invito/a4.webp") top center / 100% auto repeat-y, #eeeeec; }
.cq-cara { margin: 18px 0 8px; font: 800 clamp(32px, 4.4vw, 54px)/1.02 var(--sans); letter-spacing: -.015em; color: #0D2A1E; }
.cq-riga-lettera { margin: 0; font: 400 clamp(16px, 1.5vw, 18.5px)/1.45 var(--macchina); max-width: 34em; }
.cq-zona { position: relative; transition: min-height .55s cubic-bezier(.3,.8,.3,1); }

.cq-tagliando { position: relative; z-index: 2; display: grid; gap: 15px; padding: 26px clamp(20px, 4.5vw, 54px) 28px; background: url("/assets/invito/a4.webp") top center / 100% auto repeat-y, #eeeeec; }
.cq-tagliando::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px dashed #1E5B45; }
.cq-taglia { position: absolute; left: clamp(20px, 4.5vw, 54px); top: -8px; margin: 0; padding: 0 8px 0 0; background: #eeeeec; font: 600 10.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #1E5B45; }
.cq-taglia span { font-size: 15px; }
.cq-et { display: block; padding: 0; font: 700 10.5px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: #0D2A1E; }
.cq-motivi { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; border: 0; }
.cq-motivi legend { margin-bottom: 8px; }
.cq-motivi label { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 400 15.5px/1.2 var(--macchina); }
.cq-motivi input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.cq-casella { position: relative; flex: none; width: 21px; height: 21px; border: 1.5px solid #0D2A1E; background: #fff; }
.cq-casella svg { position: absolute; inset: -6px -8px -3px -3px; width: calc(100% + 11px); height: calc(100% + 9px); overflow: visible; }
.cq-casella path { fill: none; stroke: var(--biro); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .28s ease-out; }
.cq-motivi input:checked + .cq-casella path { stroke-dashoffset: 0; }
.cq-motivi input:focus-visible + .cq-casella { outline: 3px solid var(--azione); outline-offset: 3px; }
.cq-campo { display: block; padding-bottom: 2px; border-bottom: 1.5px solid #0D2A1E; }
.cq-campo:focus-within { border-bottom-color: var(--biro); }
.cq-campo input, .cq-campo textarea { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; padding: 3px 2px 1px; font: clamp(25px, 2.4vw, 29px)/1.2 var(--mano); color: var(--biro); resize: vertical; }
.cq-campo input:focus, .cq-campo textarea:focus { outline: none; background: rgba(36,57,154,.05); }
/* il messaggio: si scrive sulle righe del foglio */
.cq-messaggio textarea { min-height: 7.2em; line-height: 1.8em; padding-top: 0; background: repeating-linear-gradient(180deg, transparent 0 calc(1.8em - 1px), rgba(13,42,30,.28) calc(1.8em - 1px) 1.8em); background-attachment: local; }
.cq-esca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cq-nota { margin: 0; font: 400 12.5px/1.4 var(--macchina); color: #4d5450; }
.cq-nota a { color: inherit; }
.cq-esito { min-height: 1.2em; margin: 0; font: 24px/1.1 var(--mano); color: var(--biro); }
.cq-esito a { color: inherit; }
.cq-spedisci { justify-self: start; rotate: -1.2deg; min-height: 56px; padding: 0 26px; border: 0; cursor: pointer; border-radius: 4px; background: var(--azione); color: #fff; box-shadow: inset 0 0 0 3px var(--azione), inset 0 0 0 5px rgba(255,255,255,.9), 0 2px 3px rgba(0,0,0,.35);
  font: 900 19px/1 var(--sans); font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase; transition: scale .25s var(--molla), rotate .25s var(--molla); -webkit-mask: url("../assets/rumore.webp") 0 0 / 240px; mask: url("../assets/rumore.webp") 0 0 / 240px; }
.cq-spedisci:hover { rotate: 0deg; scale: 1.03; }
.cq-spedisci:active { scale: .97; }
.cq-spedisci:focus-visible { outline: 3px solid var(--biro); outline-offset: 3px; }

/* la ricevuta: sta sotto al tagliando e si vede quando cade */
.cq-ricevuta { display: grid; align-content: start; gap: 12px; padding: 26px clamp(20px, 4.5vw, 54px) 30px; background: url("/assets/invito/a4.webp") top center / 100% auto repeat-y, #eeeeec; }
.cq-ricevuta.sotto { position: absolute; inset: 0; z-index: 1; }
.cq-ric-grande { margin: 6px 0 0; rotate: -1.5deg; font: 900 clamp(52px, 7vw, 92px)/.92 var(--sans); font-stretch: 125%; letter-spacing: -.03em; color: var(--azione); }
.cq-ric-testo { margin: 0; font: 400 16.5px/1.45 var(--macchina); max-width: 32em; }
.cq-altra { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; font: 800 16px/1.2 var(--sans); color: #0D2A1E; text-decoration: underline; text-decoration-color: var(--arancio); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- gli oggetti a destra ---------- */
.cq-oggetti { display: grid; gap: 28px; }
.cq-biglietto { position: relative; rotate: -.7deg; padding: 20px clamp(18px, 2.4vw, 30px) 22px; color: #1c1f1d; background: url("/assets/invito/a4.webp") top center / 100% auto repeat-y, #eeeeec; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.cq-biglietto dl { margin: 6px 0 0; }
.cq-biglietto dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(13,42,30,.45); }
.cq-biglietto dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.cq-biglietto dt { padding-top: 3px; font: 700 10.5px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--azione); }
.cq-biglietto dd { margin: 0; font: 400 15.5px/1.4 var(--macchina); }
.cq-biglietto dd a { display: block; margin-top: 3px; color: inherit; text-underline-offset: 3px; }
.cq-biglietto .cq-forte { margin: 0; font: 800 clamp(17px, 1.6vw, 21px)/1.2 var(--sans); overflow-wrap: anywhere; text-decoration-color: var(--arancio); text-decoration-thickness: 2px; }
.cq-adesivi { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.cq-adesivo { display: inline-block; padding: 10px 14px 9px; background: #f6efe2; color: #173329; border-radius: 3px; text-decoration: none; box-shadow: 0 2px 3px rgba(0,0,0,.45); font: 800 14px/1 var(--sans); font-stretch: 112%; letter-spacing: .03em; text-transform: uppercase; transition: rotate .3s var(--molla), scale .3s var(--molla); }
.cq-adesivo.a { rotate: -2.5deg; }
.cq-adesivo.b { rotate: 1.8deg; background: var(--azione); color: #fff; }
.cq-adesivo.c { rotate: -1deg; }
.cq-adesivo:hover { rotate: 0deg; scale: 1.05; }

@media (min-width: 900px) {
  .cq-banco { padding: 44px 0 90px; }
  .cq-titolo { font-size: clamp(120px, 15vw, 250px); }
  .cq-griglia { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 90px); }
}
@media (prefers-reduced-motion: reduce) { .cq-casella path { transition: none; } }

/* 7/11 sera: il biglietto prende il posto della foto, col suo nastro; sotto, il timbro ICONICA dipinto sulla saracinesca (bianco consumato) */
.cq-biglietto .cq-nastro.n1 { left: 50%; top: -18px; translate: -50% 0; rotate: -3deg; }
.cq-dipinto { display: grid; place-items: center; padding: clamp(10px, 2vw, 26px) 0; }
.cq-dipinto img { display: block; width: min(68%, 300px); height: auto; opacity: .9; rotate: -2deg;
  -webkit-mask: url("../assets/rumore.webp") 0 0 / 260px; mask: url("../assets/rumore.webp") 0 0 / 260px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
