/*
Theme Name: DTS
Theme URI: 
Author: Sacha
Author URI: https://sachabenda.com
Description: Tema per la Di Traverso School
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: powder
Text Domain: dts
Tags: one-column, wide-blocks, 
*/
/* Defaults
---------------------------------------- */
html {
  scroll-behavior: smooth;
}

button {
  cursor: pointer;
}

body b, body strong {
  font-weight: var(--wp--custom--font-weight--bold);
}

/* Header
---------------------------------------- */
header .wp-block-navigation > .wp-block-navigation-item.has-child {
  line-height: 2.3;
}

header .wp-block-navigation-submenu li {
  line-height: 1.1;
}

.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
  padding-left: 20px;
  padding-right: 20px;
}

/* ======================================= */
/* 1. STICKY HEADER BASE STYLES */
/* ======================================= */
/* Target the specific Group block you added the class to */
.homepage-header.sticky-header,
.main-header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Set the initial transparent background and padding (matching your HTML) */
  background-color: rgba(28, 28, 28, 0); /* Initial fully transparent state */
  padding-top: 30px;
  padding-bottom: 30px;
  /* Transition for a smooth effect */
  transition: background-color 0.4s ease, padding 0.4s ease;
}
@media (min-width: 690px) {
  .homepage-header.sticky-header nav > ul.wp-block-navigation__container > li.wp-block-navigation-item,
  .main-header.sticky-header nav > ul.wp-block-navigation__container > li.wp-block-navigation-item {
    text-shadow: 1px 1px 3px black;
  }
  .homepage-header.sticky-header ul.wp-block-navigation__submenu-container > li,
  .main-header.sticky-header ul.wp-block-navigation__submenu-container > li {
    text-shadow: none;
  }
}

.logged-in .homepage-header {
  margin-top: 32px !important;
}

.homepage-header {
  position: fixed;
  z-index: 2;
}

main {
  margin-top: -131px;
}

/* ======================================= */
/* 2. SCROLLED (SOLID) STATE */
/* ======================================= */
/* This class is added by the JavaScript */
.homepage-header.sticky-header.scrolled,
.main-header.sticky-header.scrolled {
  background-color: var(--wp--preset--color--custom-verde-scuro) !important; /* Solid color (e.g., your initial color, but fully opaque) */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: A visible shadow */
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.homepage-header.sticky-header.scrolled .wp-block-site-logo.is-default-size img,
.main-header.sticky-header.scrolled .wp-block-site-logo.is-default-size img {
  width: 100px;
}
.homepage-header.sticky-header.scrolled nav .wp-block-navigation-item,
.main-header.sticky-header.scrolled nav .wp-block-navigation-item {
  font-size: var(--wp--preset--font-size--tiny);
}

/* ======================================= */
/* 3. VISIBILITY & COLOR CORRECTIONS */
/* ======================================= */
/* Ensure the logo/site-title links are visible (assuming light text on dark/transparent) */
.homepage-header.sticky-header a,
.main-header.sticky-header a {
  transition: color 0.4s ease;
}

/* Ensure the navigation links are visible on the transparent background */
.homepage-header.sticky-header .wp-block-navigation-item__label,
.homepage-header.sticky-header .wc-block-mini-cart__button .wc-block-mini-cart__icon {
  transition: color 0.4s ease;
}

/* If you want the links to change color when scrolled */
/* Pages
---------------------------------------- */
/* Homepage */
.home.logged-in .homepage-header,
.page-template-pagina-creator.logged-in .homepage-header {
  margin-top: 32px !important;
}

/* YITH Bookings
---------------------------------------- */
.yith-booking-meta .yith-booking-checkin, .yith-booking-meta .yith-booking-checkout {
  text-align: left;
}

.yith-wcbk-booking-search-form .select2-container--default .select2-selection--multiple {
  height: 45px;
}

.yith-wcbk-booking-search-form.yith-wcbk-booking-search-form--horizontal-layout {
  flex: 1;
  width: 100%; /* Ensures consistency across browsers */
}

body .yith-wcbk-booking-search-form .yith-wcbk-booking-search-form__row > p {
  display: none;
}
body .yith-wcbk-booking-search-form .yith-wcbk-booking-search-form__row__label {
  margin: 0.8em 0px 0.2em;
  margin-top: 0;
}
body .yith-wcbk-booking-search-form .yith-wcbk-booking-search-form__row.yith-wcbk-booking-search-form__row--submit {
  max-width: 110px;
}

.single-product .yith-wcbk-booking-form {
  display: flex;
  flex-direction: column;
}
.single-product .yith-wcbk-booking-form .yith-wcbk-form-section-dates-wrapper {
  order: 1;
}
.single-product .yith-wcbk-booking-form .yith-wcbk-form-section-persons-wrapper {
  order: 2;
}
.single-product .yith-wcbk-booking-form .yith-wcbk-form-section-services-wrapper {
  order: 3;
}
.single-product .yith-wcbk-booking-form .yith-wcbk-form-section-resources-wrapper {
  order: 4;
}
.single-product .yith-wcbk-booking-form .yith-wcbk-form-section.yith-wcbk-form-section-totals {
  order: 5;
}
.single-product .yith-wcbk-booking-form .yith-wcbk-booking-form-message {
  order: 6;
}

/* YITH Gift Cards
---------------------------------------- */
.gift-cards_form > h3 {
  margin-top: 0em;
  margin-bottom: 1em;
}

.gift-cards-list button {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: var(--wp--preset--font-size--medium);
}

/* YITH Bookings
---------------------------------------- */
/* Custom Formatting
---------------------------------------- */
.custom-column-space-between > .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-centered-item {
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.grid-centered-item .wp-block-group {
  flex: 1 1 300px;
  max-width: 300px;
}

@media (max-width: 689px) {
  .grid-centered-item {
    flex-direction: column;
    align-items: center;
  }
  .grid-centered-item > .wp-block-group {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}
.is-style-spacer-dark {
  content: "";
  display: block;
  position: relative;
}
.is-style-spacer-dark:before {
  content: "";
  background-image: url(https://dtsadv.local/wp-content/uploads/2025/12/decoration_top.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-size: cover;
  height: 100px;
  width: 100%;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}
.is-style-spacer-dark:after {
  content: "";
  background-image: url(https://dtsadv.local/wp-content/uploads/2025/12/decoration_bottom.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-size: cover;
  height: 100px;
  width: 100%;
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 0;
}

.is-style-spacer-gray {
  content: "";
  display: block;
  position: relative;
}
.is-style-spacer-gray:before {
  content: "";
  background-image: url(https://b2639710.smushcdn.com/2639710/wp-content/uploads/2017/07/decoration_bottom_gray.png?lossy=1&strip=1&webp=1);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-size: cover;
  height: 100px;
  width: 100%;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

/** Sticky Elements **/
.breadcrumb-sticky {
  top: calc(0px + var(--wp-admin--admin-bar--position-offset, 0px));
  position: -webkit-sticky;
  position: sticky;
  z-index: 51;
}

/*Form block*/
.wp-block-form input {
  width: auto;
}

/* Woocommerce
---------------------------------------- */
.woocommerce {
  /* Custom Product Hero - Built on Cover Block Structure */
  /* Full width alignment */
  /* Hero title styling */
  /* Hero subtitle styling */
  /* Content wrapper spacing */
  /* Responsive adjustments */
  /*Shop Page grid*/
}
.woocommerce.woocommerce-account .wp-block-post-title, .woocommerce.woocommerce-account main .woocommerce, .woocommerce.woocommerce-cart .wp-block-post-title, .woocommerce.woocommerce-cart main .woocommerce, .woocommerce.woocommerce-checkout .wp-block-post-title, .woocommerce.woocommerce-checkout main .woocommerce {
  max-width: 1280px;
}
.woocommerce .wp-block-woocommerce-product-image-gallery {
  max-width: 100%;
}
.woocommerce.single-product .woocommerce.product {
  margin-top: 0;
}
.woocommerce .custom-product-hero.wp-block-cover {
  margin-bottom: 60px;
  min-height: 65vh;
  aspect-ratio: unset;
}
.woocommerce .custom-product-hero.wp-block-cover::before {
  bottom: 0;
  left: 0;
  opacity: 0.5;
  position: absolute;
  right: 0;
  top: 0;
  content: "";
  z-index: 1;
}
.woocommerce .custom-product-hero.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.woocommerce .custom-product-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}
.woocommerce .custom-product-hero .hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin: 0;
  color: #ffffff;
}
.woocommerce .custom-product-hero .wp-block-cover__inner-container {
  padding: 2rem 1rem;
  max-width: 1200px;
  width: 100%;
}
@media (max-width: 768px) {
  .woocommerce .custom-product-hero.wp-block-cover {
    min-height: 300px;
  }
}
.woocommerce i.wp-block-post {
  display: flex;
  flex-direction: column;
}
.woocommerce .wp-block-post_product_group_outer {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.woocommerce .wp-block-post_product_group_outer > .wp-block-group {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.woocommerce .wp-block-post_product_group_outer > .wp-block-group .wp-block-button {
  margin-top: auto;
}
.woocommerce.sptpro-smart-tabs.single-product.sptpro-tabs-loaded .woocommerce-tabs .accordion-header {
  color: var(--wp--preset--color--contrast);
  background-color: var(--wp--preset--color--secondary);
}
.woocommerce.sptpro-smart-tabs.single-product.sptpro-tabs-loaded .woocommerce-tabs .accordion-header.active {
  color: var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--contrast);
}

html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper #tab-description, html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel#tab-additional_information, html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel#tab-reviews, html body.woocommerce .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .sp-tab__tab-content {
  font-size: var(--wp--preset--font-size--medium) !important;
}

/*# sourceMappingURL=style.css.map */