/**
 * Forli City Residence — Frontend CSS
 * Design: moderno, elegante, colori neutri + accento blu petrolio #355777
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --fcr-gold:          #355777;
    --fcr-gold-dark:     #243f5b;
    --fcr-gold-light:    #d6dde7;
    --fcr-dark:          #1a1a1a;
    --fcr-gray-900:      #1f2937;
    --fcr-gray-700:      #374151;
    --fcr-gray-500:      #6b7280;
    --fcr-gray-200:      #e5e7eb;
    --fcr-gray-100:      #f3f4f6;
    --fcr-white:         #ffffff;
    --fcr-shadow-sm:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --fcr-shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --fcr-shadow-lg:     0 10px 25px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --fcr-radius-sm:     6px;
    --fcr-radius-md:     12px;
    --fcr-radius-lg:     20px;
    --fcr-transition:    0.3s ease;
    --fcr-font-serif:    'Georgia', 'Times New Roman', serif;
    --fcr-font-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* ============================================================
   SINGLE APARTMENT — HERO
   ============================================================ */
.fcr-single-apartment {
    font-family: var(--fcr-font-sans);
    color: var(--fcr-gray-700);
    line-height: 1.7;
}

.fcr-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.fcr-hero__image-wrap {
    position: absolute;
    inset: 0;
}

.fcr-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fcr-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0.7) 100%
    );
}

.fcr-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 40px;
}

.fcr-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.fcr-hero__title {
    font-family: var(--fcr-font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--fcr-white);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.fcr-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.fcr-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.fcr-hero__meta-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--fcr-gold-light);
}

.fcr-hero__capacity-detail {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.875rem;
}

/* ============================================================
   LAYOUT PRINCIPALE
   ============================================================ */
.fcr-apartment-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .fcr-apartment-layout {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 32px;
    }

    /* Su mobile: sidebar (info card) PRIMA del main content */
    .fcr-apartment-layout .fcr-apartment-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .fcr-apartment-layout .fcr-apartment-main {
        order: 2;
    }
}

/* ============================================================
   SEZIONI
   ============================================================ */
.fcr-section {
    margin-bottom: 56px;
}

.fcr-section:last-child {
    margin-bottom: 0;
}

.fcr-section__title {
    font-family: var(--fcr-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--fcr-dark);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fcr-gold-light);
    letter-spacing: -0.01em;
}

/* ============================================================
   DESCRIZIONE
   ============================================================ */
.fcr-description__content {
    font-size: 1.0625rem;
    color: var(--fcr-gray-700);
    line-height: 1.8;
}

.fcr-description__content p {
    margin-bottom: 1.25em;
}

.fcr-description__content p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   AMENITIES
   ============================================================ */
.fcr-amenities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fcr-amenities__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--fcr-gray-100);
    border-radius: var(--fcr-radius-sm);
    border: 1px solid var(--fcr-gray-200);
    transition: border-color var(--fcr-transition), background-color var(--fcr-transition);
}

.fcr-amenities__item:hover {
    background: var(--fcr-white);
    border-color: var(--fcr-gold-light);
}

.fcr-amenities__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--fcr-gold);
}

.fcr-amenities__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.fcr-amenities__label {
    font-size: 0.9rem;
    color: var(--fcr-gray-700);
    font-weight: 500;
    line-height: 1.3;
}

.fcr-amenities__qty {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8rem;
    color: var(--fcr-gray-500);
    font-weight: 400;
}

/* ============================================================
   GALLERIA
   ============================================================ */
.fcr-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.fcr-gallery__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--fcr-radius-sm);
    cursor: pointer;
    background: var(--fcr-gray-100);
    border: none;
    padding: 0;
}

.fcr-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fcr-gallery__item:hover img {
    transform: scale(1.05);
}

.fcr-gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--fcr-transition);
}

.fcr-gallery__item-overlay svg {
    width: 28px;
    height: 28px;
    color: var(--fcr-white);
    opacity: 0;
    transition: opacity var(--fcr-transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

.fcr-gallery__item:hover .fcr-gallery__item-overlay {
    background: rgba(0,0,0,0.3);
}

.fcr-gallery__item:hover .fcr-gallery__item-overlay svg {
    opacity: 1;
}

.fcr-gallery__item:focus-visible {
    outline: 2px solid var(--fcr-gold);
    outline-offset: 2px;
}

/* ============================================================
   SIDEBAR — INFO CARD
   ============================================================ */
.fcr-apartment-sidebar {
    position: sticky;
    top: 24px;
}

.fcr-info-card {
    background: var(--fcr-white);
    border: 1px solid var(--fcr-gray-200);
    border-radius: var(--fcr-radius-md);
    padding: 28px;
    box-shadow: var(--fcr-shadow-md);
}

.fcr-info-card__title {
    font-family: var(--fcr-font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--fcr-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fcr-gray-200);
}

.fcr-info-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fcr-info-card__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fcr-gray-100);
}

.fcr-info-card__item:last-child {
    border-bottom: none;
}

.fcr-info-card__label {
    font-size: 0.875rem;
    color: var(--fcr-gray-500);
    font-weight: 400;
}

.fcr-info-card__value {
    font-size: 0.9375rem;
    color: var(--fcr-gray-900);
    font-weight: 600;
    text-align: right;
}

/* ============================================================
   FAQ
   ============================================================ */
.fcr-apartment-faq-wrap {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.fcr-faq {
    font-family: var(--fcr-font-sans);
    color: var(--fcr-gray-700);
}

.fcr-faq__heading {
    font-family: var(--fcr-font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--fcr-dark);
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: -0.01em;
}

.fcr-faq__category {
    margin-bottom: 36px;
}

.fcr-faq__category:last-child {
    margin-bottom: 0;
}

.fcr-faq__category-title {
    font-family: var(--fcr-font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--fcr-gold);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fcr-gold-light);
    letter-spacing: 0.01em;
}

.fcr-faq__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fcr-faq__item {
    background: var(--fcr-white);
    border: 1px solid var(--fcr-gray-200);
    border-radius: var(--fcr-radius-sm);
    overflow: hidden;
    transition: border-color var(--fcr-transition), box-shadow var(--fcr-transition);
}

.fcr-faq__item:hover {
    border-color: var(--fcr-gold-light);
}

.fcr-faq__item[open] {
    border-color: var(--fcr-gold);
    box-shadow: 0 4px 12px rgba(53, 87, 119, 0.08);
}

.fcr-faq__question {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fcr-gray-900);
    transition: background-color var(--fcr-transition);
    user-select: none;
}

.fcr-faq__question::-webkit-details-marker,
.fcr-faq__question::marker {
    display: none;
    content: '';
}

.fcr-faq__item[open] .fcr-faq__question {
    background: rgba(53, 87, 119, 0.04);
    color: var(--fcr-gold-dark);
}

.fcr-faq__question-text {
    flex: 1;
}

.fcr-faq__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--fcr-gold);
    transition: transform var(--fcr-transition);
}

.fcr-faq__icon svg {
    width: 100%;
    height: 100%;
}

.fcr-faq__item[open] .fcr-faq__icon {
    transform: rotate(180deg);
}

.fcr-faq__answer {
    padding: 0 22px 20px;
    color: var(--fcr-gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fcr-faq-fade 0.25s ease;
}

.fcr-faq__answer p {
    margin: 0 0 12px;
}

.fcr-faq__answer p:last-child {
    margin-bottom: 0;
}

.fcr-faq__answer ul,
.fcr-faq__list {
    margin: 0 0 12px;
    padding-left: 22px;
    list-style: disc;
}

.fcr-faq__answer ul li,
.fcr-faq__list li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.fcr-faq__answer strong {
    color: var(--fcr-gray-900);
    font-weight: 600;
}

.fcr-faq__answer a {
    color: var(--fcr-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fcr-faq__answer a:hover {
    color: var(--fcr-gold-dark);
}

@keyframes fcr-faq-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FAQ — TEMA DARK (es. su sezioni homepage a sfondo nero)
   ============================================================ */
.fcr-faq--dark {
    color: rgba(255, 255, 255, 0.82);
}

.fcr-faq--dark .fcr-faq__heading {
    color: #ffffff;
}

.fcr-faq--dark .fcr-faq__category-title {
    color: #d6dde7;
    border-bottom-color: rgba(214, 221, 231, 0.22);
}

.fcr-faq--dark .fcr-faq__item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.fcr-faq--dark .fcr-faq__item:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.fcr-faq--dark .fcr-faq__item[open] {
    border-color: rgba(214, 221, 231, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.fcr-faq--dark .fcr-faq__question {
    color: #ffffff;
}

.fcr-faq--dark .fcr-faq__item[open] .fcr-faq__question {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.fcr-faq--dark .fcr-faq__icon {
    color: #d6dde7;
}

.fcr-faq--dark .fcr-faq__answer {
    color: rgba(255, 255, 255, 0.78);
}

.fcr-faq--dark .fcr-faq__answer strong {
    color: #ffffff;
}

.fcr-faq--dark .fcr-faq__answer a {
    color: #d6dde7;
    text-decoration-color: rgba(214, 221, 231, 0.5);
}

.fcr-faq--dark .fcr-faq__answer a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.fcr-faq--dark .fcr-faq__answer ul,
.fcr-faq--dark .fcr-faq__list {
    color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   MODALE — FORCE LIGHT THEME
   La modale e' sempre in tema chiaro anche se contenuta dentro
   una sezione .fcr-faq--dark (evita bleeding del tema scuro).
   ============================================================ */
.fcr-faq-modal .fcr-faq,
.fcr-faq-modal .fcr-faq__heading {
    color: var(--fcr-gray-700);
}

.fcr-faq-modal .fcr-faq__heading {
    color: var(--fcr-dark);
}

.fcr-faq-modal .fcr-faq__category-title {
    color: var(--fcr-gold);
    border-bottom-color: var(--fcr-gold-light);
}

.fcr-faq-modal .fcr-faq__item {
    background: var(--fcr-white);
    border-color: var(--fcr-gray-200);
    box-shadow: none;
}

.fcr-faq-modal .fcr-faq__item:hover {
    background: var(--fcr-white);
    border-color: var(--fcr-gold-light);
}

.fcr-faq-modal .fcr-faq__item[open] {
    background: var(--fcr-white);
    border-color: var(--fcr-gold);
    box-shadow: 0 4px 12px rgba(53, 87, 119, 0.08);
}

.fcr-faq-modal .fcr-faq__question {
    color: var(--fcr-gray-900);
    background: transparent;
}

.fcr-faq-modal .fcr-faq__item[open] .fcr-faq__question {
    background: rgba(53, 87, 119, 0.04);
    color: var(--fcr-gold-dark);
}

.fcr-faq-modal .fcr-faq__icon {
    color: var(--fcr-gold);
}

.fcr-faq-modal .fcr-faq__answer {
    color: var(--fcr-gray-700);
}

.fcr-faq-modal .fcr-faq__answer strong {
    color: var(--fcr-gray-900);
}

.fcr-faq-modal .fcr-faq__answer a {
    color: var(--fcr-gold);
}

.fcr-faq-modal .fcr-faq__answer a:hover {
    color: var(--fcr-gold-dark);
}

.fcr-faq-modal .fcr-faq__answer ul,
.fcr-faq-modal .fcr-faq__list {
    color: var(--fcr-gray-700);
}

/* Bottone "Vedi tutte le domande" in dark — resta blu come nel tema light */
/* Nota: la modale e' volutamente sempre "light" (bianca) per leggibilita' ottimale,
   anche quando la sezione inline usa theme="dark". */

/* CTA + Modal */
.fcr-faq__cta {
    text-align: center;
    margin-top: 36px;
}

/* Bottone apertura modale — blu fisso (override qualsiasi tema) */
.fcr-faq .fcr-faq__cta .fcr-faq__open-modal,
.fcr-faq .fcr-faq__open-modal {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background: #355777 !important;
    background-color: #355777 !important;
    color: #ffffff !important;
    border: 2px solid #355777 !important;
    border-radius: var(--fcr-radius-sm) !important;
    font-family: var(--fcr-font-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(53, 87, 119, 0.25) !important;
    text-shadow: none !important;
    outline: none !important;
}

.fcr-faq .fcr-faq__open-modal:hover,
.fcr-faq .fcr-faq__open-modal:focus,
.fcr-faq .fcr-faq__open-modal:focus-visible,
.fcr-faq .fcr-faq__open-modal:active {
    background: #243f5b !important;
    background-color: #243f5b !important;
    color: #ffffff !important;
    border-color: #243f5b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(53, 87, 119, 0.4) !important;
    outline: none !important;
}

.fcr-faq .fcr-faq__open-modal svg {
    width: 18px !important;
    height: 18px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.fcr-faq .fcr-faq__open-modal:hover svg,
.fcr-faq .fcr-faq__open-modal:focus-visible svg {
    transform: translateX(4px);
}

/* Modale FAQ */
.fcr-faq-modal {
    width: min(900px, 95vw);
    max-width: 95vw;
    max-height: 90vh;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: var(--fcr-white);
    color: var(--fcr-gray-700);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
    /* Reset stili default del browser */
    inset: 0;
    margin: auto;
}

.fcr-faq-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fcr-faq-modal[open] {
    display: flex;
    flex-direction: column;
    animation: fcr-faq-modal-in 0.25s ease;
}

@keyframes fcr-faq-modal-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fcr-faq-modal__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    background: var(--fcr-white);
    border-bottom: 1px solid var(--fcr-gray-200);
}

.fcr-faq-modal__title {
    margin: 0;
    font-family: var(--fcr-font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--fcr-dark);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Close button — nero di default, blu in hover/focus (override tema forzato) */
.fcr-faq-modal .fcr-faq-modal__close {
    flex-shrink: 0 !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 2px solid #1a1a1a !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}

.fcr-faq-modal .fcr-faq-modal__close svg {
    width: 20px !important;
    height: 20px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.fcr-faq-modal .fcr-faq-modal__close:hover,
.fcr-faq-modal .fcr-faq-modal__close:focus,
.fcr-faq-modal .fcr-faq-modal__close:focus-visible,
.fcr-faq-modal .fcr-faq-modal__close:active {
    background: #355777 !important;
    background-color: #355777 !important;
    border-color: #355777 !important;
    color: #ffffff !important;
    transform: rotate(90deg);
    outline: none !important;
}

.fcr-faq-modal .fcr-faq-modal__close:hover svg,
.fcr-faq-modal .fcr-faq-modal__close:focus-visible svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.fcr-faq-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar custom per la modale */
.fcr-faq-modal__body::-webkit-scrollbar {
    width: 10px;
}
.fcr-faq-modal__body::-webkit-scrollbar-track {
    background: var(--fcr-gray-100);
}
.fcr-faq-modal__body::-webkit-scrollbar-thumb {
    background: var(--fcr-gray-200);
    border-radius: 10px;
}
.fcr-faq-modal__body::-webkit-scrollbar-thumb:hover {
    background: var(--fcr-gold);
}

/* Quando il body è "lockato" perché la modal è aperta */
body.fcr-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .fcr-apartment-faq-wrap {
        padding: 0 16px;
        margin-bottom: 60px;
    }

    .fcr-faq__question {
        padding: 16px 18px;
        font-size: 0.9375rem;
    }

    .fcr-faq__answer {
        padding: 0 18px 18px;
        font-size: 0.9rem;
    }

    .fcr-faq__category-title {
        font-size: 1.2rem;
    }

    .fcr-faq-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .fcr-faq-modal__header {
        padding: 18px 20px;
    }

    .fcr-faq-modal__body {
        padding: 22px 20px;
    }

    .fcr-faq__open-modal {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   BOOKING BUTTON ("Prenota ora")
   ============================================================ */
.fcr-booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding: 14px 22px;
    background: var(--fcr-gold);
    color: var(--fcr-white) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--fcr-radius-sm);
    box-shadow: 0 4px 12px rgba(53, 87, 119, 0.25);
    transition: background-color var(--fcr-transition), transform var(--fcr-transition), box-shadow var(--fcr-transition);
}

.fcr-booking-btn:hover,
.fcr-booking-btn:focus {
    background: var(--fcr-gold-dark);
    color: var(--fcr-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(53, 87, 119, 0.35);
    text-decoration: none;
}

.fcr-booking-btn svg {
    flex-shrink: 0;
    transition: transform var(--fcr-transition);
}

.fcr-booking-btn:hover svg {
    transform: translateX(3px);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.fcr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.fcr-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fcr-lightbox__image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--fcr-radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    display: block;
    transition: opacity 0.2s ease;
}

.fcr-lightbox__image.is-loading {
    opacity: 0.3;
}

.fcr-lightbox__caption {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
    max-width: 600px;
}

.fcr-lightbox__counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
}

.fcr-lightbox__close,
.fcr-lightbox__prev,
.fcr-lightbox__next {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--fcr-white);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--fcr-transition), transform var(--fcr-transition);
    backdrop-filter: blur(4px);
}

.fcr-lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
}

.fcr-lightbox__close svg {
    width: 20px;
    height: 20px;
}

.fcr-lightbox__prev,
.fcr-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
}

.fcr-lightbox__prev {
    left: 20px;
}

.fcr-lightbox__next {
    right: 20px;
}

.fcr-lightbox__prev svg,
.fcr-lightbox__next svg {
    width: 24px;
    height: 24px;
}

.fcr-lightbox__close:hover,
.fcr-lightbox__prev:hover,
.fcr-lightbox__next:hover {
    background: rgba(255,255,255,0.2);
}

.fcr-lightbox__prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.fcr-lightbox__next:hover {
    transform: translateY(-50%) translateX(2px);
}

/* Animazione apertura lightbox */
.fcr-lightbox.is-open .fcr-lightbox__content {
    animation: fcr-lightbox-in 0.25s ease forwards;
}

@keyframes fcr-lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   CAROUSEL CARD (widget Elementor)
   ============================================================ */
.fcr-carousel-wrap {
    position: relative;
    padding-bottom: 40px;
}

.fcr-swiper {
    overflow: hidden;
    padding-bottom: 40px;
}

/* Forza gli slide ad avere altezza uniforme (la piu' alta) */
.fcr-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.fcr-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

.fcr-swiper .swiper-slide > .fcr-card,
.fcr-swiper .swiper-slide > .fcr-card__image-link {
    width: 100%;
}

.fcr-card {
    background: var(--fcr-white);
    border-radius: var(--fcr-radius-md);
    overflow: hidden;
    box-shadow: var(--fcr-shadow-md);
    transition: box-shadow var(--fcr-transition), transform var(--fcr-transition);
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fcr-card:hover {
    box-shadow: var(--fcr-shadow-lg);
    transform: translateY(-3px);
}

.fcr-card__image-link {
    display: block;
    text-decoration: none;
}

.fcr-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--fcr-gray-100);
    /* Fallback per browser vecchi senza aspect-ratio */
    min-height: 1px;
}

/* Fallback padding-top: attivo solo se aspect-ratio non è supportato */
@supports not (aspect-ratio: 4 / 3) {
    .fcr-card__image-wrap::before {
        content: "";
        display: block;
        padding-top: 75%;
    }
}

.fcr-card__image-wrap > img,
.fcr-card__image {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
}

.fcr-card:hover .fcr-card__image {
    transform: scale(1.04);
}

.fcr-card__image-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fcr-gray-200), var(--fcr-gray-100));
}

.fcr-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    transition: background-color 0.4s ease;
}

.fcr-card:hover .fcr-card__overlay {
    background: rgba(0,0,0,0.25);
}

.fcr-card__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1;
}

.fcr-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--fcr-gold);
    color: var(--fcr-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.fcr-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
    min-height: 0;
}

.fcr-card__floor {
    font-size: 0.8125rem;
    color: var(--fcr-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.fcr-card__title {
    font-family: var(--fcr-font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--fcr-dark);
    margin: 0;
    line-height: 1.3;
}

.fcr-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--fcr-transition);
}

.fcr-card__title a:hover {
    color: var(--fcr-gold-dark);
}

.fcr-card__description {
    font-size: 0.9rem;
    color: var(--fcr-gray-500);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fcr-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto !important;
    padding: 10px 22px;
    background: var(--fcr-gold);
    color: var(--fcr-white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--fcr-radius-sm);
    letter-spacing: 0.02em;
    transition: background-color var(--fcr-transition), transform var(--fcr-transition);
    align-self: flex-start;
}

.fcr-card__btn:hover {
    background: var(--fcr-gold-dark);
    color: var(--fcr-white);
    transform: translateY(-1px);
}

/* ============================================================
   SWIPER NAVIGATION
   ============================================================ */
.fcr-swiper-btn {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: var(--fcr-white);
    border: 1px solid var(--fcr-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--fcr-shadow-md);
    transition: background-color var(--fcr-transition), box-shadow var(--fcr-transition), transform var(--fcr-transition);
    color: var(--fcr-gray-700);
}

.fcr-swiper-btn svg {
    width: 20px;
    height: 20px;
}

.fcr-swiper-prev {
    left: -22px;
}

.fcr-swiper-next {
    right: -22px;
}

.fcr-swiper-btn:hover {
    background: var(--fcr-gold);
    color: var(--fcr-white);
    border-color: var(--fcr-gold);
    box-shadow: var(--fcr-shadow-lg);
}

.fcr-swiper-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.fcr-swiper .swiper-pagination {
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    width: 100%;
}

.fcr-swiper .swiper-pagination-bullet {
    background: var(--fcr-gray-200);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 !important; /* lo spacing è gestito dal gap del container */
    transition: background-color var(--fcr-transition), transform var(--fcr-transition);
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
}

.fcr-swiper .swiper-pagination-bullet-active {
    background: var(--fcr-gold);
    transform: scale(1.3);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
    .fcr-hero {
        min-height: 50vh;
    }

    .fcr-hero__title {
        font-size: 1.875rem;
    }

    .fcr-amenities__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .fcr-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .fcr-swiper-prev {
        left: 0;
    }

    .fcr-swiper-next {
        right: 0;
    }

    .fcr-lightbox__prev {
        left: 8px;
    }

    .fcr-lightbox__next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .fcr-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcr-amenities__grid {
        grid-template-columns: 1fr 1fr;
    }
}
