@media(max-width:575.98px) {
    :root {
        --fs-xs: .75rem;
        --fs-sm: .875rem;
        --fs-base: 1rem;
        --fs-md: 1.125rem;
        --fs-lg: 1.25rem;
        --fs-xl: 1.5rem;
        --fs-xxl: 2rem;
        --fs-hero: 2.5rem
    }

    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem
    }

    .header {
        padding: .75rem 0;
        position: fixed;
        width: 100%;
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px)
    }

    .logo {
        font-size: 1.25rem
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--color-primary);
        cursor: pointer;
        z-index: 1001
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right .3s ease;
        overflow-y: auto;
        z-index: 1000
    }

    .nav-menu.active {
        right: 0
    }

    .nav-list {
        flex-direction: column;
        width: 100%
    }

    .nav-item {
        margin: .5rem 0;
        width: 100%;
        text-align: left
    }

    .nav-link {
        display: block;
        padding: .75rem 0;
        font-size: 1rem;
        transition: color .3s ease
    }

    .nav-link:hover {
        color: var(--color-accent);
        transform: translateX(5px)
    }

    .language-switch {
        margin: 1.5rem 0 0;
        align-self: flex-start
    }

    .hero {
        min-height: 500px;
        padding-top: 4rem
    }

    .hero-content {
        padding: 2rem 1rem
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem
    }

    .section {
        padding: 2.5rem 0
    }

    .section-lg {
        padding: 3.5rem 0
    }

    .section-header {
        margin-bottom: 2rem
    }

    .row {
        margin: 0 -0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .col {
        padding: 0 .5rem
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%
    }

    .card {
        margin-bottom: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: transform .3s ease, box-shadow .3s ease
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15)
    }

    .card-img {
        height: 200px;
        object-fit: cover
    }

    .card-body {
        padding: 1.25rem
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: .75rem;
        padding: .75rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        transition: all .3s ease
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15)
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark))
    }

    .btn-secondary {
        background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark))
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 1rem
    }

    p {
        margin-bottom: 1rem
    }

    .feature-item {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: transform .3s ease, box-shadow .3s ease
    }

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1)
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--color-primary)
    }

    .testimonial {
        margin-bottom: 2.5rem;
        padding: 1.5rem;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05)
    }

    .footer {
        padding: 3rem 0 2rem
    }

    .footer-col {
        margin-bottom: 2rem
    }

    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1rem
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--color-primary);
        color: white;
        transition: all .3s ease
    }

    .social-link:hover {
        transform: translateY(-3px);
        background-color: var(--color-accent)
    }
    .room-card{
        width:100%
    }
}

@media(min-width:576px) {
    .container {
        max-width: 540px;
        margin: 0 auto
    }

    .btn {
        display: inline-block;
        width: auto;
        margin-bottom: 0
    }
    .room-card{
        width:100%
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card {
        margin-bottom: 0
    }
}

@media(min-width:768px) {
    .container {
        max-width: 720px
    }

    .hero-title {
        font-size: var(--fs-xxl)
    }

    .hero-subtitle {
        font-size: var(--fs-md)
    }

    .mobile-toggle {
        display: none
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        overflow-y: visible
    }

    .nav-list {
        flex-direction: row
    }

    .nav-item {
        margin: 0 1rem;
        width: auto
    }

    .nav-link:hover {
        transform: none
    }

    .language-switch {
        margin-left: 2rem;
        margin-top: 0
    }

    .room-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem
    }

    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%
    }

    .section {
        padding: 4rem 0
    }

    .section-lg {
        padding: 5rem 0
    }

    .feature-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem
    }

    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem
    }

    .testimonial {
        margin-bottom: 0
    }
}

@media(min-width:992px) {
    .container {
        max-width: 960px
    }

    .room-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .room-card{
        max-width: 24%
    }


    .feature-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%
    }

    .hero-content {
        max-width: 60%
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .footer {
        padding: 5rem 0 3rem
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem
    }
}

@media(min-width:1200px) {
    .container {
        max-width: 1140px
    }

    .room-grid {
        grid-template-columns: repeat(4, 1fr)
    }

    .card-grid {
        grid-template-columns: repeat(4, 1fr)
    }

    .hero-content {
        max-width: 50%
    }

    .section {
        padding: 5rem 0
    }

    .section-lg {
        padding: 6rem 0
    }
}

@media(min-width:1400px) {
    .container {
        max-width: 1320px
    }

    .hero-title {
        font-size: 3.5rem
    }

    .hero-subtitle {
        font-size: 1.5rem
    }
}

@media(max-width:767px) {
    .section {
        padding: 3rem 0
    }

    .section-lg {
        padding: 4rem 0
    }

    .footer {
        padding: 3rem 0 1.5rem
    }

    .footer-col {
        margin-bottom: 2rem
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr)
    }

    .testimonial {
        padding: 1.5rem;
        margin-bottom: 2rem
    }

    .feature-item {
        margin-bottom: 2rem
    }

    p,
    .card-text,
    .feature-text {
        font-size: 1rem;
        line-height: 1.6
    }

    h1,
    h2,
    h3 {
        line-height: 1.3
    }
}

@media print {

    .header,
    .footer,
    .nav-menu,
    .btn,
    .mobile-toggle {
        display: none
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff
    }

    a {
        color: #000;
        text-decoration: underline
    }

    .container {
        max-width: 100%;
        width: 100%
    }

    .hero {
        height: auto;
        min-height: auto
    }

    .hero-bg,
    .hero-overlay {
        display: none
    }

    .hero-content {
        color: #000;
        text-shadow: none
    }
}

@media(prefers-reduced-motion:no-preference) {
    .fade-in {
        animation: fadeIn .5s ease-in
    }

    .slide-in {
        animation: slideIn .5s ease-out
    }

    @keyframes fadeIn {
        from {
            opacity: 0
        }

        to {
            opacity: 1
        }
    }

    @keyframes slideIn {
        from {
            transform: translateY(20px);
            opacity: 0
        }

        to {
            transform: translateY(0);
            opacity: 1
        }
    }
}

.gallery-section {
    padding: 40px 20px;
    background-color: #f8f8f8;
    text-align: center;
  }
  
  .gallery-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-dark);
  }
  
  .gallery-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .gallery-row img {
    min-width: 200px;
    max-width: calc(33.333% - 13.33px); /* 3 immagini per riga con spazi */
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  /* 2 immagini per la seconda riga */
  .gallery-row:nth-child(2) img {
    max-width: calc(50% - 10px);
    height: 400px;
  }
  
  /* Mobile: 1 per riga */
  @media(max-width: 768px) {
    .gallery-row {
        max-width: 100%;
      flex-direction: column;
      align-items: center;
      object-fit: cover;
    }
  
    .gallery-row img {
    max-width: 100%;
      width: 100%;
      height: 250px;
      object-fit: cover;
    }

    .gallery-row:nth-child(2) img {
        max-width: 100%;
        width: 100%;
        height: 250px;
        object-fit: cover;
      }

    .gallery-container {
        width: 96%;
        }
  }

  .map-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
  }
  
  .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  