/*
Theme Name: GOO · Native Block Starter
Author: Ugo
Version: 1.5.0
Text Domain: goo
Requires at least: 6.7
*/

.nbb-landing {
  max-width: 760px;
  margin: 0 auto;
}

/* Main title */

.nbb-section-title,
.nbb-main-title {
  font-weight: 700;
  line-height: 0.95;
}

.nbb-main-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

/* Section title */

.nbb-section-title {
  display: inline-block;
  position: relative;
  font-weight: 700;
  line-height: 0.95;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.7em;
  padding-bottom: 0.26em;
  background: none;
}

.nbb-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 0.28em;
  background: #ffe761;
  z-index: -1;
}

.nbb-contribute > .nbb-section-title {
  display: block;
  width: fit-content;
  max-width: none;
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right;
  margin-bottom: 40px;
}

@media (max-width: 781px) {
  .nbb-section-title {
    font-size: clamp(2.3rem, 6.5vw, 3.1rem);
    padding-bottom: 0.3em;
    line-height: 0.98;
  }

  .nbb-section-title::after {
    height: 0.24em;
    bottom: -0.15em;
  }
}

/* Quote */

.nbb-quote {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0.4em;
  font-style: normal;
}

.nbb-quote-bottom {
  font-size: 0.5rem;
}

@media (max-width: 781px) {
  .nbb-quote-bottom {
    display: block;
    width: fit-content;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    padding: 0 16px;
  }

  .nbb-quote-bottom + .nbb-quote-cite {
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.nbb-quote-cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.nbb-quote-col {
  padding-left: 30%;
  text-align: right;
}

.nbb-quote-col .nbb-quote,
.nbb-quote-col .nbb-quote-cite {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 781px) {
  .nbb-quote-col {
    padding-left: 0;
  }
}

/* Opening image */

.nbb-opening-quotes-img {
  margin-left: auto !important;
  margin-right: 0 !important;
  max-width: 90px;
}

.nbb-opening-quotes-img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 781px) {
  .wp-block-columns.nbb-intro-row.is-not-stacked-on-mobile {
    flex-wrap: nowrap !important;
    gap: 16px;
    margin-bottom: 20px;
  }

  .wp-block-columns.nbb-intro-row.is-not-stacked-on-mobile
    > .wp-block-column:first-child {
    flex-basis: 15% !important;
  }

  .wp-block-columns.nbb-intro-row.is-not-stacked-on-mobile
    > .wp-block-column:last-child {
    flex-basis: 85% !important;
  }
}

/* KIT CARD */

.nbb-kit-card,
.nbb-action-card {
  background: #ffe761;
  padding: 20px;
  text-align: center;
}

.nbb-kit-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 400;
}

.nbb-action-card h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1;
}

.nbb-action-card h3 + p {
  margin-top: 0;
}

.nbb-kit-grid {
  align-items: stretch;
}

.nbb-kit-grid > .wp-block-column {
  display: flex;
}

.nbb-kit-card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-bottom: 0 !important;
}

.nbb-kit-card .wp-block-heading,
.nbb-kit-card p {
  flex: 0 0 auto;
}

.nbb-kit-figure {
  margin-top: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: -72px !important;
  text-align: center;
}

.nbb-kit-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

/* dimensioni specifiche */
.nbb-kit-figure-zaino {
  max-width: 170px;
}

.nbb-kit-figure-book {
  max-width: 150px;
}

.nbb-kit-figure-colors {
  max-width: 190px;
}

/* spazio sotto la sezione per assorbire lo sbordo */
.nbb-welcome-kit {
  padding-bottom: 110px !important;
}

.nbb-kit-figure-zaino {
  max-width: 170px;
  margin-bottom: -68px !important;
}

.nbb-kit-figure-book {
  max-width: 140px;
  margin-bottom: -72px !important;
}

.nbb-kit-figure-colors {
  max-width: 190px;
  margin-bottom: -66px !important;
}

@media (max-width: 781px) {
  .nbb-kit-figure {
    margin-top: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .nbb-kit-figure-zaino {
    max-width: 155px;
    margin-bottom: -38px !important;
  }

  .nbb-kit-figure-book {
    max-width: 145px;
    margin-bottom: -38px !important;
  }

  .nbb-kit-figure-colors {
    max-width: 170px;
  }

  .nbb-welcome-kit {
    padding-bottom: 90px !important;
  }
}

/* Band image and footer flowers */

.nbb-band-image img,
.nbb-footer-flowers img {
  width: 100%;
  height: auto;
  display: block;
}

/* NBB Hero */

.nbb-hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 760px;
}

.nbb-hero-content {
  position: relative;
  z-index: 2;
}

.nbb-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.nbb-deco-book {
  top: 0;
  right: 0;
  width: min(42vw, 440px);
}

.nbb-deco-image,
.nbb-deco-image img,
.nbb-deco-hands-image,
.nbb-deco-hands-image img,
.nbb-logo,
.nbb-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.nbb-hero-head {
  text-align: left;
}

.nbb-hero-head .wp-block-image.nbb-logo {
  max-width: 300px;
  margin: 0 0 10px 0;
  /*margin-left: 0 !important;
  margin-right: auto !important;*/
  margin: 0 0 60px 0 !important;
}

.nbb-hero-head .wp-block-image.nbb-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nbb-main-logo,
.nbb-main-logo img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.nbb-hero-head {
  position: relative;
  z-index: 2;
}

.nbb-main-title {
  position: relative;
  z-index: 2;
  max-width: 420px;
  font-weight: 700;
  line-height: 0.9;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  margin-top: 0.15em;
  margin-bottom: 0.2em;
}

.nbb-hero-middle {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.nbb-deco-hands {
  max-width: 240px;
}

.nbb-quote {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
  max-width: 420px;
}

.nbb-quote-cite {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nbb-intro {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: auto;
}

@media (max-width: 781px) {
  .nbb-hero-stage {
    min-height: auto;
  }

  .nbb-main-title,
  .nbb-quote,
  .nbb-intro {
    max-width: none;
  }

  .nbb-hero-stage {
    min-height: auto;
    padding-top: 10px;
    overflow: hidden;
  }

  .nbb-hero-content {
    position: relative;
    z-index: 2;
  }

  .nbb-hero-head {
    position: relative;
    z-index: 3;
    margin-bottom: 10px;
  }

  .nbb-hero-head-columns {
    align-items: flex-start;
  }

  .nbb-hero-head .wp-block-image.nbb-logo {
    max-width: 150px !important;
    margin: 0 0 28px 0 !important;
  }

  .nbb-hero-head .wp-block-image.nbb-main-logo {
    max-width: 300px !important;
    margin: 0 !important;
  }

  .nbb-deco-book {
    top: 0;
    right: -55px;
    width: 250px;
    opacity: 0.95;
    z-index: 1;
  }

  .nbb-hero-middle {
    position: relative;
    z-index: 2;
  }

  .nbb-deco-hands {
    max-width: 170px;
    margin-top: 0;
    margin-left: -10px;
    margin-bottom: 0;
  }

  .nbb-quote {
    max-width: 250px;
    font-size: clamp(1.1rem, 6vw, 2rem);
    line-height: 1.05;
    margin-top: 10px;
  }

  .nbb-quote-cite {
    margin-top: 0.6rem;
    font-size: 0.8rem;
  }

  .nbb-intro {
    max-width: none;
    margin-left: 0;
    margin-top: 10px;
  }
}

/* NBB Footer */

.nbb-footer-landing {
  text-align: center;
}

.nbb-footer-landing > p {
  font-size: 1.8rem;
}

.nbb-kit-image-placeholder {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nbb-kit-image-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.nbb-quote-cite {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

@media (max-width: 781px) {
  .nbb-landing {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nbb-kit-card,
  .nbb-action-card {
    margin-bottom: 16px;
  }
}

.nbb-photo-band-text {
  font-size: clamp(1.06rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  margin-top: 20px;
  padding-bottom: 20px;
}

@media (max-width: 781px) {
  .nbb-photo-band-text {
    font-size: 1.2rem;
    line-height: 1.25;
  }
}

/* Contribute */

.nbb-contribute-grid {
  align-items: stretch;
}

.nbb-contribute-grid > .wp-block-column {
  display: flex;
}

.nbb-action-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.nbb-action-card .wp-block-buttons {
  margin-top: auto;
  justify-content: center;
}

.nbb-action-card .wp-block-button {
  margin-top: 16px;
}

.nbb-action-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nbb-action-figure {
  margin: 0 auto 16px auto !important;
  text-align: center;
}

.nbb-action-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-height: 120px;
}

.nbb-action-figure-sewing {
  max-width: 208px;
}

.nbb-action-figure-colors {
  max-width: 150px;
}

@media (max-width: 781px) {
  .nbb-action-figure-sewing {
    max-width: 208px;
  }

  .nbb-action-figure-colors {
    max-width: 150px;
  }
}

/* NBB Photo Band Slider */

.nbb-photo-slider {
  margin: 0;
}

.nbb-photo-slider .nbb-slide {
  height: 420px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.nbb-photo-slider .nbb-slide img,
.nbb-photo-slider .nbb-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 781px) {
  .nbb-photo-slider .nbb-slide {
    height: 260px;
  }
}

.nbb-photo-slider .slick-dots {
  position: static;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nbb-photo-slider .slick-dots li button:before {
  font-size: 10px;
  color: #111;
  opacity: 0.35;
}

.nbb-photo-slider .slick-dots li.slick-active button:before {
  color: #111;
  opacity: 1;
}

.nbb-photo-band {
  /*padding-bottom: 60px !important;*/
}

.nbb-slide-video-el {
  background: #000;
}

.nbb-photo-slider .slick-dots {
  margin-top: 20px;
  margin-bottom: 20px;
}

.nbb-photo-slider .slick-dots li {
  margin: 0 4px;
}

.nbb-photo-slider .slick-dots li button:before {
  font-size: 52px;
  color: #d9d9d9;
  opacity: 1;
}

.nbb-photo-slider .slick-dots li.slick-active button:before {
  color: #ffe761;
  opacity: 1;
}

.nbb-footer-logo {
  margin: 0 auto !important;
  max-width: 240px;
}

.nbb-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nbb-footer-flowers {
  margin: 0 auto !important;
  max-width: 400px;
}

.nbb-footer-flowers img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 781px) {
  .nbb-spacer {
    display: none !important;
  }
}

/* Links */

.nbb-mail-wrap a {
  color: black;
  text-decoration: none;
}
.nbb-mail-wrap a:hover {
  color: #9e9e9e;
}

.nbb-form-row a {
  color: black;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.nbb-form-row a:hover {
  color: #9e9e9e;
}
