/*
Theme Name: Villa Giovanna Theme
Text Domain: villagiovannasilverhotel.com
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.0.0
Description:  La Santeria - Wordpress Custom Theme
Author: Jacopo Zangrilli
Author URI: http://visualjack.it/
Theme URI: https://villagiovannasilverhotel.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

*/

:root {
    --custom-primary: #63897c;
    --custom-secondary: #d3cf92;
    --custom-dark: #3c3c3b;
    --custom-light: #f4f4f4;
    --custom-font-normal: 'Bariol Regular', sans-serif;
    --custom-font-bold: 'Bariol Bold', sans-serif;

}

body {
    font-family: var(--custom-font-normal);
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--custom-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.small-text {
    font-size: 80%;
}


/* COLORS */
.custom-color-primary {
    color: var(--custom-primary);
}
.custom-color-light {
    color: var(--custom-light);
}
.custom-color-secondary {
    color: var(--custom-secondary);
}
.custom-bg-light {
    background-color: var(--custom-light);
}
.custom-bg-primary {
    background-color: var(--custom-primary);
}
.custom-bg-secondary {
    background-color: var(--custom-secondary);
}

.custom-color-light.custom-font-bold strong {
    color: var(--custom-secondary);
}

/* FONTS */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--custom-font-bold);
}

.custom-font-bold {
    font-family: var(--custom-font-bold);
}

.rich-text-light h1,
.rich-text-light h2,
.rich-text-light h3,
.rich-text-light h4,
.rich-text-light h5,
.rich-text-light h6 {
    text-transform: uppercase;
    color: var(--custom-primary);
}

.rich-text-dark h1,
.rich-text-dark h2,
.rich-text-dark h3,
.rich-text-dark h4,
.rich-text-dark h5,
.rich-text-dark h6 {
    text-transform: uppercase;
    color: var(--custom-secondary);
}

.rich-text-dark p {
    color: var(--custom-light);
}

.rich-text-dark ul {
    color: var(--custom-light);
    text-align: left;
}

/* BUTTONS */
.custom-btn {
    display: inline-block;
    padding: 15px 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--custom-font-bold);
}

.custom-btn-100 {
    width: 100%;  
}

.custom-btn-primary {
    background-color: var(--custom-primary);
    color: var(--custom-light);
    transition: background-color 0.3s ease-in-out;
}
.custom-btn-primary:hover {
    background-color: var(--custom-light);
    color: var(--custom-primary);
}

.custom-btn-light {
    background-color: var(--custom-secondary);
    color: var(--custom-primary);
    transition: background-color 0.3s ease-in-out;
}
.custom-btn-light:hover {
    background-color: var(--custom-light);
    color: var(--custom-primary);
}

.custom-btn-secondary {
    background-color: var(--custom-secondary);
    color: var(--custom-primary);
    transition: background-color 0.3s ease-in-out;
}
.custom-btn-secondary:hover {
    background-color: var(--custom-primary);
    color: var(--custom-secondary);
}

/* NAVBAR */

/* Centrare il logo e i menu su desktop */
.navbar { 
    min-height: 200px;
}

.navbar-nav {
    flex-grow: 1;
    justify-content: space-evenly;
    margin: 0 110px;
}
.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--custom-font-bold);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--custom-primary);
}

.nav-link:focus, .nav-link:hover {
    color: var(--custom-secondary);
}

/* Nasconde il menu desktop quando si attiva il mobile */
@media (max-width: 991px) {
    .mobile-margin-top {
        padding-top: 100px;
    }
    
    .desktop-menu {
        display: none;
    }
    .navbar {
        min-height: 100px;
        position: fixed;
        z-index: 9999;
        width: 100%;
        top: 0;
    }
    .navbar-brand img {
        height: 75px;
    }
}

#offcanvasMenu {
    margin-top: 95px;
    width: 280px;
    max-width: 100%;
}

#offcanvasMenu .navbar-nav {
    margin: 0;
}

/* SLIDER */
/* Stile dello slider */
.swiper-container {
    width: 100%;
    max-height: 500px;
    height: 50vh;
    position: relative;
}


/* Personalizzazione dei pallini Swiper */
.swiper-pagination {
    text-align: right !important;
    padding-right: 20px;
}

.swiper-pagination-bullet {
    background: var(--custom-light) !important;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--custom-secondary) !important;
}

/* EXPERIENCE */
.swiper-experience .swiper-slide {
    position: relative;
}

.swiper-experience .swiper-wrapper {
    height: auto;
}

.experience-img {
    min-height: 100%;
}

.experience-box {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px;
}


@media (max-width: 991px) {
    .experience-box {
        position: relative;
        width: 100%;
        min-height: 550px;
    }
    .experience-img {
        width: 100%;
        min-height: auto;
        height: auto;
    }
}


/* BOX ACCENT */
.box-accent {
    position: absolute;
    width: 360px;
    top: -220px;
    z-index: 999;
    padding: 40px;
}

@media (max-width: 991px) {
    .box-accent {
        position: relative;
        width: 100%;
        top: calc(var(--bs-gutter-x) * .5);
    }
}

.box-accent-icon img {
    width: 100%;
    height: auto;
}

.box-accent-txt p {
    margin-bottom: 0;
}

/* SERVICES */
.icon-service {
    display: inline-block;
    width: 120px;
    margin: 10px;
    background: var(--custom-light);
    border-radius: 50%;
    padding: 15px;
}

/* POP UP */
/* Box iniziale con testo troncato */
.text-box {
    width: 100%;
    height: 190px; /* Altezza fissa iniziale */
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
}
.text-box:not(.expanded) {
    margin-top: 20px;
    text-align: center;
    color: var(--custom-primary);
    font-family: var(--custom-font-bold);
}
.text-box:not(.expanded)::after {
    content:"";
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(0deg, rgba(255,255,255,1) 11%, rgba(255,255,255,0) 61%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,1) 11%, rgba(255,255,255,0) 61%);
    background: linear-gradient(0deg, rgba(255,255,255,1) 11%, rgba(255,255,255,0) 61%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
}

.info-box-img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Espansione a popup */
.text-box.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: auto;
    max-height: 80vh;
    background: var(--custom-primary);
    z-index: 1050;
    padding: 70px;
    text-align: center;
    overflow-y: auto;
    white-space: normal;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    font-family: var(--custom-font-bold);
    color: var(--custom-light);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1040;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pulsante di chiusura */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1051;
}

.text-box.expanded .close-btn {
    display: block;
}

/* MAP */
#map {
    min-height: 400px;
    border-radius: 10px;
}

/* FOCUS BIG */
.p-focus {
    padding: 150px 100px;
}

@media (max-width: 991px) {
    .p-focus {
        padding: 50px 50px;
    }
}

.background-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.background-slider, .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transition: opacity 1.5s ease-in-out;
}

.background-slider {
    z-index: 1;
}

.background-overlay {
    opacity: 0;
    z-index: 2;
}


/* FOCUS BOX */
.focus-box-img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
}

/* BUILDER */
.img-col img {
    width: 100%;
    height: auto;
}

.timeline-title {
    font-size: 8rem;
    font-weight: bold;
    color: var(--custom-secondary);
    transform: translateX(-110px);
}

.timeline-title-right {
    font-size: 8rem;
    font-weight: bold;
    color: var(--custom-secondary);
    transform: translateX(110px);
}

.timeline-text {
      color: var(--custom-primary);
}

.text-focus-images img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.text-focus-title {
    color: var(--custom-secondary);
    font-size: 3.8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 30px;
}

.text-focus-text {
    color: var(--custom-light);
}

.custom-bg-primary-white {
    position: relative;
}

.custom-bg-primary-white::before {
    content: "";
    background-color: #fff;
    width: 100%;
    height: 180px;
    position: absolute;
}

.custom-bg-primary-white::after {
    content: "";
    background-color: #fff;
    width: 100%;
    height: 180px;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.custom-bg-primary-white .container {
    position: relative;
    z-index: 999;
}

.text-accent-title {
    color: var(--custom-primary);
    font-size: 3.8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 30px;
}

.text-accent-text p{
    font-weight: bold;
    color: var(--custom-light);
}

.text-bullet-title {
    text-align: right;
    color: var(--custom-primary);
    font-size: 5.8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 30px;
}

.text-bullet-text ul {
    list-style: none;
    position: relative;
}

.text-bullet-text li::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    left: -20px;
    transform: rotate(45deg);
    background-color: var(--custom-secondary);
    position: absolute;
    z-index: -1;
}

.text-bullet-text li {
    position: relative;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--custom-primary);
    font-size: 2.2rem;
}

@media (max-width: 991px) {
    .text-focus-title {
        font-size: 2rem;
    }

    .custom-bg-primary-white::after {
        content: "";
        background-color: transparent;
    }
}



@media (max-width: 767px) {

    .timeline-title {
        transform: none;
        text-align: center;
    }

    .timeline-title-right {
        transform: none;
        text-align: center;
    }


    .text-accent-title {
        font-size: 2rem;
    }

    .text-bullet-title {
        font-size: 2rem;
        text-align: left;
    }

    .text-bullet-text li {
        font-size: 1.5rem;
    }

    .timeline-text {
        text-align: center;
    }

}

/* FORM */
#custom-form .nf-form-fields-required,
#custom-form .nf-field-element:after {
    display: none;
}

#custom-form input,
#custom-form textarea {
    position: relative;
    background-color: var(--custom-secondary);
    text-align: left;
    color: var(--custom-light);
    border: none;
    width: 380px;
    max-width: 100%;
    display: block;
    margin: 0 0 10px;
    height: 50px;
    padding: 10px;
}

#custom-form textarea {
    height: 150px;
}

#custom-form input::placeholder,
#custom-form textarea::placeholder {
    position: absolute;
    font-weight: bold;
    color: var(--custom-light); 
    text-transform: uppercase;
    bottom: 5px;
    left: 5px;
    font-size: 0.8rem;

}

#custom-form input[type=submit] {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    color: var(--custom-primary);
    background-color: var(--custom-light);
}

#custom-form .nf-field-label label {
    color: var(--custom-dark);
    text-align: left;
    font-size: 14px
}

#custom-form #ninja_forms_required_items, 
#custom-form .nf-field-container {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    #custom-form input,
    #custom-form textarea {
        width: 100%;
        max-width: 100%;
    }
}


/* FOOTER */
.navbar-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-footer li {
    display: inline-block;
}

.navbar-footer li a {
    padding: 10px;
    font-size: .9rem;
}


/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--custom-primary);
  padding: 1rem 0;
}

.faq-question {
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
  color: var(--custom-primary);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '–';
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  color: #444;
  margin-top: 0.5rem;
}
.faq-item.active .faq-question {
  font-weight: bold;
}

