/*
 Theme Name:   Plastimark
 Theme URI:    https://generatepress.com/
 Description:  Child theme di Plastimark
 Author:       RES
 Author URI:   https://www.visualworks.it
 Template:     generatepress
 Version:      1.0
*/

.nascondi-area-riservata  {
  display: none;
}

/* Definizione per Geomanist BOOK */
@font-face {
    font-family: 'Geomanist';
    src: url('https://plastimark.com/wp-content/uploads/2025/12/Geomanist-Regular.woff2') format('woff2'),
         url('https://plastimark.com/wp-content/uploads/2025/12/Geomanist-Regular.woff') format('woff');
    font-weight: 300; /* Qui sta la magia: Regular è 300 */
    font-style: normal;
}

/* Definizione per Geomanist REGULAR */
@font-face {
    font-family: 'Geomanist';
    src: url('https://plastimark.com/wp-content/uploads/2025/12/Geomanist-Book.woff2') format('woff2'),
         url('https://plastimark.com/wp-content/uploads/2025/12/Geomanist-Book.woff') format('woff');
    font-weight: 400; /* Book è 400 */
    font-style: normal;
}

.button {
  border-radius: 14px;
  padding: 1.2rem 2rem 1rem 2rem;
  text-transform: uppercase;
  line-height: 1;
}

.secondary-navigation {
  border-bottom: 1px solid #f4f4f4;
}

/* Wrapper sticky */
.gp-dual-sticky {
    width: 100%;
    z-index: 9999;
}

/* Stato sticky */
.gp-dual-sticky.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    background: inherit;
}

/* Spazio di compensazione */
body.has-gp-dual-sticky {
    padding-top: var(--gp-sticky-height);
}

/* WPML fix */
.secondary-navigation .wpml-ls {
    display: flex;
    align-items: center;
}


#sticky-navigation {
  margin-top: 41px !important;
  z-index: 999 !important;
}

.site-footer  {
  margin-top: 80px;
}

.overlay {
  position: relative;
  display: flex;
}

.overlay a {
  color: #ffffff !important;
}

.gform-button {
  border-radius: 14px !important;
  padding: 1.2rem 2rem 1rem 2rem !important;
  text-transform: uppercase !important;
  font-size: 17px !important;
  font-weight: 300 !important;
}

.gform-button:hover {
  background: #4a4a4a !important;
}

.wp-block-social-link {
  transition: all 0.2s ease-in-out !important;
}

.wp-block-social-link:hover {
  transform: scale(1);
  background: #4a4a4a !important;
}

.wpml-ls-menu-item .wpml-ls-flag+span {
  margin-left: .3em;
  margin-top: 5px;
  line-height: 2em;
}

.overlay-team {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
}

.overlay-team:hover {
  opacity: 0.95;
}

.vp-portfolio__item-meta-title  {
  font-size: 12px !important;
}

.vp-portfolio__item-meta  {
  padding-top: 10px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.background-video {
  position: absolute;
  opacity: 1;
}

video[poster] {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.splide__arrow  {
  background: rgba(255, 255, 255, 0.9) !important;
}

.splide__arrow:hover  {
  background: #1d6226 !important;
}

#slider-news .splide__arrow--prev {
  left: 40px !important;
}
#slider-news .splide__arrow--next {
  right: 40px !important;
}

/* Personalizzazione frecce solo per il slider singolo */
#slider-singolo .splide__arrow {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
}

#slider-singolo .splide__arrow:hover {
  background: #1d6226;
}

.splide__arrow svg {
  fill: #1D6226 !important;
  height: 1em !important;
  width: 1em !important;
}

.splide__arrow:hover svg {
  fill: #FFFFFF !important;
  height: 1em;
  width: 1em;
}

.splide__arrow--next {
  right: 0 !important;
}

.splide__arrow--prev {
    left: 0 !important;
}

/* Le frecce sono già centrate verticalmente di base, ma possiamo distanziarle dai lati */
#slider-singolo .splide__arrow--prev { left: 1rem; }
#slider-singolo .splide__arrow--next { right: 1rem; }

/* IMPORTANTE PER L'ADATTAMENTO ALTEZZA */
/* 1. Aggiungiamo una transizione fluida sull'altezza del contenitore */
#main-carousel .splide__track {
  transition: height 0.4s ease-in-out !important;
}

/* 2. L'immagine deve essere libera di estendersi in altezza */
#main-carousel .splide__slide img {
  width: 100%;
  height: auto !important; /* Fondamentale per mantenere le proporzioni */
  display: block;
  border: 1px solid transparent;
}

/* Centriamo le slide verticalmente se serve */
#main-carousel .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- STILE THUMBNAILS (Miniature) --- */
#thumbnail-carousel {
  padding: 10px 40px; /* Spazio laterale per non tagliare le miniature esterne */
}

#thumbnail-carousel .splide__slide {
  opacity: 0.5; /* Le miniature non attive sono semi-trasparenti */
  transition: opacity 0.3s;
  cursor: pointer;
  border: 2px solid transparent; /* Bordo invisibile per evitare scatti al cambio */
  border-radius: 4px;
  overflow: hidden;
}

#thumbnail-carousel .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ritaglia le miniature per farle quadrate/fisse */
  display: block;
}

/* Stile della miniatura attiva */
#thumbnail-carousel .splide__slide.is-active {
  opacity: 1; /* Completamente visibile */
}

/* Frecce del Main Slider */
#main-carousel .splide__arrow {
  background: rgba(255, 255, 255, 0.9) !important;
  width: 3.5em;
  height: 3.5em;
}

#main-carousel .splide__arrow:hover {
  background: #1d6226 !important;
}

.gdesc-inner  {
  background: #6a6a6a !important;
}

/* Sfondo scuro dietro il testo per renderlo leggibile */
.gslide-desc {
  color: #fff !important;
  text-align: center;
  font-size: 20px !important;
}

.footer-menu  {
  font-size: 16px !important;
  line-height: 1.2em !important;
}

/* Cambia il colore del testo della descrizione */
.gslide-description {
  color: #ffffff;
}

.titolo-news {
  font-size: 22px;
  margin-bottom: 10px;
}

.bottone-news {
  align-items: center;
  background-color: var(--accent);
  color: #ffffff;
  display: inline-flex;
  line-height: 1;
  font-size: 15px;
  margin-bottom: 0px;
  margin-top: 0px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 14px;
  padding: 10px 20px;
}

.post-recenti li {
    list-style-type: none;
    position: relative;
    margin-bottom: .5em;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid #000;
    display: flex;
}

.news-post-date {
  font-size: 14px;
}

.carica-news {
  border-radius: 14px !important;
}

@media(max-width: 768px) {
    .secondary-navigation {
        display: none;
    }
}

.gform_title  {
  font-size: 24px !important;
}

/* Forza la visualizzazione del form dentro il popup del catalogo */
#popup-catalogo .gform_wrapper {
    display: block !important;
    visibility: visible !important;
}

/* Se anche il footer (bottone) rimane nascosto */
#popup-catalogo .gform_footer {
    display: block !important;
}

.gform-theme--foundation .gform_fields {
    row-gap: 20px !important;
}

.gform_wrapper.gravity-theme .gfield_label  {
  color: #1d6226;
  font-weight: 400 !important;
}

.gform-field-label  {
  font-size: 15px !important;
}

.nascondi { display: none !important; }

/* Forza la visualizzazione del form dentro il popup del catalogo */
#popup-catalogo-prodotto .gform_wrapper {
    display: block !important;
    visibility: visible !important;
}

/* Se anche il footer (bottone) rimane nascosto */
#popup-catalogo-prodotto .gform_footer {
    display: block !important;
}

/* Forza la visibilità del messaggio di conferma nel popup */
#popup-catalogo-prodotto .gform_confirmation_wrapper,
#popup-catalogo .gform_confirmation_wrapper {
    display: block !important;
    color: #333 !important;
    padding: 20px !important;
    text-align: center !important;
    min-height: 100px !important;
}

/* Evita che il form sparisca lasciando il popup vuoto */
.gforms_confirmation_message {
    visibility: visible !important;
    opacity: 1 !important;
}
