@media (max-width: 768px) {
    .header {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
}
@media (max-width: 768px) {
    .hamburger__label {
        display: none !important;
    }
    .header-top {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
}
@media (max-width: 768px) {
    .language-selector {
        display: flex;
        gap: 10px;
        margin-bottom: 30px;
    }
}
/* Responsive: mostra/nascondi language-selector */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

@media (max-width: 768px) {
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
}
/* Galleria Jacopo: griglia immagini quadrate e allineate */
.apartment-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 immagini per riga */
    gap: 5px;
}

.apartment-thumbnail {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apartment-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #615a52;
    --color-text: #8c8c8c;
    --color-text-dark: #1a1a1a;
    --color-bg: #fff;
    --color-bg-light: #f8f8f8;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

/* Typography */
.title {
    font-family: var(--font-serif);
    font-size: clamp(35px, 30.71px + 0.95238vw, 45px);
    line-height: 1.22em;
    color: var(--color-primary);
    font-weight: 400;
}

h3 {
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: calc(1em + 8px);
}

.h4 {
    font-family: var(--font-serif);
    font-size: clamp(35px, 30.71px + 0.95238vw, 30px);
    line-height: 1.22em;
    color: var(--color-primary);
    font-weight: 400;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.2em;
    color: var(--color-primary);
    margin-top: 8px;
    font-weight: 400;
}

.text {
    font-size: clamp(14px, 13.57px + 0.09524vw, 15px);
    line-height: 1.86em;
    margin-top: 20px;
}

.link {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 15px;
    line-height: 1.66em;
    color: var(--color-primary);
    margin-top: 30px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    transition: font-weight 0.5s ease;
}

.link:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--color-primary);
    margin-right: 30px;
    transition: width 0.5s cubic-bezier(0, 0, 0.2, 1);
}

.link:hover {
    font-weight: 700;
}

.link:hover:before {
    width: 100px;
}

/* Layout utilities */
.box-sized {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}
.left {
    text-align: left;
}

/* Center flex containers */
.center .search-row-1 {
    justify-content: center;
}

/* Header */
.header {
     position: relative;
     width: 100%;
     height: 105px;
 }
 
 .header-top {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 105px;
     z-index: 12;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 58px;
     transition: background-color 0.5s cubic-bezier(0, 0, 0.2, 1);
     background-color: var(--color-bg);
 }

.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    transition: opacity 0.5s ease;
    height: 75px;
}

.header-logo--main,
.header-logo--alt {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
}

.header-logo--alt {
    opacity: 0;
}

.scrolled .header-logo--main {
    opacity: 0;
}

.scrolled .header-logo--alt {
    opacity: 1;
}

.header-logo__img {
    height: 100%;
    width: auto;
}

.scrolled .header-top {
    background-color: var(--color-bg);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-menu {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-book {
    position: relative;
    cursor: pointer;
    text-align: center;
    width: 150px;
    background-color: var(--color-primary);
    padding: 10px 0;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    transition: all 0.3s ease;
    border-radius: 25px;
}

.header-book:hover {
    background-color: #4a453f;
}

.hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.hamburger-box {
    position: relative;
    width: 24px;
    height: 27px;
    overflow: hidden;
}

.hamburger__line {
    position: absolute;
    left: 0;
    width: 24px;
    height: 1px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.scrolled .hamburger__line {
    background-color: var(--color-primary);
}

.hamburger__line:nth-child(1) { top: 4px; }
.hamburger__line:nth-child(2) { top: 13px; }
.hamburger__line:nth-child(3) { top: 22px; }

.hamburger__label {
    text-transform: uppercase;
    font-size: 15px;
    color: var(--color-primary);
    margin-top: 5px;
    transition: color 0.5s ease;
}

.scrolled .hamburger__label {
    color: var(--color-primary);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.language-flag {
    width: 30px;
    height: 20px;
    border: 1px solid rgba(97, 90, 82, 0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-flag:hover {
    background-color: rgba(97, 90, 82, 0.3);
    color: white;
}

.language-flag.active {
     background-color: rgba(97, 90, 82, 0.3);
     border-color: rgba(97, 90, 82, 0.3);
}

.scrolled .language-flag {
    border: 1px solid rgba(97, 90, 82, 0.3);
    color: var(--color-primary);
}

.scrolled .language-flag:hover {
    background-color: rgba(97, 90, 82, 0.3);
}

.scrolled .language-flag.active {
    background-color: rgba(97, 90, 82, 0.3);
    border-color: rgba(97, 90, 82, 0.3);
}

/* Gallery */
 .gallery {
     position: relative;
     width: 100%;
     height: calc(100vh - 105px);
     overflow: hidden;
 }
 
 .gallery-image {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0;
     transition: opacity 0.5s ease-in-out;
 }
 
 .gallery-image.active {
     opacity: 1;
 }
 
 .gallery-image__img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 /* Gallery Text Overlay */
 .gallery-text-overlay {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     z-index: 9;
     text-align: center;
     color: white;
     width: 90%;
     max-width: 800px;
 }

 .gallery-title {
     font-family: var(--font-serif);
     font-size: clamp(36px, 4vw, 60px);
     font-weight: 400;
     line-height: 1.2;
     margin-bottom: 0px;
     color: white;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
     opacity: 1;
 }

 .gallery-description {
     font-family: var(--font-serif);
     font-size: clamp(18px, 2vw, 26px);
     font-weight: 300;
     line-height: 1.6;
     color: white;
     text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
     opacity: 1;
 }

 @keyframes fadeInSlide {
     from {
         opacity: 0;
         transform: translateY(20px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }
 
 .header-arrow {
     position: absolute;
     left: 50%;
     bottom: 29px;
     transform: translateX(-50%);
     z-index: 8;
     cursor: pointer;
     color: #fff;
     font-size: 14px;
     animation: bounce 2s infinite;
 }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.5s ease;
}

.menu--open {
    opacity: 1;
    pointer-events: visible;
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 20;
    width: 24px;
    height: 24px;
}

.menu-close .hamburger-box {
    position: relative;
    width: 24px;
    height: 24px;
    overflow: hidden;
}

.menu-close .hamburger__line {
    position: absolute;
    left: 0;
    width: 24px;
    height: 1px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.menu-close .hamburger__line:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}

.menu-close .hamburger__line:nth-child(2) {
    top: 12px;
    transform: rotate(-45deg);
}

.menu-close .hamburger__line:nth-child(3),
.menu-close .hamburger__line:nth-child(4),
.menu-close .hamburger__line:nth-child(5) {
    opacity: 0;
}

.menu-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.menu-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.menu-top__item {
    margin-bottom: 25px;
    text-align: center;
}

.menu-top__link {
    font-size: clamp(24px, 20px + 1vw, 36px);
    color: var(--color-primary);
    line-height: 1.2em;
    text-decoration: none;
    font-family: var(--font-serif);
    transition: font-weight 0.3s ease;
    display: block;
}

.menu-top__link:hover {
    font-weight: 700;
}

/* Menu Dropdown */
.menu-top__item--dropdown {
    position: relative;
    display: inline-block;
}

.menu-top__item--dropdown > .menu-top__link {
    cursor: pointer;
}

.menu-dropdown {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 60px;
    margin-top: 7px;
    padding-left: 0;
    white-space: nowrap;
}

/* Desktop only: hide dropdown by default */
@media (min-width: 769px) {
    .menu-dropdown {
        display: none;
    }
    
    .menu-top__item--dropdown:hover .menu-dropdown {
        display: block;
    }
}

/* Area di collegamento invisibile tra menu e dropdown */
.menu-dropdown::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 60px;
}

.menu-dropdown__link {
    font-size: clamp(18px, 16px + 0.5vw, 24px);
    color: var(--color-primary);
    line-height: 1.5em;
    text-decoration: none;
    font-family: var(--font-serif);
    transition: font-weight 0.3s ease;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    position: relative;
    padding-left: 25px;
}
@media (max-width: 768px) {
    .menu-top__item {
        margin-bottom: 15px;
    }
    .menu-dropdown__link {
        margin-bottom: 5px;
    }
}

/* Linea orizzontale che collega la voce al contenuto */
.menu-dropdown__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    height: 1px;
    background-color: var(--color-primary);
    opacity: 0.5;
}

/* Linea verticale che collega le voci tra loro */
.menu-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 10px;
    width: 1px;
    opacity: 0.5;
}

.menu-dropdown__link:hover {
    font-weight: 600;
    opacity: 1;
}

.menu-dropdown__link:hover::before {
    opacity: 1;
}

/* Icona dropdown */
.dropdown-icon {
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Mobile: dropdown verticale sotto */
@media (max-width: 768px) {
    .menu-dropdown {
        position: static;
        margin-left: 0;
        margin-top: 15px;
        transform: none;
        /* Always visible on mobile - no need for display property since it's visible by default */
        transition: all 0.3s ease;
    }
    
    .menu-dropdown::before {
        display: none;
    }
    
    /* Nascondi l'icona dropdown su mobile visto che è sempre aperto */
    .dropdown-icon {
        display: none;
    }
}

@media (min-width: 769px) {
    .dropdown-icon {
        display: none;
    }
}

/* Main Content */
main {
    position: relative;
}

.box-intro {
    padding: 70px 0;
}

.box-attivita {
padding: 0;
    max-width: 1000px;
    width: 100%;
    margin: auto;
}

.box-recensioni {
    padding: 0;
    max-width: 1000px;
    width: 100%;
    margin: auto;
}

.box-intro__text {
    margin: 0 auto;
}

.box-intro .title {
    font-size: clamp(24px, 20px + 1vw, 30px);
    line-height: 1.86em;
    margin-bottom: 0px;
    margin-top: 40px;
}

.box-gallery .title {
    line-height: 1.86em;
    margin-bottom: 0px;
    margin-top: 40px;
}

.box-recensioni .title {
    line-height: 1.86em;
    margin-bottom: 0px;
    margin-top: 20px;
}

.box-intro .text {
    margin-bottom: 20px;
    margin-top: 0px;
    font-size: 16px;
}

/* Full-width image */
.full-width-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 .box-section {
     padding: 40px 0 70px 0;
 }

  .box-section-attivita {
     padding: 40px 0 0px 0;
 }
  .box-section-attivita-2 {
     padding: 0px 0 0px 0;
 }
  .box-section-attivita-2 .attivita-detail-content {
    margin-bottom: 40px;
 }

/* Apartments Section */
 .apartments-section {
     padding: 40px 0 70px 0;
 }
 .apartments-section-bck {
     background-color: var(--color-bg-light);
 }

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.apartment-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.apartment-card__image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.apartment-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.apartment-card:hover .apartment-card__image img {
    transform: scale(1.05);
}

.apartment-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px;
}

.apartment-card__title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.apartment-card__capacity {
    color: var(--color-text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.apartment-card__description {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.map-section {
    padding: 70px 0;
}


/* Services Section */
.services-section {
    padding: 70px 0;
    background-color: var(--color-bg-light);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-image {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-section {
    padding: 70px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info__item {
    margin-bottom: 40px;
}

.contact-info__item h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info__item p {
     line-height: 1.86em;
     margin-bottom: 10px;
 }
 
 .contact-social-icons {
     display: flex;
     gap: 15px;
     margin-top: 20px;
 }
 
 .contact-social-icon {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     background-color: var(--color-primary);
     border-radius: 50%;
     color: white;
     text-decoration: none;
     font-size: 18px;
     transition: all 0.3s ease;
 }
 
 .contact-social-icon:hover {
     background-color: #4a453f;
     transform: scale(1.1);
 }
 
 .contact-form {
     display: flex;
     flex-direction: column;
     gap: 20px;
 }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input,
.form-textarea {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.form-button:hover {
    background-color: #4a453f;
}

/* About Section */
.about-section {
    padding: 70px 0;
    background-color: var(--color-bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
    align-items: center;
}

.about-image {
    cursor: pointer;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Reviews Section */
.reviews-section {
     padding: 70px 0;
     background-color: var(--color-bg-light);
 }
 
 .reviews-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 30px;
     margin-top: 60px;
 }
 
 .review {
     background: var(--color-bg);
     border-radius: 8px;
     padding: 30px;
     text-align: center;
 }
 
 .review-content {
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }
 
 .review-text {
     font-style: italic;
     margin-bottom: 30px;
     font-size: 16px;
     line-height: 1.6;
 }
 
 .review-author {
     margin-top: auto;
 }
 
 .author-name {
     font-weight: 600;
     margin-bottom: 15px;
 }
 
 .rating {
     color: #ffc107;
 }

/* Footer */
 .footer {
     background-color: var(--color-primary);
     color: #fff;
     padding: 30px 0 20px;
 }
 
 .footer-content {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     gap: 40px;
 }
 
 .footer-logo {
     max-width: 200px;
     height: auto;
 }

.footer-column h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column p {
    margin-bottom: 10px;
    line-height: 1.3;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
     opacity: 0.8;
 }
 
 /* Footer Legal Info */
 .footer-legal {
     margin-top: 30px;
     padding-top: 20px;
     border-top: 1px solid rgba(255, 255, 255, 0.2);
     text-align: center;
 }
 
 .footer-legal-text {
       color: rgba(255, 255, 255, 0.7);
       font-size: 18px;
       line-height: 1.6;
       margin: 0;
   }
 
 /* Social Media Icons */
 .social-icons {
     display: flex;
     gap: 15px;
     margin-bottom: 20px;
 }
 .social-icons .fb{
    background: #0866FF;
 }
 .social-icons .instagram{
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
 }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 25px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Visit Valdambra Logo */
.visit-valdambra-logo {
    margin-top: 20px;
}

.valdambra-logo {
    max-width: 150px;
    height: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background: var(--color-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: var(--color-primary);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Form error states */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Hamburger menu animations */
.hamburger--open .hamburger__line:nth-child(1) {
    transform: translateX(100%);
    transition-delay: 0.2s;
}

.hamburger--open .hamburger__line:nth-child(2) {
    transform: translateX(100%);
    transition-delay: 0.1s;
}

.hamburger--open .hamburger__line:nth-child(3) {
    transform: translateX(100%);
    transition-delay: 0s;
}

.hamburger--open .hamburger__line:nth-child(4) {
    transform: translateX(0) rotate(-45deg);
    transition-delay: 0.5s;
}

.hamburger--open .hamburger__line:nth-child(5) {
    transform: translateX(0) rotate(45deg);
    transition-delay: 0.6s;
}

.hamburger__line:nth-child(4),
.hamburger__line:nth-child(5) {
    top: 13px;
    transform: rotate(-45deg) translateX(130%);
    transition: transform 0.3s cubic-bezier(0.65, 0.025, 0.67, 0.36) 0s;
}

.hamburger__line:nth-child(5) {
    transform: rotate(45deg) translateX(130%);
    transition-delay: 0.1s;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out forwards;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #f1f1f1;
    font-size: 18px;
    padding: 10px 0;
    margin-top: 10px;
    text-align: center;
    max-width: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    right: 10px;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Social Media Links */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp Link */
 .whatsapp-link {
     display: inline-flex;
     align-items: center;
     margin-top: 15px;
     color: #25D366;
     text-decoration: none;
     font-size: 20px;
     font-weight: 600;
     padding: 10px 15px;
     border: 2px solid #25D366;
     border-radius: 30px;
     transition: all 0.3s ease;
 }
 
 .whatsapp-link:hover {
     background-color: #25D366;
     color: white;
 }
 
 .whatsapp-icon {
     margin-left: 8px;
     font-size: 40px;
 }

 .luca-icon {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     margin-right: 10px;
     object-fit: cover;
 }

/* Map Container */
.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.valdambra-link {
    display: inline-block;
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.valdambra-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Apartment Details */
.apartment-details {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    flex: 1;
}

.apartment-details h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.apartment-details ul {
    list-style-type: none;
    padding-left: 0;
}

.apartment-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.apartment-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Move the "Link utili" and "Social" columns down by 60px */
.footer-column:nth-child(2),
.footer-column:nth-child(3) {
    margin-top: 50px;
}

.cal_btn:hover {
    background-color: #4a453f;
}
.cal_btn {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 3px 20px;
    font-family: var(--font-sans);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 0;
    width: fit-content;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        padding: 0 20px;
        height: 80px;
    }
    
    .header-logo {
        height: 62px;
    }
    
    .header-logo--main,
    .header-logo--alt {
        width: auto;
        left: calc(50% - 24px);
    }
    
    .header-logo {
        overflow-x: visible;
    }

    .header-contact {
        display: none;
    }

    .header-actions {
        gap: 20px;
    }

    .header-menu {
        order: 2;
        margin-left: auto;
        z-index: 999;
    }

    .menu-top {
        flex-direction: column;
    }

    .menu-top:before {
        display: none;
    }

    .menu-top-inner {
        width: 100%;
        padding: 40px 20px 0;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Move the "Link utili" and "Social" columns down by 60px */
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        margin-top: 0px;
    }

    .footer-column li {
        margin-bottom: 0px;
    }

    .box-intro,
    .apartments-section,
    .box-section,
    .services-section {
        padding: 10px 0;
    }

    .cal_btn {
        margin-top: 10px;
    }

    /* Gallery Text Overlay Responsive */
    .gallery-text-overlay {
        padding: 20px;
        width: 85%;
    }
    
    .gallery-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 15px;
    }
    
    .gallery-description {
        font-size: clamp(16px, 4vw, 20px);
    }
    
    #body_calendar {
        overflow-x: hidden;
        position: relative;
    }    

    .contact-content {
       grid-template-columns: 1fr;
       gap: 40px;
   }
   
   .about-content {
       grid-template-columns: 1fr;
       gap: 40px;
   }
   
   .about-image img {
       width: 100%;
       height: auto;
       border-radius: 8px;
   }
   
   /* Responsive Lightbox */
   .lightbox-content {
       width: 95%;
       height: 80%;
   }
   
   .lightbox-img {
       max-height: 70vh;
   }
   
   .lightbox-close {
       top: 10px;
       right: 15px;
       font-size: 30px;
   }
   
   .lightbox-prev, .lightbox-next {
       font-size: 24px;
       padding: 12px;
/* Map Section */
.map-section {
    width: 100%;
    margin: 0;
    padding: 0;
/* WhatsApp Icon Styles */
.whatsapp-icon {
    display: inline-block;
    background-color: #25D366;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    font-size: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.whatsapp-link:hover {
    opacity: 0.8;
}
}

.map-section .map-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.map-section .map-container iframe {
    width: 100%;
    height: 400px;
}
   }
}

/* Apartment Detail Page */
.apartment-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.apartment-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.apartment-detail-image {
     position: relative;
 }
 
 .apartment-detail-image img {
     width: 100%;
     height: auto;
     border-radius: 8px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
     cursor: pointer;
 }
 
 .apartment-thumbnails {
     display: flex;
     gap: 15px;
 }

.apartment-thumbnail {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.apartment-thumbnail.active {
    border-color: var(--color-primary);
}

.apartment-thumbnail img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 
 .apartment-gallery-prev, .apartment-gallery-next {
     position: absolute;
     top: 50%;
     width: auto;
     padding: 16px;
     margin-top: -50px;
     color: var(--color-primary);
     font-weight: bold;
     font-size: 30px;
     transition: 0.6s ease;
     border-radius: 0 3px 3px 0;
     user-select: none;
     text-decoration: none;
     cursor: pointer;
     z-index: 10;
     background-color: rgba(255, 255, 255, 0.8);
     border-radius: 50%;
     width: 50px;
     height: 50px;
     display: flex;
     align-items: center;
     justify-content: center;
 }
 
 .apartment-gallery-prev {
     left: 10px;
     border-radius: 3px 0 0 3px;
 }
 
 .apartment-gallery-next {
     right: 10px;
     border-radius: 0 3px 3px 0;
 }
 
 .apartment-gallery-prev:hover, .apartment-gallery-next:hover {
     background-color: rgba(97, 90, 82, 0.8);
     color: white;
 }
 
 .apartment-detail-info {
     display: flex;
     flex-direction: column;
     gap: 30px;
 }

.apartment-features ul,
.apartment-services ul {
    list-style: none;
    padding: 0;
}

.apartment-features li,
.apartment-services li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.apartment-features i,
.apartment-services i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.apartment-booking {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: rgba(97, 90, 82, 0.3);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #4a453f;
    border-color: #4a453f;
        color: white;

}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.apartment-additional-info {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
    padding-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.apartment-services,
.apartment-location {
    margin-top: 20px;
}

.apartment-services h3,
.apartment-location h3 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.apartment-location p {
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .apartment-detail-content {
        grid-template-columns: 1fr;
    }
    
    .apartment-additional-info {
        grid-template-columns: 1fr;
    }
    
    .apartment-booking {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Header Background for Apartment Detail Page */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    z-index: 1;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjust header top position to account for background */
.header-background + .header-top {
    position: relative;
    z-index: 2;
 
 /* Apartment Thumbnails Grid */
 .apartment-thumbnails-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 5px;
     margin-top: 30px;
 }
 
 .apartment-thumbnail.rounded {
     border-radius: 15px;
     overflow: hidden;
     cursor: pointer;
     aspect-ratio: 1/1;
 }
 
 .apartment-thumbnail.rounded img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.3s ease;
 }
 
 .apartment-thumbnail.rounded:hover img {
     transform: scale(1.05);
 }
}

/* More Projects Widget (Search Box) */
.more-projects-widget {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row-1 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: auto;
}

.search-box.single-line .search-row-1 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

#check-from, #check-to {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color 0.3s ease;
    color: var(--color-primary);
}

#check-from:focus, #check-to:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label_txt {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 16px;
}

#sel-rooms, #sel-guests, #sel-kids {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
}

#sel-rooms:focus, #sel-guests:focus, #sel-kids:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search_btn {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 34px;
    width: fit-content;
}

.search_btn:hover {
    background-color: #4a453f;
}

.search_btn p {
    margin: 0;
    font-weight: 600;
}

/* Responsive styles for the search box */
@media (max-width: 768px) {
    .more-projects-widget {
        padding: 20px;
    }
    
    .search-row-1 {
        flex-direction: column;
        gap: 15px;
    }
    
    #check-from, #check-to {
        min-width: auto;
    }
    
    .search-option {
        width: 100%;
    }
    
    #sel-rooms, #sel-guests, #sel-kids {
        width: 100%;
    }

#search-pad {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
    align-items: end;
}

.search-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label_txt {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 16px;
}

#sel-rooms, #sel-guests, #sel-kids {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-width: 100px;
}

/* Responsive styles for single-line layout */
@media (max-width: 768px) {
    #search-pad {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-option {
        width: 100%;
    }
    
    #sel-rooms, #sel-guests, #sel-kids {
        width: 100%;
    }
}
}


.apartment-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonne */
    gap: 10px; /* spazio tra le miniature */
}

.availability-form-section {
    padding: 50px 0;
}

/* Center the availability search form block */
.availability-form-section .search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Ensure the search box is centered horizontally */
.availability-form-section .box-sized {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.availability-form-section .search-row-1 {
    justify-content: center;
    flex-wrap: wrap;
}

/* Pricing Table Styles */
#tabella_prezzi,
#tabella_prezzi_mobile,
#tabella_prezzi_mobile_weekly {
    width: 100%;
    margin: 0 auto 40px;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

/* Desktop table - visible only on desktop */
#tabella_prezzi {
    display: table;
}

/* Mobile tables - hidden on desktop */
#tabella_prezzi_mobile,
#tabella_prezzi_mobile_weekly {
    display: none;
}

/* On mobile devices, hide desktop table and show mobile tables */
@media (max-width: 768px) {
    #tabella_prezzi {
        display: none !important;
    }
    
    #tabella_prezzi_mobile,
    #tabella_prezzi_mobile_weekly {
        display: table !important;
    }
}

/* Hide Low Season column in weekly mobile table */
#tabella_prezzi_mobile_weekly .stagione:first-of-type,
#tabella_prezzi_mobile_weekly .stagione.low,
#tabella_prezzi_mobile_weekly .stagione2.stag_1 {
    display: none !important;
}

/* Reduce font size for price info titles */
.tariffe .left h4.title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
}
.tariffe .text {
    margin-top: 0;
}
.tariffe ul {
    margin-left: 20px;
}

.thead_prezzi {
    /*
    background-color: var(--color-primary);
    color: white;
    */
}

.thead_prezzi .title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    padding: 20px;
    text-align: center;
}

.row_prezzi_header {
    background-color: #f8f8f8;
    font-weight: 600;
}

.row_prezzi_header td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.row_prezzi {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.row_prezzi:hover {
    background-color: #f9f9f9;
}

.row_prezzi td {
    padding: 15px 10px;
    text-align: center;
}

.nome_app {
    font-weight: 600;
    margin: 0;
}

.link_prezzi {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link_prezzi:hover {
    color: #4a453f;
    text-decoration: underline;
}

.posti {
    font-style: italic;
    color: #8c8c8c;
}

#prezzi_gg .prezzo {
    width: 66%;
}
.prezzo {
    width: 100%;
}

.stagione {
    padding: 3px 0;
}

.stagione.low {
    /*color: #28a745;*/
}

.stagione.medium {
    /*color: #ffc107;*/
}

.stagione.high {
    /*color: #dc3545;*/
}

.stagione2 {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 2px;
}

.day, .week {
    font-weight: 600;
}

/* Responsive Pricing Table */
@media (max-width: 768px) {
    #tabella_prezzi,
    #tabella_prezzi_mobile,
    #tabella_prezzi_mobile_weekly {
        font-size: 14px;
    }
    
    .thead_prezzi .title {
        font-size: 26px;
        font-weight: bold;
    }
    
    .row_prezzi td {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    #tabella_prezzi,
    #tabella_prezzi_mobile,
    #tabella_prezzi_mobile_weekly {
        display: block;
        overflow-x: auto;
    }
    
    .thead_prezzi .title {
        font-size: 26px;
        font-weight: bold;
    }

/* Full-width image section for tariffe page */
.tariffe-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 40px 0;
    position: relative;
}

.tariffe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tariffe-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.tariffe-hero-content h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tariffe-hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .tariffe-hero {
        height: 300px;
    }
    
    .tariffe-hero-content h2 {
        font-size: 28px;
    }
    
    .tariffe-hero-content p {
        font-size: 16px;
    }
}
}

.stagione {
    width: 33%;
    float: left;
    font-weight: normal;
        text-align: center;
}
.stagione2 {
    width: 33%;
    float: left;
    font-weight: normal;
    line-height: 13px;
    text-align: center;
    border-top: 1px solid #999;
    padding: 5px 0 5px 0;
}
@media (max-width: 768px) {
    .stagione {
        width: 50%;
    }
    .stagione2 {
        width: 50%;
    }
}

.clear {
    clear: both;
}
#prezzi_gg .mid, #prezzi_gg .high, .day .high, .day .mid {
    display: none;
}

td.nome_anno {
    font-size: 18px;
}
td.nome_mese, td.nome_anno {
    text-align: center;
    font-weight: bolder;
    background-color: #f0f0e7;
    border-right: 3px solid white;
    font-size: 13px;
}
.tab_calendar td {
    padding: 2px;
    margin: 2px 0 2px 0;
    border-bottom: 3px solid white;
}
table td, table th {
    padding: 10px 10px;
    text-align: center;
    color: #757475;
}
.tab_calendar .festivo {
    background-color: #d5cfcf;
}
.tab_calendar .bordo_festivo {
    border-left: 2px solid red;
}
td.giorno_settimana {
    text-align: center;
    font-size: 12px;
    border-bottom: 0;
}
.tab_calendar td {
    padding: 2px;
    margin: 2px 0 2px 0;
    border-bottom: 3px solid white;
}
table td, table th {
    padding: 10px 10px;
    text-align: center;
    color: #757475;
}
.occupato, td.occupato {
    background-color: rgba(255, 62, 27, 0.5);
    padding: 5px;
}
.tab_calendar td {
    padding: 2px;
    margin: 2px 0 2px 0;
    border-bottom: 3px solid white;
}
table td, table th {
    padding: 10px 10px;
    text-align: center;
    color: #757475;
}
.disp_opzioni span {
    height: 20px;
    line-height: 20px;
    display: inline-table;
    width: 20%;
    text-align: center;
}
.libero, td.libero {
    background-color: rgba(0, 128, 0, 0.6);
    padding: 5px;
    color: white;
}
.disp_opzioni {
    position: relative;
    left: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
}
#cal_data_arrivo {
    width: 150px;
    height: 30px;
}

.attivita-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 100px;
}
.recensioni-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 0px;
    margin-bottom: 100px;
}
.tab_calendar {
    width: 100%;
}

:target {
  scroll-margin-top: 120px;
}

.fab.fa-instagram {
    font-size: 36px;
}
/* Fixed WhatsApp Button */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    /*box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);*/
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-fixed:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-fixed {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}


/* Flatpickr Calendar Customization */
.flatpickr-calendar {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flatpickr-months {
    background: var(--color-primary);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: white;
    font-weight: 600;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white;
}

.flatpickr-weekdays {
    background: var(--color-primary);
}

.flatpickr-weekday,
span.flatpickr-weekday {
    color: white !important;
    font-weight: 600;
}

.flatpickr-day {
    color: var(--color-text);
    border-radius: 4px;
}

.flatpickr-day:hover {
    background: rgba(97, 90, 82, 0.1);
    border-color: var(--color-primary);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #4d473f;
    border-color: #4d473f;
}

.flatpickr-day.inRange {
    background: rgba(97, 90, 82, 0.15);
    border-color: rgba(97, 90, 82, 0.3);
    box-shadow: none;
}

.flatpickr-day.today {
    border-color: var(--color-primary);
}

.flatpickr-day.today:hover {
    background: rgba(97, 90, 82, 0.2);
    border-color: var(--color-primary);
}

/* ===== Availability Calendar Styles ===== */
.mostra_disp {
    max-width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

#calendar {
    position: relative;
    overflow: hidden;
}

#body_calendar {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(97, 90, 82, 0.3) transparent;
}

#body_calendar::-webkit-scrollbar {
    height: 8px;
}

#body_calendar::-webkit-scrollbar-track {
    background: transparent;
}

#body_calendar::-webkit-scrollbar-thumb {
    background: rgba(97, 90, 82, 0.3);
    border-radius: 4px;
}

#body_calendar::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 90, 82, 0.5);
}

table.tab_calendar {
    min-width: 100%;
    white-space: nowrap;
}

.appartamenti .apartment-card__description {
    min-height: 120px;
}

.appartamenti .apartment-details {
    margin: 20px 0 0 0;
    min-height: 230px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mostra_disp {
        margin: 10px 0 40px 0;
    }
    
    table.tab_calendar {
        margin-left: 10px;
        font-size: 80%;
    }
    
    td.nome_alloggio {
        width: 100px;
        min-width: 100px;
        font-size: 11px;
    }
    
    #prev_img, #next_img {
        width: 30px;
    }
    
    .disp_opzioni {
        left: 0 !important;
        text-align: center;
        padding-left: 0;
    }
    
    #legenda_calendar .disp_opzioni span,
    .disp_opzioni span {
        width: 50% !important;
        height: 20px;
        line-height: 20px;
        text-align: center;
        box-sizing: border-box;
    }
    
    #legenda_calendar {
        text-align: center;
    }

    .check_from, .check_to {
        padding: 15px 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: var(--font-sans);
        font-size: 16px;
        background-color: var(--color-bg);
        color: var(--color-text);
        min-width: 100px;
    }
}


/*REVIEW*/
div.rev_title
{ /*width:900px;*/ width:auto; text-align: left; }
div.sign-rev
{ float: left; padding-left: 0px; margin-left: 0px; padding-top: 5px; width:680px; text-align: left;}
div.dettaglio-rev
{ margin-left: 5px; margin-right: 5px; padding-left: 1px; margin-bottom: 0px;}
div.voto-rev-dettaglio
{ float: left; padding-top: 5px; padding-right: 5px; width:180px; font-weight: bold; text-align: right; font-size: 18px;}

div.colonna1_recensioni
{ float: left; width: 245px; margin-left: 50px;}

div.colonna2_recensioni
{ float: left; width: 200px;}

div.colonna3_recensioni
{float: left; width: 200px; margin-left: 80px;}

div.colonna4_recensioni
{float: left; width: 150px; margin-right: 10px;}

div.titolo_cat_recensioni
{ font-weight: bold; font-size: 11px; float: left; text-align: center; padding: 5px; background-color: #EDEDED; border: solid 1px #666666;}

div.nome_servizio
{width: 199px; float: left; font-size: 14px; height: 35px; padding: 5px 0 0 10px; background-color: #F7F7F7; border-left: solid 1px #666666; border-right: solid 1px #666666; border-bottom: solid 1px #666666;}

div.container_servizio
{width: 200px; padding: 0px; height: 35px; background-color: #F7F7F7; border-left: solid 1px #666666; border-right: solid 1px #666666; border-bottom: solid 1px #666666;}

div.val_servizio
{width: 40px; float: left; padding: 5px; height: 20px; text-align: center;}

div.barre_val_servizio
{width: 130px; float: left; padding: 5px; height: 20px;}

div.bg_utenti
{padding: 3px; height: 35px; font-size: 10px; background-color: #F7F7F7; border-left: solid 1px #666666; border-bottom: solid 1px #666666;}

div.n_recensioni
{float: left; padding: 5px; text-align: center; height: 35px; background-color: #F7F7F7; width: 150px; border-left: solid 1px #666666; border-right: solid 1px #666666; border-bottom: solid 1px #666666;}
.separatore_giallo{width: 900px;
border-bottom: solid 1px #d48303;
margin-left: 25px;
margin-right: 15px;
margin-bottom: 15px;
margin-top: 0px;}
div.dettaglio-rev {
margin: 0px 17px;
background-color: #F7F7F7;}

@media (max-width: 768px) {
    div.sign-rev { 
        width: 100% !important;
        padding-left: 0 !important;
    }
    .separatore_giallo {
        width: auto;
    }
    div.voto-rev-dettaglio {
        float: unset;
        width: auto;
        font-size: 25px;
        text-align: center;
    }
    .recensioni-detail-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0px;
        margin-top: 0px;
        margin-bottom: 100px;
    }

    div.colonna1_recensioni {
        float: left;
        width: 45%;
        margin-left: 20px;
    }
    div.colonna2_recensioni {
        float: left;
        width: 45%;
    }
    div.titolo_cat_recensioni, div.nome_servizio, div.container_servizio, div.n_recensioni {
        width: 101% !important;
    }
    div.barre_val_servizio {
        width: 130px;
        float: left;
        padding: 5px;
        height: 15px;
    }
    div.colonna3_recensioni {
        float: left;
        width: 45%;
        margin-left: 20px;
        margin-top: 30px;
    }
    div.colonna4_recensioni {
        float: left;
        width: 45%;
        margin-right: 0px;
        margin-top: 30px;
    }
}

/*FINE REVIEW*/

