
/* ==========================================================
   WHITE LABEL - DETTAGLIO VILLA
   Versione: 1.2

   Dipendenza: style.css v1.5.3

   Modifiche v1.2:
   - Miniature a tutta larghezza
   - Frecce sovrapposte alle miniature
   - View all photos senza sottolineatura
   - Minore spazio tra miniature e pulsanti
   - Slider e lightbox invariati
   ========================================================== */

/* ----------------------------------------------------------
   01. HERO
   ---------------------------------------------------------- */

.detail-hero {
    display: grid;
    grid-template-columns: 1.08fr .95fr;
    gap: clamp(28px, 3.3vw, 65px);
    align-items: start;
    padding-top: 42px;
    padding-bottom: 52px;
}

.gold-rule {
    width: 50px;
    height: 4px;
    background: var(--gold);
}

.hero-main-photo {
    height: clamp(360px, 35vw, 540px);
    overflow: hidden;
    background: #edf0f2;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: #edf0f2;
}

.open-gallery {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    cursor: zoom-in;
}

.open-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
    transition: filter .4s ease-in-out;
}

.open-gallery:hover img {
    filter: brightness(.72);
}

.photo-hint {
    position: absolute;
    bottom: 18px;
    right: 20px;
    padding: 10px 13px;
    background: rgba(16, 29, 64, .82);
    color: #fff;
    font-size: 11px;
    letter-spacing: .8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.open-gallery:hover .photo-hint,
.open-gallery:focus-visible .photo-hint {
    opacity: 1;
}


/* Frecce slider principale */

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 43px;
    height: 56px;
    border: 0;
    background: rgba(12, 24, 45, .44);
    color: #fff;
    font-size: 23px;
    line-height: 1;
    transition: background-color .25s ease;
}

.slider-arrow:hover {
    background: rgba(12, 24, 45, .82);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.slider-counter {
    position: absolute;
    bottom: 17px;
    left: 18px;
    z-index: 2;
    padding: 7px 12px;
    background: rgba(12, 24, 45, .66);
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    pointer-events: none;
}


/* ----------------------------------------------------------
   02. INFORMAZIONI HERO
   ---------------------------------------------------------- */

.hero-information {
    min-width: 0;
    padding-top: 0;
}

.hero-information h1 {
    margin: 16px 0 8px;
    font-size: clamp(29px, 3.2vw, 47px);
    font-weight: 400;
    letter-spacing: 2.5px;
    line-height: 1.17;
}

.hero-location {
    margin: 0 0 12px;
    font-size: 16px;
}

.hero-intro {
    margin: 0 0 25px;
    font-size: clamp(15px, 1.5vw, 19px);
    font-style: italic;
    line-height: 1.5;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 15px;
}

.hero-facts > div {
    padding-right: 18px;
    border-right: 1px solid var(--gold);
}

.hero-facts > div:last-child {
    padding-right: 0;
    border: 0;
}

.hero-facts strong {
    font-size: 17px;
    font-weight: 400;
}


/* ----------------------------------------------------------
   03. MINIATURE v1.2
   ----------------------------------------------------------

   Le miniature occupano tutta la larghezza.

   Le frecce sono posizionate sopra le immagini
   senza consumare spazio orizzontale.

   Il funzionamento JS rimane invariato.
   ---------------------------------------------------------- */

.thumbnail-gallery {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.hero-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
}

/* Frecce sovrapposte */

.thumbnail-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);

    display: grid;
    place-items: center;

    width: 30px;
    height: 46px;
    padding: 0;

    border: 0;
    background: rgba(12, 24, 45, .45);
    color: #fff;

    font-size: 17px;
    line-height: 1;

    transition: background-color .25s ease;
}

.thumbnail-arrow:hover {
    background: rgba(12, 24, 45, .82);
}

.thumbnail-prev {
    left: 0;
}

.thumbnail-next {
    right: 0;
}

/* Singole miniature */

.thumb {
    display: block;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1.48 / 1;

    padding: 0;
    border: 2px solid transparent;

    overflow: hidden;
    background: #edf0f2;
    cursor: pointer;
}

.thumb.active {
    border-color: var(--gold);
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: brightness(1);
    transition: filter .4s ease-in-out;
}

.thumb:hover img {
    filter: brightness(.60);
}


/* ----------------------------------------------------------
   04. VIEW ALL PHOTOS v1.2
   ----------------------------------------------------------

   Collegamento leggero, senza bordo inferiore.
   Non deve competere con i pulsanti principali.
   ---------------------------------------------------------- */

.view-all-photos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;

    width: fit-content;
    margin: 9px 0 16px auto;
    padding: 3px 0;

    border: 0;
    background: transparent;

    color: var(--navy);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    line-height: 1.4;
    text-align: right;

    transition: color .25s ease;
}

.view-all-photos:hover {
    color: var(--gold);
}

.view-all-arrow {
    margin-left: 5px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}


/* ----------------------------------------------------------
   05. AZIONI HERO
   ---------------------------------------------------------- */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-primary,
.action-outline {
    min-height: 45px;
    padding: 12px 15px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;

    transition:
        background-color .25s ease,
        color .25s ease;
}

.action-primary {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
}

.action-primary:hover {
    background: #253a65;
}

.action-primary span {
    margin-left: 10px;
    font-size: 18px;
}

.action-outline {
    border: 1px solid #d2d8e3;
    border-bottom: 2px solid var(--gold);
    background: #fff;
    color: var(--navy);
}

.action-outline:hover {
    background: #fff7e9;
}

.action-outline.saved {
    background: var(--gold);
    color: #fff;
}


/* ----------------------------------------------------------
   06. OVERVIEW
   ---------------------------------------------------------- */

.overview {
    display: grid;
    grid-template-columns: 28% 1fr;
    gap: 0;

    margin-bottom: 36px;
    padding: 40px 44px;

    background: #f6f2ee;
}

.overview-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding-right: 32px;
    border-right: 1px solid var(--gold);
}

.overview-label h2 {
    margin: 0 0 21px;

    font-size: clamp(25px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: 5px;
}

.overview-content {
    min-width: 0;
    padding-left: clamp(30px, 5vw, 75px);
}

.overview-content h2 {
    margin: 0 0 10px;

    font-size: clamp(23px, 2.5vw, 33px);
    font-weight: 400;
    letter-spacing: 2px;
}

.overview-lead {
    margin: 0 0 18px;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}

.overview-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.overview-points li {
    position: relative;
    margin-bottom: 11px;
    padding-left: 26px;

    font-size: 15px;
    line-height: 1.5;
}

.overview-points li:last-child {
    margin-bottom: 0;
}

.overview-points li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;

    width: 12px;
    height: 12px;

    background: var(--gold);
    border-radius: 50%;
}

.inline-separator {
    padding: 0 12px;
    color: var(--gold);
}


/* ----------------------------------------------------------
   07. TAB
   ---------------------------------------------------------- */

.detail-content {
    padding: 0 22px 85px;
}

.tabs-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
}

.detail-tabs {
    display: flex;
    justify-content: space-around;

    min-width: 650px;
    border-bottom: 1px solid #d5dbe4;
}

.detail-tab {
    position: relative;

    padding: 20px 16px 22px;
    border: 0;

    background: transparent;
    color: var(--navy);

    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.detail-tab.active {
    font-weight: 700;
}

.detail-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 4px;
    background: var(--navy);
}

.detail-tab:hover {
    color: #a57513;
}

.tab-panel {
    padding-top: 36px;
}

.tab-panel[hidden] {
    display: none !important;
}

.section-title {
    margin: 0 0 17px;

    font-size: clamp(24px, 2.6vw, 35px);
    font-weight: 400;
    letter-spacing: 1.2px;
}

.section-intro {
    margin: 18px 0 31px;

    font-size: 16px;
    line-height: 1.65;
}


/* ----------------------------------------------------------
   08. DESCRIPTION
   ---------------------------------------------------------- */

.description-text {
    margin-top: 23px;
    font-size: 16px;
    line-height: 1.72;
}

.description-text p {
    margin: 0 0 17px;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 22px;
    padding-bottom: 10px;

    border-bottom: 2px solid var(--gold);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
}

.pdf-link span {
    font-size: 23px;
}

.pdf-link:hover {
    color: var(--gold);
}


/* ----------------------------------------------------------
   09. FEATURES & AMENITIES
   ---------------------------------------------------------- */

.features-layout {
    display: grid;
    grid-template-columns: 37% 63%;
    margin-top: 36px;
}

.features-column {
    padding-right: 37px;
    border-right: 1px solid var(--gold);
}

.amenities-column {
    min-width: 0;
    padding-left: 42px;
}

.column-title {
    margin: 0 0 14px;

    font-size: 25px;
    font-weight: 400;
    letter-spacing: 3px;
}

.feature-list {
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;

    margin-bottom: 22px;
    padding-left: 34px;

    font-size: 15px;
    line-height: 1.5;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;

    color: var(--gold);
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
    margin-top: 27px;
}

.amenity {
    display: flex;
    gap: 15px;
    min-width: 0;
}

.amenity-icon {
    flex: 0 0 40px;

    display: grid;
    place-items: start center;

    color: var(--navy);
    font-size: 30px;
}

.amenity strong {
    font-size: 15px;
}

.amenity p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   10. REQUEST
   ---------------------------------------------------------- */

.request-form {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    gap: 25px 32px;
    margin-bottom: 25px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-form label {
    display: block;
    font-size: 14px;
}

.request-form input,
.request-form select,
.request-form textarea {
    display: block;
    width: 100%;

    margin-top: 9px;
    padding: 12px 13px;

    border: 1px solid #aebbd0;
    border-radius: 0;

    background: #fff;
    color: var(--navy);
    font-size: 15px;
}

.request-form input,
.request-form select {
    min-height: 44px;
}

.request-form textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: #c40000;
}

.form-bottom {
    display: flex;
    align-items: center;
    gap: clamp(30px, 7vw, 100px);
    margin-top: 35px;
}

.submit-btn {
    min-width: 250px;
    font-size: 15px;
}

.form-bottom p {
    max-width: 450px;
    padding-left: 28px;

    border-left: 1px solid var(--gold);

    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
}

.form-feedback {
    font-size: 14px;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   11. MAPS
   ---------------------------------------------------------- */

.map-layout {
    display: grid;
    grid-template-columns: 29% 71%;
    gap: 25px;
    align-items: center;
    padding-right: 25px;
}

.map-info h3 {
    margin: 18px 0;
    font-size: 20px;
    line-height: 1.25;
}

.map-info p {
    padding-right: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.map-frame {
    height: 350px;
    background: #f0f0ec;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-notice {
    display: flex;
    gap: 20px;

    margin-top: 20px;
    padding: 17px 21px;

    background: #f6f2ee;

    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
}

.map-notice strong {
    color: var(--gold);
    font-size: 24px;
}

.nearby {
    margin-top: 40px;
}

.distance-list {
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.distance-list li {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
}

.distance-list li::before {
    content: "⌖";
    margin-right: 15px;
    color: var(--gold);
    font-size: 20px;
}


/* ----------------------------------------------------------
   12. VIDEO
   ---------------------------------------------------------- */

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;

    margin-top: 30px;
    overflow: hidden;
    background: #e4e7ec;
}

.video-placeholder > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.65);
}

.video-message {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 20px;

    color: #fff;
    text-align: center;
}

.video-message strong {
    font-size: clamp(23px, 3vw, 38px);
    font-weight: 400;
}

.video-message span {
    max-width: 450px;
    font-size: 15px;
    line-height: 1.6;
}

.video-caption {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   13. LIGHTBOX
   ---------------------------------------------------------- */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    flex-direction: column;

    background: rgba(5, 12, 27, .97);
    color: #fff;
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.lightbox-topbar {
    flex: 0 0 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.lightbox-title {
    font-size: 13px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.lightbox-counter {
    font-size: 14px;
    letter-spacing: 1px;
}

.lightbox-tools {
    display: flex;
    gap: 12px;
}

.lightbox-tools button {
    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;

    border: 0;
    background: transparent;
    color: #fff;

    font-size: 30px;
    transition: color .2s ease;
}

.lightbox-tools button:hover {
    color: var(--gold);
}

.lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 75px;
}

.lightbox-image-area {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;
    touch-action: pan-y;
}

.lightbox-image-area img {
    display: block;

    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;
    cursor: zoom-in;

    user-select: none;
    -webkit-user-drag: none;

    transform: scale(1);
    transition: transform .25s ease;
}

.lightbox-image-area.zoomed img {
    transform: scale(1.8);
    cursor: zoom-out;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;

    transform: translateY(-50%);

    width: 55px;
    height: 70px;

    border: 0;
    background: rgba(255, 255, 255, .06);
    color: #fff;

    font-size: 27px;
    transition: background-color .2s ease;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, .2);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-bottom {
    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 0 25px;
    border-top: 1px solid rgba(255, 255, 255, .1);

    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}


/* ----------------------------------------------------------
   14. RESPONSIVE TABLET
   ---------------------------------------------------------- */

@media (max-width: 1100px) {

    .detail-hero {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .hero-main-photo {
        height: 420px;
    }

    .hero-facts {
        font-size: 13px;
    }

    .hero-actions {
        gap: 8px;
    }

    .action-primary,
    .action-outline {
        padding: 10px;
        font-size: 10px;
    }
}

@media (max-width: 900px) {

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 30px;
    }

    .hero-main-photo {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .hero-information h1 {
        font-size: 35px;
    }

    .thumbnail-gallery {
        max-width: 650px;
    }

    .overview {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .overview-label {
        padding: 0 0 20px;
        margin-bottom: 24px;
        border-right: 0;
        border-bottom: 1px solid var(--gold);
    }

    .overview-content {
        padding-left: 0;
    }

    .detail-content {
        padding-left: 0;
        padding-right: 0;
    }

    .features-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .features-column {
        padding: 0 0 20px;
        border-right: 0;
        border-bottom: 1px solid var(--gold);
    }

    .amenities-column {
        padding-left: 0;
    }

    .map-layout {
        grid-template-columns: 1fr;
        padding-right: 0;
    }
}


/* ----------------------------------------------------------
   15. RESPONSIVE SMARTPHONE
   ---------------------------------------------------------- */

@media (max-width: 620px) {

    .detail-hero {
        padding-top: 23px;
        padding-bottom: 32px;
    }

    .hero-main-photo {
        aspect-ratio: 4 / 3;
    }

    .slider-arrow {
        width: 34px;
        height: 46px;
        font-size: 18px;
    }

    .slider-counter {
        bottom: 10px;
        left: 10px;
        font-size: 11px;
    }

    .photo-hint {
        display: none;
    }

    .hero-information h1 {
        font-size: 29px;
        letter-spacing: 1px;
    }

    .hero-facts {
        justify-content: flex-start;
        gap: 12px;
    }

    .hero-facts > div {
        padding-right: 13px;
    }

    /* Miniature v1.2 su smartphone */

    .hero-thumbnails {
        gap: 6px;
    }

    .thumbnail-arrow {
        width: 25px;
        height: 38px;
        font-size: 15px;
    }

    .view-all-photos {
        margin-top: 8px;
        margin-bottom: 16px;
        font-size: 10px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action-primary,
    .action-outline {
        padding: 13px 14px;
        font-size: 12px;
    }

    .overview {
        margin-bottom: 22px;
        padding: 24px 20px;
    }

    .overview-label h2 {
        font-size: 27px;
    }

    .overview-content h2 {
        font-size: 23px;
        letter-spacing: 1px;
    }

    .overview-points li {
        font-size: 14px;
    }

    .inline-separator {
        padding: 0 5px;
    }

    .detail-tabs {
        min-width: 600px;
    }

    .detail-tab {
        padding: 16px 14px;
        font-size: 12px;
    }

    .tab-panel {
        padding-top: 27px;
    }

    .section-title {
        font-size: 24px;
    }

    .description-text {
        font-size: 15px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .submit-btn {
        min-width: 0;
        width: 100%;
    }

    .form-bottom p {
        margin: 0;
    }

    .map-frame {
        height: 290px;
    }

    .video-placeholder {
        aspect-ratio: 4 / 3;
    }

    .detail-content {
        padding-bottom: 55px;
    }

    .lightbox-topbar {
        flex-basis: 54px;
        gap: 8px;
        padding: 0 12px;
    }

    .lightbox-title {
        font-size: 10px;
        letter-spacing: .5px;
    }

    .lightbox-counter {
        font-size: 12px;
        white-space: nowrap;
    }

    .lightbox-tools {
        gap: 4px;
    }

    .lightbox-tools button {
        width: 30px;
        height: 34px;
        font-size: 25px;
    }

    .lightbox-stage {
        padding: 12px 32px;
    }

    .lightbox-arrow {
        width: 30px;
        height: 55px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-bottom {
        flex-basis: 45px;
        gap: 10px;
        padding: 0 12px;
        font-size: 10px;
    }

    .lightbox-bottom span:first-child {
        max-width: 65%;
    }
}


/* ----------------------------------------------------------
   16. RIDUZIONE ANIMAZIONI
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .open-gallery img,
    .thumb img,
    .photo-hint,
    .lightbox-image-area img {
        transition: none;
    }
}

/* ==========================================================
   FINE DETTAGLIO VILLA v1.2
   ========================================================== */
