/*
Theme Name:   Stefano Nazzi
Description:  Tema figlio North (Ensoul) di Twenty Twenty-Five per il sito di Stefano Nazzi. Nato dallo starter North; colori, tipografia, spaziature e gutter arrivano dai design token del plugin North (uploads/north/north-variables.css, opzione ensoul_design_tokens), ricavati dal Figma "Stefano Nazzi" (proposta orizzontale). Qui vivono solo le regole proprie del sito.
Tags: Tailwind, Accessibility, Custom Menu, Custom Logo, Editor Style, Featured Images, Site Editor, Block Editor Patterns, Wide Blocks, Block Editor Styles, Accessible, Blog, Blocks
Author:       Ensoul
Template:     twentytwentyfive
Version:      0.1.0
Text Domain:  stefanonazzi
North Starter: 1.1.0
*/

/* body {
  overflow-x: hidden;
} */

:root {
  --spacing-button-default: 80px;
}

#inactivity_message {
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  color: #999;
  padding: 0 2rem;
  text-align: center;
}

.sticky {
  position: sticky;
  top: 20px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border-width: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

header.wp-block-template-part {
  position: fixed;
  left: 0;
  margin: 0;
  z-index: 50;
  width: 100%;
}

.mobile-header-logo {
  width: 158px;
}

.ens-btn.ens-btn-secondary {
  --btn-font-size: 30px;
  font-weight: normal;
  line-height: 1.1;
  text-transform: uppercase;
  font-family: 'League Gothic';
  border-radius: 0;
  border: 2px solid #000;
  padding: 0.4em 0.6em;
  --color-button-hover: #fff;
  --color-button-background-hover: var(--wp--preset--color--secondary-500);
}

@media(max-width: 767px) {
  .ens-btn.ens-btn-secondary {
    font-size: 24px;
  }
}

.ens-btn.ens-btn-primary {
  text-transform: uppercase;
  font-family: 'League Gothic';
  font-weight: normal;
  line-height: 1.1;
  border-radius: 0;
  padding: 0.5em 0.7em;
  font-size: 16px;
  --color-button-hover: #fff;
  --color-button-background-hover: var(--wp--preset--color--secondary-500);
}

.ens-btn.ens-btn-tertiary {
  text-transform: uppercase;
  font-family: 'League Gothic';
  font-weight: normal;
  line-height: 1.1;
  border-radius: 0;
  padding: 0.5em 0.7em;
  font-size: 16px;
  --color-button-hover: #fff;
  --color-button-background-hover: var(--wp--preset--color--secondary-500);
}

@media(max-width: 767px) {
  .ens-btn.ens-btn-tertiary {
    text-transform: none;
    font-family: 'Inter';
    font-weight: bold;
    padding: 0.7em 0.6em;
    font-size: 14px;
    border-radius: 8px;
  }
}

@media(min-width: 768px) {
  header.wp-block-template-part {
    width: 65px;
  }

  section.header-group {
    width: 65px;
    margin: 0;
  }
}

.hamburger-container {
  justify-content: center;
}

.menu-close-btn,
.menu-open-btn {
  cursor: pointer;
}


.menu-close-btn,
.menu-opened .menu-open-btn {
  display: none;
}

.menu-opened .menu-close-btn {
  display: flex;
}

/* The parent theme outlines anything focused, mouse clicks included: keep the
   ring for keyboard users only. */
.menu-open-btn:focus:not(:focus-visible),
.menu-close-btn:focus:not(:focus-visible) {
  outline: none;
}

/* The skip link (initSkipLink in frontend.js) focuses the second slide only so
   tabbing goes on from there: no ring around the whole slide. */
.layout_slider .swiper-slide[tabindex="-1"]:focus {
  outline: none;
}

#mobile-header-group {
  position: relative;
  z-index: 50;
}

@media(max-width: 767px) {
  section.menu-nav-panel {
    position: fixed;
    z-index: 1;
    top: 0;
    height: 100vh;
    padding-top: 50px;
    overflow: auto;
    background: black;
    transform: translate(0, -100%);
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
  }

  .menu-opened section.menu-nav-panel {
    transform: translate(0, 0);
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
  }
  
}

section.menu-nav-panel > div {
  transition: visibility .51s;
  visibility: hidden;
}

.menu-opened section.menu-nav-panel > div {
  transition: visibility 0s;
  visibility: visible;
}


@media(min-width: 768px) {
  section.menu-nav-panel {
    position: fixed;
    z-index: 1;
    top: 0;
    height: 100vh;
    padding-left: 50px;
    overflow: auto;
    background: black;
    transform: translate(calc(-100% + 66px), 0);
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
    border-right: 1px solid #fff;
  }

  .menu-opened section.menu-nav-panel {
    transform: translate(0, 0);
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
  }

  section.menu-nav-panel p span {
    font-size: 48px;
  }
  
  .ticket-icon {
    width: 56px;
  }
}

@media(max-width: 767px) {
  .ticket-icon,
  .menu-open-btn,
  .menu-close-btn {
    width: 30px
  }
}

.menu-nav-panel a {
  transition: color .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.menu-nav-panel a:hover {
  color: var(--wp--preset--color--secondary-500);
}

@media (prefers-reduced-motion: reduce) {
  section.menu-nav-panel,
  .menu-opened section.menu-nav-panel {
    transition: none;
  }
}

/* The North button block inherits the body serif; the design sets every button in Inter Bold. */
.ens-btn {
  font-family: var(--wp--preset--font-family--inter);
  letter-spacing: 0.02em;
}

@media(min-width: 768px) {
  .group-full-height-desktop > .ensoul-group {
    height: 100vh;
  }
}

@media(max-width: 767px) {
  .group-full-height-mobile > .ensoul-group {
    height: 100vh;
  }
}

@media(max-width: 767px) {
  div.home-sl-1-wrapper-group > div {
    padding-inline: 24px;
    padding-top: 100px;
  }

  .home-sl-1-foto {
    position: absolute;
    bottom: 0;
    right: -127px;
    width: auto;
    height: 60vh;
    aspect-ratio: 1200 / 1079;
    max-height: 100vh;
    z-index: 2;
  }
}

@media(min-width: 768px) {

  div.home-sl-1-wrapper-group > div {
    --spacing-group-y: 40px;
    padding-inline: calc(2vw + 80px);
  }

  .home-sl-1-foto {
    position: absolute;
    bottom: 0;
    right: calc(-313px + 26vw);
    width: auto;
    height: 59vw;
    aspect-ratio: 1200 / 1079;
    max-height: 100vh;
  }
}

.home-sl-1 h1.home-sl-1-title {
  --tw-leading: 0.8;
}

@media(min-width: 768px) {
  .home-sl-1 h1.home-sl-1-title {
    position: relative;
    top: 12%;
    left: 4%;
    --text-heading-2xl: 12vw;
  }
  
  .home-sl-2-title span {
    font-size: 12vw;
  }
}

.home-sl-1-stefano-text span, .home-sl-1-nazzi-text span {
  font-size: 362px;
  line-height: 1;
}
.home-sl-1-nazzi-text {
  position: relative;
}

.cta-biglietti {
  position: absolute;
  top: 15px;
  right: 90px;
  z-index: 20;
}

.cta-biglietti svg {
  transition: transform .9s cubic-bezier(0.24, 0.55, 0, 0.89);
}

.cta-biglietti:hover svg {
  transform: translate(8px, 0);
}

.cta-biglietti svg path {
  fill: none;
}

.cta-biglietti svg path,
.cta-biglietti svg rect {
 transition: all .3s ease-in-out;
}

.cta-biglietti:hover svg path {
  stroke: #fff;
}

.cta-biglietti:hover svg rect {
  fill: #fff;
}

.wp-block-ensoul-button.cta-biglietti button {
  --btn-font-size: 19px;
  box-shadow: 0px 0px 8px #00000063;
}

@media(max-width: 767px) {
  div.home-sl-2-wrapper-group > div {
    padding: 100px 0 0;
  }
}


@media(min-width: 768px) {
  div.home-sl-2-wrapper-group > div {
    padding: 135px 50px 35px 171px;
  }
}

@media(min-width: 768px) {
  .home-sl-2-foto {
    position: absolute;
    bottom: 0;
  }
  
  .home-sl-2-foto figure {
    position: static;
  }
 
  .home-sl-2-foto img {
    height: 81vh;
    position: absolute;
    bottom: 0;
    width: auto;
    left: calc(100px + 9%);
  }
}

@media(max-width: 767px) {
  .home-sl-2-foto img {
    height: 44vh;
    position: relative;
    width: auto;
    margin-top: -35px;
  }
}

.home-sl-2-par {
  width: 288px;
}

.libro-card {
  position: absolute;
  bottom: 25px;
  right: 80px;
  width: auto;
  z-index: 20;
  border-radius: 8px;
}

.libro-card--text-col {
  padding: 0;
}

.libro-card--image {
  width: 218px;
}

.libro-card-title span {
  line-height: 1.2;
}

@media(max-width: 767px){
  .libro-card-title {
    width: 84%;
  }
  
  .libro-card {
    right: auto;
    left: 24px;
    bottom: 48px;
    max-width: calc(100% - 48px);
  }

  .libro-card--image {
    width: 114px;
  }
}

section.libro-card--text {
  --spacing-group-y: 16px;
  overflow: hidden;
  max-width: 0;
  max-height: 0;
}

.libro-cta-columns-mobile {
  overflow: hidden;
  max-height: 0;
}

@media(min-width: 768px){
  .libro-card--text.ensoul-group > div {
    width: 333px;
  }

  .home-sl-4 {
    padding: 135px 50px 35px;
  }

  .home-sl-5 {
    padding: 80px 80px 50px 100px;
    height: 100vh !important;
  }

  .home-sl-3,
  .home-sl-5,
  .home-sl-6,
  .home-sl-7,
  .home-sl-8 {
    width: auto;
    padding: 80px 145px 24px 145px;
    height: 100vh !important;
  }

  .home-sl-9 {
    padding: 80px 145px 0px;
    height: 100vh !important;
  }
}

@media(max-width: 767px) {
  .home-sl-3,
  .home-sl-5,
  .home-sl-6,
  .home-sl-7,
  .home-sl-8,
  .home-sl-9 {
    width: auto;
    padding: 60px 24px;
  }
}

.home-sl-9 > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.strappo-sx {
  position: absolute;
  top: 0;
  left: -31px;
  min-height: 100vh;
  z-index: 20;
  width: auto;
}

.strappo-sx.strappo-sx-podcast {
  left: -46px;
}

.strappo-dx {
  position: absolute;
  top: 0;
  right: -4px;
  min-height: 100vh;
  z-index: 20;
  width: auto;
}

.home-sl-5 .strappo-dx,
.home-sl-7 .strappo-dx  {
  right: -10px;
}

.home-sl-6 .strappo-dx {
  right: -2px;
}

@media(max-width: 767px) {
  .strappo-sx,
  .strappo-dx {
    display: none;
  }
}

.strappo-alto {
  position: absolute;
  top: -32px;
  left: 0;
  width: 100vw;
  z-index: 20;
}

.strappo-alto-2 {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100vw;
  z-index: 20;
}

.strappo-basso {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100vw;
  z-index: 20;
}

@media(min-width: 768px) {
  .strappo-alto,
  .strappo-alto-2,
  .strappo-basso {
    display: none;
  }
}

.home-sl-5-title span,
.home-sl-6-title span {
  line-height: 1;
}

@media(min-width: 767px) {
  .home-sl-5 {
    --spacing-container-content-padded: 1600px;
  }
  
  .home-sl-5-columns .ensoul-columns-block {
    --spacing-columns: 135px;
    flex-wrap: nowrap;
  }
  
  .home-sl-5-sx-col {
    width: 530px !important;
  }

  .home-sl-5-title {
    margin-bottom: -20px;
  }

  .home-sl-6-title {
    margin-bottom: -20px;
  }

  .home-sl-5-image img {
    width: auto;
    height: calc(100vh - 228px);
    aspect-ratio: 351 / 490;
    object-fit: contain;
  }
}

@media(max-width: 767px) {
  .home-sl-5,
  .home-sl-6 {
    --spacing-content-padding: 0;
  }
}

@media(min-width: 767px) {
  .home-sl-6 {
    --spacing-container-content-padded: none;
  }

  .home-sl-6-dx-col,
  .home-sl-7-col,
  .home-sl-8-col {
    --spacing-columns-y: 12px;
  }
}

@media(min-width: 768px) {
  .home-sl-6-columns,
  .home-sl-7-columns,
  .home-sl-8-columns {
    --spacing-columns: 80px;
  }
  
  .home-sl-6-image img {
    width: auto;
    height: calc(100vh - 248px);
  }
}

@media(max-width: 767px) {
  .home-sl-6-dx-col {
    width: 100% !important;
  }

  
  .home-sl-6-columns .ensoul-columns-block,
  .home-sl-7-columns .ensoul-columns-block,
  .home-sl-8-columns > .ensoul-columns-block {
    gap: 70px;
  }
}

.home-sl-8-image img {
  border-radius: 8px;
}

@media(min-width: 768px) {
  .home-sl-7-image img {
    width: auto;
    height: calc(100vh - 366px);
    border-radius: 8px;
  }

  .home-sl-8-image img {
    width: auto;
    height: calc(100vh - 354px);
  }

  .date-tour-columns .ensoul-columns-block {
    column-gap: 154px;
  }

  .home-sl-8-text-columns > .ensoul-columns-block {
    display: block;
    max-width: none;
  }
  
  .home-sl-8-text-columns p.tv-program-par {
    min-height: 70px;
  }

  .home-sl-8-text-sx-column {
    float: left;
    width: 30%;
    margin-right: 50px;
  }

  .home-sl-2-inner-group {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .home-sl-2-inner-group > div {
    gap: 19vh;
  }
}

@media(min-width: 1600px) {
  .home-sl-2-inner-group {
    right: 6%;
  }
}

@media(max-height: 779px) {
  .home-sl-8-col {
    width: calc((100vh - 253px) / 0.8) !important;
  }

  .home-sl-8-text-sx-column {
    margin-right: 16px;
  }

  .home-sl-8-image img {
    height: calc(100vh - 364px);
  }
}

@media(max-width: 767px) {
  section.home-sl-2-inner-group {
    margin-top: -108px;
  }
}

.has-cormorant-garamond-font-family {
  line-height: 1.1;
}

@media(min-width: 1400px) and (min-height: 850px) {
  .home-sl-2-title {
    position: absolute;
  }

  .home-sl-2-title span,
  .home-sl-2-title-2 span {
    font-size: 6.5vw;
    line-height: 1;
  }
}

@media(max-width: 767px) {
  .home-sl-2-title span {
    font-size: 92px;
  }

  .home-sl-2-title-2 span {
    font-size: 23.6vw;
  }
}

.evento_weekday {
  font-weight: bold;
}

@media(min-height: 950px) {
  .tour-event-title span {
    font-size: 10vh;
    line-height: 1;
  }

  .tour-event-date span {
    font-size: 4vh;
    line-height: 1;
  }
}

section:has(>.tour-event-row) {
  min-width: 750px;
}

.ql-template-home-eventi li {
  overflow: hidden;
  margin: 0;
  --spacing-container-content: 100%;
}

.ql-template-home-eventi > li .tour-event-title span {
  transition: color .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.ql-template-home-eventi > li:hover .tour-event-title span {
  color: var(--wp--preset--color--secondary-500);
}

@media(min-width: 768px) {
  .ql-template-home-eventi {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0 154px;
    height: calc(100vh - 106px);
  }

  .ql-template-home-eventi > :first-child {
    grid-row-start: 2;
  }

  .ql-template-home-eventi li {
    --spacing-container-content: 1220px;
    width: 1220px;
  }

  .home-eventi-first-column {
    width: 280px !important;
  }

  /* .ql-template-home-eventi:has(> :nth-child(5)) {
    min-width: 2415px;
  }

  .ql-template-home-eventi:has(> :nth-child(9)) {
    min-width: 3706px;
  } */

  .home-sl-3-title {
    position: absolute;
    left: -250px;
  }
}

.tour-event-column-2 {
  flex: 1 37%;
}

.tour-event-row .ensoul-columns-block {
  --spacing-content-padding: 0;
}

.ql-template-home-eventi li {
  display: flex;
  align-items: center;
  border-top: 1px solid #000;
}

@media(max-width: 767px) {
  .ql-template-home-eventi li > div > .ensoul-columns-block {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
    display: grid;
  }

  .ql-template-home-eventi li > div > .ensoul-columns-block > .ensoul-column-wrapper:last-child {
    grid-column: span 2;
  }
}

.ql-template-home-eventi li:nth-child(3),
.ql-template-home-eventi li:nth-child(7),
.ql-template-home-eventi li:nth-child(11) {
  border-bottom: 1px solid #000;
}

.tour-event-row button {
  font-weight: bold;
}

@media (width >= 768px) {
  .tour-event-row .tour-event-column-2 {
    width: 49%;
  }
}

.home-sl-9-big-title-image figure {
  height: calc(100vh - 520px);
  display: flex;
  justify-content: center;
  position: relative;
}

.home-sl-9-big-title-image figure img {
  object-fit: contain;
}

/* Home entrance: hidden from the first paint until initHomeEnterAnimations()
   (frontend.js) starts. The class is set in <head> by functions.php, on every
   page: the header is hidden only where the home's first slide is. */
@media (prefers-reduced-motion: no-preference) {
  .home-enter-pending body:has(.home-sl-1) header.wp-block-template-part,
  .home-enter-pending .home-sl-1,
  .home-enter-pending .home-sl-1-foto figure,
  .home-enter-pending .cta-biglietti,
  .home-enter-pending .libro-card,
  .home-enter-pending .home-sl-1-stefano,
  .home-enter-pending .home-sl-1-nazzi,
  .home-enter-pending .home-sl-1-stefano-text,
  .home-enter-pending .home-sl-1-nazzi-text,
  .home-enter-pending .title-reveal-animation,
  .home-enter-pending .svg-title-reveal-animation {
    opacity: 0;
  }
}

/* Title reveal (initTitleReveal in frontend.js): letters rise one after the
   other from under a mask. The word clips, the letter moves; the padding and
   matching negative margin give accents and descenders room inside the mask. */
.rv-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.04em 0.16em;
  margin: -0.12em -0.04em -0.16em;
}

/* The start is a full box plus 0.5em: with a tight line-height the box is shorter
   than the glyph, and a plain percentage left the top of the letter peeking out. */
.rv-char {
  display: inline-block;
  transform: translate3d(0, calc(100% + 0.5em), 0);
}

.is-revealing .rv-char {
  transform: none;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--i) * 32ms);
  will-change: transform;
}

.is-revealed .rv-char {
  transform: none;
}

/* Mask off once revealed, so glyphs reaching past the padding aren't cut for good. */
.is-revealed .rv-word {
  overflow: visible;
}

/* SVG title reveal (initSVGTitleReveal in frontend.js): same motion for the
   <path>s, which start just below their own box and are clipped by the SVG
   viewport. `translate` rather than `transform` keeps any transform attribute
   from the export; fill-box makes the percentage the path's own height. Only
   once the JS has set things up (.svg-reveal-ready) are the paths hidden. */
.svg-reveal-ready path {
  transform-box: fill-box;
  translate: 0 110%;
}

.svg-reveal-ready.is-revealing path {
  translate: none;
  transition: translate 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--i) * 32ms);
  will-change: translate;
}

.svg-reveal-ready.is-revealed path {
  translate: none;
}

/* The plain title text for screen readers; the split letters are aria-hidden. */
.title-reveal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Below 768px the home slider is switched off (SLIDER_MIN_WIDTH in frontend.js)
   and the slides stack for the normal page scroll. The !important rules beat the
   inline sizes and transforms Swiper leaves on the wrapper, slides and parallax
   elements. Being a media query, the layout is right before the JS runs too. */
@media (max-width: 767.98px) {
  .layout_slider > .swiper {
    height: auto !important;
  }

  .layout_slider > .swiper > .swiper-wrapper {
    flex-direction: column;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .layout_slider > .swiper > .swiper-wrapper > .swiper-slide {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  .layout_slider [data-swiper-parallax],
  .layout_slider [data-swiper-parallax-x] {
    transform: none !important;
  }
}

.home-sl-7-zero {
  overflow: hidden;
}

.home-sl-7-zero-title {
  position: absolute;
  z-index: 2;
  left: 13vw;
  top: 50%;
  transform: translate(0,-50%);
  padding: 0;
  margin: 0;
  width: 150px;
}

.home-sl-7-zero-title span {
  line-height: 1.1;
}

/* Mobile: portrait crop of the landscape photo, framed on the face, with the
   title large in the bottom-left corner. */
@media (max-width: 767px) {
  .home-sl-7-zero > div {
    padding-block: 0;
  }

  .home-sl-7-zero-image img {
    aspect-ratio: 4 / 7;
    height: auto;
    max-height: 100svh;
    object-fit: cover;
    object-position: 67% 50% !important;
  }

  .home-sl-7-zero-title {
    top: auto;
    bottom: 24px;
    left: 24px;
    transform: none;
    width: min(75vw, 476px);
  }

  .home-sl-7-zero-title span {
    font-size: min(22vw, 140px);
    line-height: 1;
  }
}


@media (min-width: 768px) {
  .home-sl-7-zero-title {
    width: 520px;
  }
  
  .home-sl-7-zero-title span {
    line-height: 1;
  }

  .home-sl-7-zero-image {
    height: 100vh;
    width: auto;
  }

  .home-sl-7-zero-image figure {
    display: flex;
    justify-content: flex-end;
  }
}

.home-sl-9-big-title-img-desktop {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .home-sl-9-big-title-img-desktop {
    display: none;
  }
}

@media (min-width: 767px) {
  .home-sl-9-big-title-img-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-links {
    position: absolute;
    bottom: 15px;
    right: 22px;
  }

  .home-sl-9-big-title-img-mobile {
    max-width: 90%;
  }

  .profeti-del-buio-links-mobile {
    --spacing-block-gap: 6px;
  }
}
