/*
Theme Name: Libro dei Richiami (child)
Description: tema figlio per il sito del corso
*/

/* # Base
---------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: #ffffff;
  color: #2b2b2b;
  font-family: "Lato", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: clip;
}

a {
  color: #5a2d5c;
}

a:hover,
a:focus {
  color: #9c7a1e;
}

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

h1,
h2,
h3 {
  font-family: "Nunito Sans", sans-serif;
  color: #5a2d5c;
  line-height: 1.25;
  margin: 0 0 .7em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid #9c7a1e;
  outline-offset: 2px;
}

.wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.genesis-skip-link {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-shortcut {
  position: absolute !important;
  left: -9999px;
  background: #fff;
  padding: 12px 18px;
  z-index: 100;
}

.screen-reader-shortcut:focus {
  left: 10px;
  top: 10px;
}

/* # Bottoni
---------------------------------------------------------------------------- */

.button {
  display: inline-block;
  background-color: #5a2d5c;
  border: 1px solid #5a2d5c;
  border-radius: 85px;
  color: #fff !important;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  padding: 15px 35px 17px;
  text-decoration: none;
  transition: background-color .2s ease-in-out;
}

.button:hover {
  background-color: #43204a;
}

.button-large {
  font-size: 17px;
  padding: 20px 36px;
}

.button-ghost {
  background-color: transparent;
  border-color: #fff;
}

.button-outline-light {
  background-color: transparent;
  border: 2px solid #fff;
  padding: 12px 40px;
}

.button-outline-light:hover {
  background-color: #fff;
  color: #5a2d5c !important;
}

/* # Header
---------------------------------------------------------------------------- */

.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  position: relative;
  z-index: 30;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: none;
  min-height: 72px;
  padding: 10px 20px;
}

.site-logo img {
  width: 200px;
}

.nav-primary {
  margin-left: auto;
}

.genesis-nav-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.genesis-nav-menu a {
  color: #222;
  display: block;
  font-size: 15px;
  padding: 10px 18px;
  text-decoration: none;
}

.genesis-nav-menu a:hover,
.genesis-nav-menu a[aria-current] {
  color: #5a2d5c;
  box-shadow: inset 0 -2px 0 #9c7a1e;
}

.header-button {
  margin-left: 10px;
  padding: 14px 34px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #5a2d5c;
  border-radius: 40px;
  color: #5a2d5c;
  font: 700 14px "Lato", sans-serif;
  margin-left: auto;
  padding: 8px 18px;
}

/* # Hero
---------------------------------------------------------------------------- */

.front-page-hero {
  position: relative;
  color: #fff;
  min-height: 650px;
  display: flex;
  align-items: center;
}

.front-page-hero:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(25, 14, 26, .78) 0%, rgba(25, 14, 26, .45) 55%, rgba(25, 14, 26, 0) 100%);
}

.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

.front-page-hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-heading {
  color: #fff;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 300;
  max-width: 700px;
}

.hero-intro {
  font-size: 19px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 0 40px;
}

/* # Fasce home
---------------------------------------------------------------------------- */

.kicker {
  color: #5a2d5c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.kicker-gold {
  color: #8a6a12;
}

.light-heading {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 300;
}

.centered {
  text-align: center;
}

.gold-rule {
  display: block;
  width: 72px;
  height: 2px;
  background-color: #9c7a1e;
  margin: 24px auto 0;
}

.topics-strip {
  text-align: center;
  padding: 50px 16px 40px;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 48px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: #666;
  font-family: "Nunito Sans", sans-serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
}

.process-box {
  background-color: #f1e9f1;
  max-width: 1170px;
  margin: 0 auto 60px;
  padding: 70px 30px 0;
  text-align: center;
}

.photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
  position: relative;
  top: 40px;
}

.photo-card {
  display: block;
  position: relative;
  min-width: 0;
  text-decoration: none;
}

.photo-card-img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.photo-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(90, 45, 92, .88);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 2px;
  padding: 16px 10px;
  text-transform: uppercase;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1170px;
  margin: 100px auto 70px;
  padding: 0 16px;
}

.icon-card {
  background-color: #fff;
  box-shadow: 0 20px 30px rgba(90, 45, 92, .09);
  color: #5a2d5c;
  padding: 50px 24px 46px;
  text-align: center;
}

.icon-card svg {
  margin: 0 auto 24px;
}

.icon-card p {
  color: #222;
  font-size: 19px;
  margin: 0;
}

.bring-list {
  background-color: #f7f3f7;
  padding: 80px 0;
}

.bring-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.bring-items li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.bring-items svg {
  flex: 0 0 48px;
  color: #5a2d5c;
}

.bring-items h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.bring-items p {
  margin: 0;
}

.why-cards-cta {
  grid-column: 1 / -1;
  text-align: center;
  margin: 20px 0 0;
}

.ledger-band {
  background-color: #f5f5f5;
  padding: 70px 16px;
}

.ledger-band > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ledger-band .kicker,
.ledger-band .light-heading {
  text-align: center;
}

.tool-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.tool-column {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 28px 24px;
}

.tool-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #5a2d5c;
  color: #fff;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  margin-bottom: 14px;
}

.tool-column h3 {
  font-size: 21px;
}

.tool-column p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.ledger-table,
.sheet-table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  font-size: 15px;
}

.ledger-table caption {
  caption-side: top;
  color: #8a6a12;
  font-weight: 700;
  padding: 0 0 12px;
  text-align: left;
}

.ledger-table th,
.ledger-table td,
.sheet-table th,
.sheet-table td {
  border-bottom: 1px solid #e3e3e3;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.ledger-table thead th {
  background-color: #5a2d5c;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* schede */
.experience {
  max-width: 1170px;
  margin: 90px auto;
  padding: 0 16px;
}

.double-rule {
  border-top: 1px solid #5a2d5c;
  border-bottom: 1px solid #5a2d5c;
  height: 6px;
  margin: 40px 0 0;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0 40px;
}

.tab-bar button {
  background: none;
  border: 0;
  border-left: 1px solid #5a2d5c;
  color: #5a2d5c;
  cursor: pointer;
  font: 700 19px "Lato", sans-serif;
  padding: 0 16px;
}

.tab-bar button:first-child {
  border-left: 0px;
}

.tab-bar button[aria-selected="true"] {
  color: #8a6a12;
}

.tab-panel {
  display: grid;
  grid-template-columns: 48% 1fr;
  gap: 56px;
  align-items: start;
}

.tab-panel[hidden] {
  display: none;
}

.tab-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tab-panel > * {
  min-width: 0;
}

.italic-heading {
  font-size: 29px;
  font-style: italic;
  font-weight: 300;
}

/* prenotazione: markup alla gravity forms */
.booking-band {
  background-color: #4a2350;
  color: #fff;
  padding: 70px 0;
  margin-top: 120px;
}

.booking-band .light-heading {
  color: #fff;
}

.booking-band .kicker-gold {
  color: #e2c46f;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 50px;
  align-items: center;
}

.booking-grid > * {
  min-width: 0;
}

.booking-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: -20px 20px 40px rgba(0, 0, 0, .3);
  transform: rotate(-3deg);
}

.gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.gfield {
  position: relative;
}

.gfield_wide {
  grid-column: 1 / -1;
}

.gfield_label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gfield_optional {
  font-weight: 400;
  opacity: .8;
}

.gfield input[type="text"],
.gfield input[type="email"],
.gfield select {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 0px;
  background-color: #fff;
  color: #222;
  font: 16px "Lato", sans-serif;
  padding: 12px 40px 12px 12px;
}

.gfield .is-invalid {
  border-color: #ffb4a8;
}

.gfield_check {
  position: absolute;
  right: 12px;
  top: 41px;
  width: 18px;
  height: 18px;
}

.gfield.is-valid .gfield_check:after {
  content: "\2713";
  color: #1d7a3a;
  font-weight: 700;
}

.gfield_error {
  color: #ffd2c9;
  font-size: 14px;
  margin: 2px 0 6px;
  min-height: 21px;
}

.gfield_consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.gfield_consent a {
  color: #e2c46f;
}

.gfield_consent input {
  margin-top: 6px;
}

.gfield_hidden_trap {
  display: none !important;
}

.gform_footer {
  text-align: right;
}

.gform_status {
  min-height: 28px;
  margin: 14px 0 0;
  font-weight: 700;
}

/* appunti */
.notes {
  max-width: 1170px;
  margin: 90px auto;
  padding: 0 16px;
}

.note-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 50px;
}

.note-card {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.note-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 26px;
}

.note-date {
  display: block;
  color: #8a6a12;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 10px;
}

.note-title {
  font-family: "Nunito Sans", sans-serif;
  font-size: 20px;
  line-height: 1.4;
}

/* faq su due colonne, senza accordion */
.faq-columns {
  max-width: 1170px;
  margin: 0 auto 90px;
  padding: 0 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
  margin: 40px 0 0;
}

.faq-entry {
  border-top: 1px solid #ddd;
  padding-top: 18px;
}

.faq-entry dt {
  color: #5a2d5c;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-entry dd {
  margin: 0 0 16px;
}

.faq-note {
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

/* # Pagine interne
---------------------------------------------------------------------------- */

.page-banner {
  background-color: #f1e9f1;
  padding: 70px 0 54px;
  text-align: center;
}

.page-banner .entry-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 300;
}

.page-banner-lead {
  font-size: 19px;
  max-width: 720px;
  margin: 0 auto;
}

.content {
  max-width: min(860px, 100%);
  margin: 0 auto;
  padding: 50px 16px 80px;
}

.entry-content h2 {
  font-size: 1.7rem;
  font-weight: 300;
  margin-top: 44px;
}

.wide-image {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  margin: 36px 0;
}

.sheet-table th {
  width: 40%;
  color: #5a2d5c;
}

.legal-qa {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 8px;
}

.legal-qa h2 {
  font-size: 23px !important;
  margin-top: 30px;
}

.legal-page .page-banner {
  padding-bottom: 40px;
}

.inner-page .content {
  padding-top: 40px;
}

/* # Footer
---------------------------------------------------------------------------- */

.site-footer {
  background-color: #241326;
  color: #e9dfe9;
  font-size: 15px;
  padding: 60px 0 30px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget a,
.footer-link-button {
  color: #fff;
}

.footer-widget img {
  width: 200px;
  margin-bottom: 18px;
}

.widget-title {
  color: #e2c46f;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-link-button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-align: left;
}

.long-mail {
  overflow-wrap: anywhere;
}

.footer-credits {
  border-top: 1px solid #4a3a4c;
  margin: 40px 0 0;
  padding-top: 20px;
  text-align: center;
}

/* # Barra cookie
---------------------------------------------------------------------------- */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background-color: #241326;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}

.cookie-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 18px 16px;
}

.cookie-bar-text {
  flex: 1 1 420px;
  margin: 0;
  font-size: 15px;
}

.cookie-bar a {
  color: #e2c46f;
}

.cookie-bar-options {
  flex-basis: 100%;
}

.cookie-bar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-bar .button {
  font-size: 14px;
  padding: 10px 22px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
  }
  .nav-primary.is-open {
    display: block;
  }
  .genesis-nav-menu {
    flex-direction: column;
    padding: 10px 0;
  }
  .header-button {
    display: none;
  }
  .photo-cards,
  .bring-items,
  .why-cards,
  .tool-columns,
  .note-cards,
  .faq-grid,
  .tab-panel,
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .photo-cards {
    top: 0;
    padding-bottom: 30px;
  }
  .tab-panel {
    gap: 24px;
  }
  .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }
  .booking-photo {
    max-width: 360px;
    transform: none;
  }
}

@media only screen and (max-width: 641px) {
  body {
    font-size: 16px;
  }
  .front-page-hero {
    min-height: 560px;
  }
  .front-page-hero:after {
    background: rgba(25, 14, 26, .62);
  }
  .hero-intro {
    font-size: 17px;
  }
  .process-box {
    padding: 50px 16px 0;
  }
  .tab-bar button {
    font-size: 16px;
    padding: 4px 10px;
  }
  .gform_fields {
    grid-template-columns: 1fr;
  }
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  .site-logo img {
    width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
