/* ==========================================================================
   pages/home.css
   Eccezioni della pagina home.
   Caricato da 1 pagina.
   ========================================================================== */

p {
  margin-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--acc);
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: .6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom-right-radius: 4px;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 0;
}

.hero {
  color: #fff;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  min-width: 220px;
  padding: 14px 28px;
  font-size: .97rem;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}

.hero-btns .btn-w {
  background: var(--grad-btn-avorio);
  color: #102235;
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 16px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.92),0 0 0 1px rgba(212,180,109,.20);
  font-weight: 800;
}

.hero-btns .btn-w:hover,
.hero-btns .btn-w:focus-visible {
  background: var(--grad-btn-avorio-hover);
  color: #0d2135;
  border-color: rgba(255,255,255,.99);
  box-shadow: 0 20px 38px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.94),0 0 0 1px rgba(212,180,109,.30);
}

.hero-btns .btn-o {
  background: linear-gradient(180deg,#466892 0%,#2f527a 100%);
  color: #f9fcff;
  border: 1px solid rgba(213,225,240,.42);
  box-shadow: 0 14px 28px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.12),0 0 0 1px rgba(24,54,88,.18);
}

.hero-btns .btn-o:hover,
.hero-btns .btn-o:focus-visible {
  background: linear-gradient(180deg,#5074a0 0%,#365b85 100%);
  color: #ffffff;
  border-color: rgba(225,235,247,.54);
  box-shadow: 0 18px 32px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.14),0 0 0 1px rgba(24,54,88,.24);
}

.hero .orari {
  opacity: .72;
}

.section.alt {
  background: var(--bg2);
}

.section.alt + .section {
  border-top: none;
}

.section + .section.alt {
  border-top: none;
}

.wrap {
  margin: 0 auto;
}

.section h2::after {
  margin: 10px auto 0;
}

.form-msg:not(.is-hidden) {
  display: block;
}

.foot-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 28px;
}

.foot-grid .footer-heading {
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.foot-grid a {
  display: block;
  padding: 2px 0;
}

.foot-bottom a {
  margin: 0 6px;
}

.wa-float.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.is-hidden {
  display: none;
}

#studio .studio-foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#studio .studio-foto {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  display: flex;
  flex-direction: column;
}

#studio .studio-foto-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

#studio .studio-foto-cap {
  padding: 13px 16px 15px;
  color: #556070;
}

:root {
  --v3-canvas: var(--v2-canvas);
  --v3-surface: var(--v2-surface);
  --v3-surface-soft: var(--v2-surface-soft);
  --v3-ink: var(--v2-ink);
  --v3-heading: var(--v2-heading);
  --v3-muted: var(--v2-muted);
  --v3-link: var(--v2-blue-link);
  --v3-gold: var(--v2-gold-text);
  --v3-border: var(--v2-border-strong);
  --v3-radius-card: var(--v2-radius-lg);
  --v3-radius-card-large: 20px;
  --v3-shadow-card: var(--v2-shadow-card-strong);
  --v3-cover-bg: var(--v2-cover-bg);
  --v3-cover-glow: var(--v2-cover-glow);
  --v3-max-wide: var(--v2-max-wide);
  --v3-max-content: var(--v2-max-content);
  --v3-gap: 1rem;
  --v3-white: #fff;
  --v3-on-dark-soft: rgba(255,255,255,.72);
  --v3-contact-bg: linear-gradient(135deg,#0c2035 0%,#173c61 100%);
}

body.page-index.v2-editorial {
  background: var(--v3-canvas);
  color: var(--v3-ink);
}

body.page-index.v2-editorial main>.section {
  padding: clamp(4.5rem,7vw,6.6rem) 1.5rem;
}

body.page-index.v2-editorial main>.section>.wrap {
  max-width: var(--v3-max-content);
}

.v3-section-label {
  color: var(--v3-gold);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.page-index.v2-editorial main>.section h2,
.v3-contact h2 {
  font-family: var(--v2-serif);
  letter-spacing: -.018em;
  color: var(--v3-heading);
  text-align: center;
}

.v3-section-intro {
  color: var(--v3-muted);
}

.v3-section-cta a,
.v3-inline-links a {
  font-size: .84rem;
  font-weight: 800;
  color: var(--v3-link);
}

body.page-index.v2-editorial .v3-cover {
  position: relative;
  padding: clamp(4rem,7vw,6.8rem) 1.4rem;
  background: var(--v3-cover-bg);
  text-align: center;
}

.v3-cover::before {
  content: "";
  position: absolute;
  inset: -18rem -12rem auto auto;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  background: var(--v3-cover-glow);
  pointer-events: none;
}

.v3-cover__inner {
  position: relative;
  z-index: 1;
  max-width: var(--v3-max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: clamp(3rem,6vw,5.5rem);
  align-items: center;
}

.v3-cover__copy {
  min-width: 0;
  text-align: center;
}

.v3-cover__eyebrow {
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.page-index.v2-editorial .v3-cover h1 {
  margin: 0;
  font-family: var(--v2-serif);
  color: #fff;
}

.v3-cover__role {
  margin: .8rem 0 .65rem;
  font-family: var(--v2-serif);
  font-weight: 600;
}

.v3-cover__lead {
  margin: 0 0 1.55rem;
}

body.page-index.v2-editorial .v3-cover__actions {
  justify-content: center;
  margin: 0 0 .95rem;
}

.v3-cover__meta {
  margin: 0 !important;
  text-align: center;
}

.v3-cover__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v3-cover__portrait-link {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  box-shadow: 0 28px 62px rgba(0,0,0,.28),0 0 0 1px rgba(212,180,109,.11);
}

.v3-cover__portrait-link img {
  display: block;
  aspect-ratio: 479/609;
  background: rgba(255,255,255,.025);
}

.v3-cover__portrait-caption {
  margin-top: -1px;
  padding: .92rem 1rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(7,19,31,.78);
  color: #fff;
}

.v3-cover__portrait-caption strong,
.v3-cover__portrait-caption span {
  display: block;
}

.v3-cover__portrait-caption strong {
  font-family: var(--v2-serif);
  font-size: 1.22rem;
}

.v3-cover__portrait-caption span {
  margin-top: .22rem;
  color: rgba(255,255,255,.67);
  font-size: 12px;
  line-height: 1.45;
}

.v3-identity {
  background: #fff;
}

.v3-identity__grid {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(280px,.85fr);
  gap: 1.2rem;
  align-items: stretch;
}

.v3-author-card,
.v3-studio-card {
  border: 1px solid var(--v2-border-strong);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow-card-strong);
}

.v3-author-card {
  padding: clamp(1.7rem,3vw,2.5rem);
}

.v3-studio-card {
  padding: clamp(1.55rem,2.4vw,2rem);
  background: #f7f9fc;
}

.v3-card-kicker {
  margin: 0 0 .65rem;
  color: var(--v2-gold-text);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.v3-author-card h3,
.v3-studio-card h3 {
  margin: 0 0 1rem;
  font-family: var(--v2-serif);
  font-weight: 600;
  color: var(--v2-heading);
}

.v3-author-card>p:not(.v3-card-kicker),
.v3-studio-card p {
  color: var(--v2-muted);
}

.v3-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
}

.v3-studio-card>a {
  display: inline-block;
  margin-top: .5rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--v2-blue-link);
}

.v3-journal__grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: var(--v3-gap);
}

.v3-journal-feature,
.v3-journal-item {
  border: 1px solid var(--v3-border);
  border-radius: 19px;
  background: var(--v3-surface);
  box-shadow: var(--v3-shadow-card);
}

.v3-journal-feature {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.75rem,3vw,2.5rem);
  border-top: 3px solid #c5a14c;
}

.v3-journal__secondary {
  display: grid;
  gap: var(--v3-gap);
}

.v3-journal-item {
  padding: 1.5rem;
}

.v3-journal-tag {
  display: block;
  margin-bottom: .75rem;
  color: var(--v3-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.v3-journal-feature h3,
.v3-journal-item h3 {
  margin: 0 0 .8rem;
  font-family: var(--v2-serif);
  color: var(--v3-heading);
  font-weight: 600;
}

.v3-journal-feature p,
.v3-journal-item p {
  color: var(--v3-muted);
}

.v3-journal-feature a,
.v3-journal-item a {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 800;
  color: var(--v3-link);
}

.v3-books {
  background: #fff;
}

.v3-books__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.2rem;
}

.v3-book {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--v2-border-strong);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow-card-strong);
}

.v3-book--primary {
  background: linear-gradient(145deg,#fbfaf6 0%,#fff 52%,#f7f9fc 100%);
}

.v3-book__cover {
  display: block;
}

.v3-book__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 600/853;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(16,32,50,.18);
}

.v3-book__meta {
  display: block;
  margin-bottom: .45rem;
  color: var(--v2-gold-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.v3-book h3 {
  margin: 0 0 .6rem;
  font-family: var(--v2-serif);
  color: var(--v2-heading);
}

.v3-book p {
  margin: 0 0 1rem;
  color: var(--v2-muted);
}

.v3-orientation__grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--v3-gap);
}

.v3-orientation-card {
  padding: 1.55rem;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-card);
  background: var(--v3-surface);
  box-shadow: 0 10px 24px rgba(17,37,58,.05);
}

.v3-orientation-card>span {
  display: block;
  margin-bottom: .75rem;
  color: var(--v3-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.v3-orientation-card h3 {
  margin: 0 0 .7rem;
  font-family: var(--v2-serif);
  color: var(--v3-heading);
}

.v3-orientation-card p {
  margin: 0 0 1rem;
  color: var(--v3-muted);
}

.v3-orientation-card a {
  font-size: .8rem;
  font-weight: 800;
  color: var(--v3-link);
}

.v3-orientation__note {
  color: var(--v3-muted);
}

.v3-orientation__note a {
  font-weight: 800;
}

.v3-place {
  background: #fff;
}

.v3-contact {
  padding: 3.2rem 1.5rem;
  background: var(--v3-contact-bg);
  color: var(--v3-white);
}

.v3-contact__inner {
  max-width: var(--v3-max-content);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2rem;
  align-items: center;
}

.v3-contact .v3-section-label {
  text-align: center;
  color: #e0c57b;
}

.v3-contact h2 {
  color: var(--v3-white);
  text-align: center;
}

.v3-contact p {
  margin: 0;
  color: var(--v3-on-dark-soft);
}

.v3-contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}

.v3-contact__actions a {
  font-size: .84rem;
  font-weight: 700;
}

.v3-contact__actions a:not(.v3-contact__primary) {
  color: var(--v3-white);
}

.v3-contact__primary {
  color: #0a1628;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: var(--v3-white);
}

body.page-index.v2-editorial .v3-cover #hero-title {
  font-size: clamp(3.6rem,6.6vw,6rem) !important;
  line-height: .9 !important;
  letter-spacing: -.035em;
  text-align: center;
}

.v3-author-card h3,
.v3-studio-card h3 {
  text-wrap: balance;
}

body.page-index.v2-editorial .v3-cover__portrait-link img.glb-portrait-full {
  --hero-media-max-height: none;
  --hero-media-max-height-mobile: none;
  --hero-media-width: 100%;
  --hero-media-width-mobile: 100%;
}

@media (max-width: 768px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #studio .studio-foto-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .v3-cover__inner {
    grid-template-columns: minmax(0,1fr) 255px;
    gap: 2.2rem;
  }
  .v3-identity__grid {
    grid-template-columns: 1.35fr .9fr;
  }
  .v3-books__grid {
    grid-template-columns: 1fr;
  }
  .v3-journal__grid {
    grid-template-columns: 1fr;
  }
  .v3-journal__secondary {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .v3-orientation__grid {
    grid-template-columns: 1fr 1fr;
  }
  .v3-orientation-card:last-child {
    grid-column: 1/-1;
  }
}

@media (max-width: 740px) {
  body.page-index.v2-editorial .v3-cover {
    padding: 3.5rem 1rem 3.8rem;
  }
  .v3-cover__inner {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }
  .v3-cover__copy {
    text-align: center;
  }
  body.page-index.v2-editorial .v3-cover__actions {
    justify-content: center;
  }
  .v3-cover__visual {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .v3-identity__grid,
  .v3-orientation__grid {
    grid-template-columns: 1fr;
  }
  .v3-orientation-card:last-child {
    grid-column: auto;
  }
  .v3-journal__secondary {
    grid-template-columns: 1fr;
  }
  .v3-contact__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .v3-contact .v3-section-label,
  .v3-contact h2 {
    text-align: center;
  }
  .v3-contact__actions {
    align-items: center;
  }
  .v3-contact {
    padding: 2.8rem 1rem;
  }
  body.page-index.v2-editorial main>.section {
    padding: 3.8rem 1rem;
  }
  body.page-index.v2-editorial .v3-cover #hero-title {
    text-align: center !important;
    font-size: 3.15rem !important;
  }
}

@media (max-width: 480px) {
  .v3-cover__visual {
    max-width: 220px;
  }
  .v3-author-card,
  .v3-studio-card,
  .v3-journal-feature,
  .v3-journal-item,
  .v3-orientation-card {
    padding: 1.25rem;
  }
  .v3-book {
    grid-template-columns: 92px minmax(0,1fr);
    gap: 1rem;
    padding: 1.15rem;
  }
  .v3-inline-links {
    gap: .55rem 1rem;
  }
}

@media (max-width: 360px) {
  .v3-book {
    grid-template-columns: 1fr;
  }
  .v3-book__cover {
    max-width: 120px;
  }
  .v3-book__copy {
    min-width: 0;
  }
  body.page-index.v2-editorial .v3-cover #hero-title {
    font-size: 2.75rem !important;
  }
}
