/* PragmaKreative — foglio di stile unico del sito statico. Token da tokens.css. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pk-color-crema);
  color: var(--pk-color-blu-inchiostro);
  font-family: var(--pk-font-body);
  font-size: var(--pk-size-body);
  line-height: var(--pk-line-height-testi);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pk-color-corallo-scuro-testo);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--pk-color-blu-inchiostro);
  font-family: var(--pk-font-title);
  font-weight: 700;
  line-height: var(--pk-line-height-titoli);
}

h1 { font-size: clamp(var(--pk-size-h2), 6vw + 0.5rem, var(--pk-size-display)); }
h2 { font-size: clamp(var(--pk-size-h3), 4vw + 0.5rem, var(--pk-size-h2)); }
h3 { font-size: var(--pk-size-h4); }

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--pk-color-blu-inchiostro);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pk-color-lime-spunta);
  color: var(--pk-color-blu-inchiostro);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  section {
    padding: 88px 0;
  }
}

/* Header e footer */

.site-header {
  border-bottom: 1px solid rgba(23, 24, 59, 0.12);
  background: var(--pk-color-crema);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 14px 0;
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  padding: 6px 2px;
  color: var(--pk-color-blu-inchiostro);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pk-color-corallo-pragma);
  text-decoration-thickness: 3px;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--pk-color-corallo-pragma);
  text-decoration-thickness: 3px;
}

/* Voce "Sito gratis": pillola a bordo corallo, stessi colori del menu */
.nav a.nav-free {
  padding: 4px 12px;
  border: 2px solid var(--pk-color-corallo-pragma);
  border-radius: 999px;
  color: var(--pk-color-corallo-scuro-testo);
}

/* Banner home "Sito gratis": fascia inchiostro, testo crema (contrasto AA) */
.free-banner {
  padding: 40px 0;
  background: var(--pk-color-blu-inchiostro);
  color: var(--pk-color-crema);
}

.free-banner-inner {
  display: grid;
  gap: 20px;
  align-items: center;
}

.free-banner h2 {
  margin: 0 0 8px;
  color: var(--pk-color-crema);
  font-family: var(--pk-font-title);
  font-size: var(--pk-size-h3);
  line-height: var(--pk-line-height-titoli);
}

.free-banner p {
  margin: 0;
  color: var(--pk-color-crema);
}

@media (min-width: 700px) {
  .free-banner-inner {
    grid-template-columns: 1fr auto;
  }
}

/* Voce "Sito gratis": pillola a bordo corallo, stessi colori del menu */
.nav a.nav-free {
  padding: 4px 12px;
  border: 2px solid var(--pk-color-corallo-pragma);
  border-radius: 999px;
  color: var(--pk-color-corallo-scuro-testo);
}

/* Banner home "Sito gratis": fascia inchiostro, testo crema (contrasto AA) */
.free-banner {
  padding: 40px 0;
  background: var(--pk-color-blu-inchiostro);
  color: var(--pk-color-crema);
}

.free-banner-inner {
  display: grid;
  gap: 20px;
  align-items: center;
}

.free-banner h2 {
  margin: 0 0 8px;
  color: var(--pk-color-crema);
  font-family: var(--pk-font-title);
  font-size: var(--pk-size-h3);
  line-height: var(--pk-line-height-titoli);
}

.free-banner p {
  margin: 0;
  color: var(--pk-color-crema);
}

@media (min-width: 700px) {
  .free-banner-inner {
    grid-template-columns: 1fr auto;
  }
}

.site-footer {
  margin-top: 0;
  padding: 40px 0 48px;
  border-top: 8px solid var(--pk-color-corallo-pragma);
  background: var(--pk-color-crema);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

.footer-inner .logo img {
  height: 32px;
}

/* KRE-911: logo leggibile da telefono (390 px) */
@media (max-width: 700px) {
  .logo img {
    height: 34px;
  }

  .footer-inner .logo img {
    height: 32px;
  }
}

.footer-inner .nav ul {
  justify-content: flex-start;
}

.copy {
  margin: 0;
  font-size: var(--pk-size-small);
}

.legal {
  margin: 0;
  font-size: var(--pk-size-small);
  grid-column: 1 / -1;
}

/* Bottoni: CTA unica = pill lime con testo inchiostro */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--pk-color-blu-inchiostro);
  border-radius: 999px;
  background: var(--pk-color-lime-spunta);
  color: var(--pk-color-blu-inchiostro);
  font-family: var(--pk-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-link {
  font-weight: 600;
}

.btn-cta-header {
  padding: 0.5rem 1.1rem;
  min-height: 44px;
  font-size: 0.95rem;
}

/* Layout generale */

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 40px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 80px;
  }
}

.lead {
  max-width: 36ch;
  font-size: var(--pk-size-lead);
  line-height: var(--pk-line-height-testi);
}

.intro {
  max-width: 60ch;
}

.visual {
  margin: 0;
}

.band-coral {
  background: var(--pk-color-corallo-pragma);
  color: var(--pk-color-blu-inchiostro);
}

.band-coral h2,
.band-coral h3,
.band-coral p,
.band-coral a {
  color: var(--pk-color-blu-inchiostro);
}

.band-coral .btn {
  background: var(--pk-color-lime-spunta);
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card,
.card,
.value,
.box {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--pk-color-corallo-pragma);
  color: var(--pk-color-blu-inchiostro);
  font-family: var(--pk-font-title);
  font-size: var(--pk-size-h4);
  font-weight: 700;
}

.grid-cards {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .grid-cards.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-cards.four {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-link h3 {
  margin-top: 12px;
}

.card-visual {
  height: 88px;
  margin-bottom: 4px;
}

.card-visual svg {
  width: 100%;
  height: 100%;
}

.card-visual {
  width: 100%;
}

.note {
  margin-top: 24px;
  font-weight: 600;
}

.box-pair {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .box-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.box-ai {
  background: var(--pk-color-azzurro-kreative);
  color: #ffffff;
}

.box-ai h3,
.box-ai p {
  color: #ffffff;
}

.box-umano {
  background: var(--pk-color-lime-spunta);
  color: var(--pk-color-blu-inchiostro);
}

.box-umano h3,
.box-umano p {
  color: var(--pk-color-blu-inchiostro);
}

.box-fai-da-te {
  margin-top: 18px;
  border: 2px solid var(--pk-color-blu-inchiostro);
  background: transparent;
}

/* Esempi */

.gallery {
  display: grid;
  gap: 18px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .gallery.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery.all {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery figure,
.examples figure {
  margin: 0;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
}

.gallery img,
.examples img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.gallery figcaption,
.examples figcaption {
  margin-top: 10px;
  font-size: var(--pk-size-small);
}

.examples {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  align-items: start;
}

@media (min-width: 768px) {
  .examples {
    grid-template-columns: repeat(3, 1fr);
  }
}

.banda-esempi {
  padding: 22px 24px;
  border-left: 8px solid var(--pk-color-azzurro-kreative);
  border-radius: 22px;
  background: #ffffff;
  color: var(--pk-color-blu-inchiostro);
}

.banda-esempi p {
  margin: 0;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list .box {
  padding: 22px 24px;
}

/* Contatti e modulo */

.form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--pk-color-blu-inchiostro);
  border-radius: 14px;
  background: #ffffff;
  color: var(--pk-color-blu-inchiostro);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--pk-color-errore);
  box-shadow: inset 0 0 0 1px var(--pk-color-errore);
}

.form-notice {
  display: block;
  margin-top: 12px;
  font-size: var(--pk-size-small);
}

.field-error {
  display: none;
  font-size: var(--pk-size-small);
  font-weight: 600;
  color: var(--pk-color-errore);
}

.field-error.is-visible {
  display: block;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
}

.form-status.is-ok {
  color: var(--pk-color-conferma);
}

.form-status.is-errore {
  color: var(--pk-color-errore);
}

.form-status.is-info {
  color: var(--pk-color-blu-inchiostro);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.noscript-note {
  padding: 16px 20px;
  border-radius: 14px;
  background: #ffffff;
  font-weight: 600;
}

/* Preferenze di movimento */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Visual decorativi per sezione (SVG inline dal marchio) */

.visually-hidden-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-svg {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.strip-svg {
  width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.steps-svg {
  width: 100%;
  max-width: 260px;
}

.mosaic-svg {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.faq-svg,
.contact-svg {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}

.cta-art {
  display: flex;
  justify-content: flex-end;
}

.cta-svg {
  width: 112px;
  height: 112px;
}

/* Revisione visiva: header su una riga da desktop, icone valori piccole */

.value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 14px;
}

/* KRE-1092: header identico in IT/EN/SQ. Il logo non si comprime mai e la soglia e' la stessa per tutte
   le lingue (il menu italiano e' il piu' lungo). Sotto 1560 px il menu va su una seconda riga,
   da 1560 px in su sta tutto su una riga. */
@media (min-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    width: min(100% - 40px, 1400px);
  }
  .nav {
    order: 3;
    flex-basis: 100%;
  }
  .nav ul {
    flex-wrap: nowrap;
    gap: 4px 20px;
  }
  .nav a,
  .btn-cta-header {
    white-space: nowrap;
  }
  .btn-cta-header {
    flex-shrink: 0;
  }
  .lang-switch {
    margin-left: auto;
  }
}

@media (min-width: 1560px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .nav {
    order: 0;
    flex: 0 1 auto;
  }
  .nav ul {
    gap: 4px 14px;
  }
  .lang-switch {
    margin-left: 0;
  }
}

/* Hero spaziale — scena SVG animata solo CSS (build_sito.py: visual_hero).
   Ciclo 12 s: 0–5 s orbita e rotazione · 5–7 s convergenza nel simbolo 2x2 ·
   7–10 s simbolo fermo con glow corallo · 10–12 s riapertura in orbita.
   Stato base (attributi SVG) = simbolo ricomposto: è ciò che vede chi ha
   prefers-reduced-motion, perché la regola globale sopra azzera le animazioni. */

.hero-spazio .hs-orb {
  animation: hs-orb 12s linear infinite;
}

.hero-spazio .hs-travel {
  animation: hs-travel 12s infinite;
}

.hero-spazio .hs-self {
  animation: hs-self 12s linear infinite;
}

.hero-spazio .hs-glow {
  opacity: 0.6;
  animation: hs-glow 12s ease-in-out infinite;
}

.hero-spazio .hs-shoot {
  opacity: 0;
  animation: hs-shoot 12s linear infinite;
}

.hero-spazio .hs-shoot-2 {
  animation-delay: -6s;
}

.hero-spazio .hs-run {
  animation: hs-run var(--hs-p, 12s) linear infinite;
}

.hero-spazio .hs-tw {
  animation: hs-tw var(--hs-p, 4s) ease-in-out infinite;
  animation-delay: var(--hs-l, 0s);
}

@keyframes hs-orb {
  0% { transform: rotate(0deg); }
  41.67% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hs-travel {
  0%,
  41.67% {
    transform: translate(var(--ox), var(--oy)) scale(var(--os));
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }
  58.33%,
  83.33% {
    transform: translate(var(--gx), var(--gy)) scale(1);
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }
  100% {
    transform: translate(var(--ox), var(--oy)) scale(var(--os));
  }
}

@keyframes hs-self {
  0% { transform: rotate(0deg); }
  41.67% { transform: rotate(720deg); }
  100% { transform: rotate(720deg); }
}

@keyframes hs-glow {
  0%,
  41.67% { opacity: 0; }
  58.33%,
  83.33% { opacity: 0.6; }
  100% { opacity: 0; }
}

@keyframes hs-shoot {
  0%,
  58% {
    opacity: 0;
    transform: translate(0, 0);
  }
  62% {
    opacity: 1;
    transform: translate(0, 0);
  }
  74%,
  100% {
    opacity: 0;
    transform: translate(-150px, 56px);
  }
}

@keyframes hs-run {
  to { transform: rotate(360deg); }
}

@keyframes hs-tw {
  0%,
  100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Hero con video di sfondo (testo crema su inchiostro, contrasto AA) */
.hero-video {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--pk-color-blu-inchiostro);
  color: var(--pk-color-crema);
}
.hero-video .hv-still,
.hero-video .hv-still img,
.hero-video .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* KRE-890: colori del video ammorbiditi finché non viene riesportato con i colori nuovi */
.hero-video .bg-video,
.hero-video .hv-still img{ filter:saturate(.55); }
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 24, 59, 0.88) 0%, rgba(23, 24, 59, 0.7) 40%, rgba(23, 24, 59, 0) 65%);
}
.hero-video .hv-text {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-video .hv-text > div { max-width: 520px; }
.hero-video h1,
.hero-video .lead { color: var(--pk-color-crema); }
@media (max-width: 700px) {
  .hero-video { align-items: flex-start; min-height: 620px; }
  .hero-video::after {
    background: linear-gradient(180deg, rgba(23, 24, 59, 0.85) 0%, rgba(23, 24, 59, 0.55) 45%, rgba(23, 24, 59, 0) 70%);
  }
  .hero-video .hv-text { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video .bg-video,
  .hero-video .hv-toggle { display: none; }
}
/* Focus chiaro sull'hero scuro (WCAG 1.4.11): crema su inchiostro */
.hero-video :focus-visible {
  outline-color: var(--pk-color-crema);
}
/* Pausa/riproduci animazione di sfondo (WCAG 2.2.2), bersaglio 44px */
.hero-video .hv-toggle {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pk-color-crema);
  border-radius: 999px;
  background: var(--pk-color-blu-inchiostro);
  color: var(--pk-color-crema);
  cursor: pointer;
}
.hero-video .hv-toggle .hv-icon {
  width: 14px;
  height: 16px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}
.hero-video .hv-toggle[aria-pressed="true"] .hv-icon {
  width: 0;
  height: 0;
  border: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid currentColor;
  margin-left: 3px;
}

/* Selettore lingua (KRE-444): IT · EN · SQ, lingua attiva marcata con aria-current */
.lang-switch ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--pk-color-blu-inchiostro);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pk-color-corallo-pragma);
  text-decoration-thickness: 3px;
}

.lang-switch a[aria-current="true"] {
  background: var(--pk-color-blu-inchiostro);
  color: var(--pk-color-crema);
}

@media (max-width: 899px) {
  .lang-switch {
    order: 2;
  }
  .nav,
  .btn-cta-header {
    min-width: 0;
  }
  .nav ul {
    flex-wrap: wrap;
  }
  .nav a,
  .footer-inner,
  .hero h1,
  .card h3,
  .step-card h3,
  .box h2,
  .box h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
}

.field-check input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--pk-color-blu-inchiostro);
}

.field-check label {
  font-weight: 400;
}

.field-check .field-error {
  grid-column: 2;
}

/* Schema 9 riquadri (cosa-consegniamo): tutte le regole sotto il prefisso .schema-* */

.schema-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.schema-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.schema-head h3 {
  margin: 0;
}

.schema-icon {
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--pk-color-corallo-pragma);
}

.schema-label {
  margin: 0 0 4px;
  font-family: var(--pk-font-body);
  font-size: var(--pk-size-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schema-text {
  margin: 0;
}

.schema-mark {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* Prima: grigio AA su bianco (#5A5B6E = 6.65:1), piccolo, barrato */
.schema-before {
  margin-bottom: 12px;
  color: #5A5B6E;
  font-size: var(--pk-size-small);
  line-height: var(--pk-line-height-testi);
}

.schema-before .schema-label {
  color: #5A5B6E;
}

.schema-before .schema-text {
  text-decoration: line-through;
}

.schema-before .schema-mark {
  color: #5A5B6E;
}

/* Da oggi: testo principale, piu grande, segno nel colore marchio */
.schema-after {
  color: var(--pk-color-blu-inchiostro);
}

.schema-after .schema-label {
  color: #5A5B6E;
}

.schema-after .schema-text {
  font-size: 18px;
  font-weight: 600;
  line-height: var(--pk-line-height-testi);
}

.schema-after .schema-mark {
  color: var(--pk-color-corallo-pragma);
}

/* Tu fai solo: fascia in fondo, a tutta larghezza, allineata tra i riquadri */
.schema-only {
  margin-top: auto;
  margin-right: -24px;
  margin-bottom: -24px;
  margin-left: -24px;
  padding: 16px 24px 18px;
  border-radius: 0 0 22px 22px;
  background: var(--pk-color-lime-spunta);
  color: var(--pk-color-blu-inchiostro);
}

.schema-only .schema-label {
  color: var(--pk-color-blu-inchiostro);
}

.schema-only .schema-text {
  font-size: 18px;
  font-weight: 600;
  line-height: var(--pk-line-height-testi);
}

/* KRE-1685: hero 3D (Three.js). Palco fisso 1640×624 scalato da hero-3d-sito.js (--h3d-s, --h3d-x).
   Da 1280 px: testi sopra la scena come nel banner. Sotto: testi in colonna, poi la parte destra della scena (robot). */
.hero-3d {
  --h3d-s: 1;
  --h3d-x: 0px;
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(231, 238, 241, 0.95) 0%, rgba(231, 238, 241, 0) 70%),
    radial-gradient(70% 90% at 100% 100%, rgba(243, 230, 225, 0.9) 0%, rgba(243, 230, 225, 0) 70%),
    #FBF7F2;
  color: #1E2A3B;
}
.hero-3d .h3d-cornice { position: relative; max-width: 1920px; margin: 0 auto; }
.hero-3d .h3d-finestra { position: relative; overflow: hidden; pointer-events: none; }
.hero-3d .h3d-palco {
  position: absolute;
  left: 0;
  top: 0;
  width: 1640px;
  height: 624px;
  transform: scale(var(--h3d-s)) translateX(var(--h3d-x));
  transform-origin: 0 0;
}
.hero-3d .h3d-sfondo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(231, 238, 241, 0.95) 0%, rgba(231, 238, 241, 0) 70%),
    radial-gradient(70% 90% at 100% 100%, rgba(243, 230, 225, 0.9) 0%, rgba(243, 230, 225, 0) 70%),
    radial-gradient(50% 60% at 35% 100%, rgba(243, 230, 225, 0.7) 0%, rgba(243, 230, 225, 0) 75%),
    #FBF7F2;
}
.hero-3d .h3d-poster { position: absolute; left: 0; top: 0; width: 1640px; height: 624px; max-width: none; }
.hero-3d.h3d-pronta .h3d-poster { visibility: hidden; }
.hero-3d #scena3d,
.hero-3d #scena3d canvas { position: absolute; left: 0; top: 0; width: 1640px; height: 624px; }
.hero-3d .h3d-testi { position: relative; z-index: 1; }
.hero-3d .h3d-marchio { display: flex; align-items: center; gap: 16px; }
.hero-3d .h3d-marchio img { display: block; height: 34px; width: auto; }
.hero-3d h1 {
  margin: 0;
  font: 700 69px/62px var(--pk-font-title);
  letter-spacing: -0.02em;
  color: #1E2A3B;
}
.hero-3d h1 span { display: block; }
.hero-3d h1 em { font-style: normal; color: #9A5E66; }
.hero-3d .h3d-sotto {
  margin: 0;
  font: 700 31px/1.1 var(--pk-font-title);
  letter-spacing: -0.01em;
  color: #2F5D6B;
}
.hero-3d .h3d-corpo { margin: 0; font: 400 18px/25px var(--pk-font-body); color: #1E2A3B; }
.hero-3d .h3d-corpo strong { font-weight: 600; color: #9A5E66; }
.hero-3d .h3d-garanzia { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-3d .h3d-pillola {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 4px 14px 4px 8px;
  background: #FFFFFF;
  border: 1px solid #E4DCD6;
  border-radius: 999px;
  font: 600 15.5px/1.2 var(--pk-font-body);
  color: #1E2A3B;
  box-shadow: 0 2px 8px rgba(30, 42, 59, 0.05);
}
.hero-3d .h3d-pillola svg { display: block; flex: none; }
.hero-3d .h3d-cta { margin: 0; background: #2F5D6B; border-color: #2F5D6B; color: #FFFFFF; }
@media (min-width: 1280px) {
  .hero-3d .h3d-finestra { height: calc(624px * var(--h3d-s)); }
  .hero-3d .h3d-testi {
    position: absolute;
    left: 0;
    top: 0;
    width: 660px;
    transform: translate(calc(330px * var(--h3d-s)), calc(75px * var(--h3d-s))) scale(var(--h3d-s));
    transform-origin: 0 0;
  }
  .hero-3d h1 { margin-top: 19px; white-space: nowrap; }
  .hero-3d .h3d-sotto { margin-top: 14px; }
  .hero-3d .h3d-corpo { margin-top: 14px; max-width: 470px; }
  .hero-3d .h3d-garanzia { margin-top: 17px; }
}
@media (max-width: 1279.98px) {
  .hero-3d .h3d-cornice { display: flex; flex-direction: column; }
  .hero-3d .h3d-testi { order: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 40px 20px 8px; box-sizing: border-box; }
  .hero-3d .h3d-finestra {
    order: 2;
    width: min(100%, 560px);
    margin: 0 auto;
    aspect-ratio: 680 / 624;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
  .hero-3d .h3d-sfondo { display: none; }
  .hero-3d .h3d-marchio { display: none; }
  .hero-3d h1 { font-size: clamp(38px, 9vw, 60px); line-height: 1.02; }
  .hero-3d .h3d-sotto { margin-top: 14px; font-size: clamp(21px, 4.6vw, 28px); }
  .hero-3d .h3d-corpo { margin-top: 14px; font-size: 17px; line-height: 1.5; }
  .hero-3d .h3d-garanzia { margin-top: 20px; }
}
.hero-3d :focus-visible { outline-color: #2F5D6B; }
/* Pausa/riproduci animazione 3D (WCAG 2.2.2), bersaglio 44px */
.hero-3d .h3d-toggle {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2F5D6B;
  border-radius: 999px;
  background: #FFFFFF;
  color: #2F5D6B;
  cursor: pointer;
}
.hero-3d .h3d-toggle .h3d-icona {
  width: 14px;
  height: 16px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}
.hero-3d .h3d-toggle[aria-pressed="true"] .h3d-icona {
  width: 0;
  height: 0;
  border: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid currentColor;
  margin-left: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-3d .h3d-toggle { display: none; }
}

.pres-video .pres-media { margin: 0; }
.pres-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: var(--pk-color-bianco);
}
.pres-video .pres-wide { aspect-ratio: 16 / 9; }
.pres-video .pres-tall { display: none; aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
@media (max-width: 720px) {
  .pres-video .pres-wide { display: none; }
  .pres-video .pres-tall { display: block; }
}

/* Segretaria AI h24 (KRE-4137) */
.sec-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pk-color-lime-spunta);
  color: var(--pk-color-blu-inchiostro);
  font-size: var(--pk-size-small);
  font-weight: 600;
}

.sec-list {
  margin: 0;
  padding-left: 1.2rem;
}

.sec-list li {
  margin: 0 0 8px;
}

.sec-block,
.sec-home {
  padding: 40px 0;
  background: #DDEBDD;
  color: var(--pk-color-blu-inchiostro);
}

.sec-home h2,
.sec-block h2 {
  margin: 0 0 8px;
  font-family: var(--pk-font-title);
  line-height: var(--pk-line-height-titoli);
}

.sec-trio {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.sec-trio div {
  padding: 16px 20px;
  border-radius: 22px;
  background: #ffffff;
}

.sec-trio dt {
  font-size: var(--pk-size-small);
  font-weight: 600;
}

.sec-trio dd {
  margin: 4px 0 0;
}

.sec-block .btn,
.sec-home .btn {
  min-height: 48px;
  margin: 0 12px 8px 0;
}

.sec-block a:not(.btn),
.sec-home a:not(.btn) {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  color: var(--pk-color-blu-inchiostro);
}

@media (min-width: 700px) {
  .sec-trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Prima schermata (KRE-7418): un solo pulsante principale, menu compatto su telefono. */
.btn-cta-header {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  text-decoration: underline;
  display: none;
}
.pk-data-conteggio { font-size: 0.85em; opacity: 0.8; }
@media (max-width: 899px) {
  .site-header .logo img { height: 28px; width: auto; }
  .site-header .nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px 14px; }
  .site-header .nav a { white-space: nowrap; }
  .site-header .btn-cta-header { display: none; }
}

/* KRE-6980: video 1 Segretaria AI h24 (16:9 su desktop, 9:16 su telefono) */
.sec-video { margin: 1.5rem 0; }
.sec-video video { width: 100%; height: auto; border-radius: 22px; background: #ffffff; }
.sec-video .video-tall { display: none; max-width: 320px; margin-inline: auto; }
@media (max-width: 720px) {
  .sec-video .video-wide { display: none; }
  .sec-video .video-tall { display: block; }
}
