/* Le pagine interne condividono l'header, con una presentazione compatta. */
.page-residence .header { position: fixed; padding: 10px 0; border-bottom: 1px solid #e9e7e1; }
.page-residence .header .wrap_logos img { height: 45px; }
.page-residence #over_header { height: 0; }
.page-residence .language-band { margin-top: 65px; }
.header .wrap_logos { align-items: center; }
.header .wrap_logos > div { height: 45px; }
.header ul a { display: block; padding: 8px 0; }
#ico_menu { border: 0; padding: 0; margin: 0; border-radius: 0; background: transparent; color: var(--blue); }
@media (min-width: 1000px) { .wrap_ico_menu { display: none; } }

.residence-guide { color: var(--blue); }
.residence-guide-heading { margin-bottom: 40px; }
.residence-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.residence-card { min-width: 0; background: #f1f7fb; border: 1px solid #e9e7e1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); cursor: pointer; transition: box-shadow .2s; }
.residence-card:hover { box-shadow: 0 8px 24px #23334c0d; }
.residence-slider { width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e7e2; }
.residence-image-link { display: block; width: 100%; height: 100%; }
.residence-slider .swiper-slide img { width: 100%; height: 100%; display: block; object-fit: cover; transform: none; transition: none; }
.residence-slider .residence-plan img { object-fit: contain; background: white; }
.residence-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; padding: 10px; margin: 0; border: 1px solid #ffffffa6; border-radius: 50%; color: var(--blue); background: #ffffffef; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 2px 10px #0002; }
.swiper-initialized .residence-arrow { display: flex; }
.residence-arrow::after { content: none; display: none; }
.residence-arrow:hover,
.residence-arrow:active { background: #e5eff7; color: var(--blue); }
.residence-arrow svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.residence-prev { left: 14px; }
.residence-next { right: 14px; }
.residence-counter { position: absolute; bottom: 14px; right: 16px; left: auto; z-index: 2; width: auto; min-width: 62px; padding: 6px 12px; border-radius: 20px; background: #15223cdb; color: white; font: 500 14px/1.4 "cofo-sans-variable", sans-serif; text-align: center; pointer-events: none; font-variant-numeric: tabular-nums; }
.residence-card-body { display: flex; flex-direction: column; min-width: 0; padding: 28px; }
.residence-card h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; font-weight: 500; margin-bottom: 24px; overflow-wrap: anywhere; }
.residence-facts { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); margin-bottom: 22px; border-block: 1px solid #e6e4de; padding: 17px 0; font-family: "cofo-sans-variable", sans-serif; }
.residence-facts > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 0 12px; border-left: 1px solid #e6e4de; }
.residence-facts > div:first-child { padding-left: 0; border: 0; }
.residence-facts dt { flex: 1; font-weight: 400; color: #646b76; max-width: 100%; overflow-wrap: anywhere; }
.residence-facts dd { font-size: clamp(19px, 1.8vw, 26px); font-weight: 500; line-height: 1.25; }
.residence-facts dd span { font-size: .75em; white-space: nowrap; }
.residence-facts-inline { display: none; font-family: "cofo-sans-variable", sans-serif; }
.residence-description { font-size: 16px; line-height: 1.7; color: #505966; margin-bottom: 26px; }
.residence-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.residence-actions > a { flex: 1 1 180px; }
.residence-card a:focus-visible, .residence-arrow:focus-visible, .header a:focus-visible, #ico_menu:focus-visible { outline: 3px solid #9a7640; outline-offset: 4px; }
.residence-detail { padding-top: 35px; }
.residence-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; font: 400 15px/1.6 "cofo-sans-variable", sans-serif; color: #626974; }
.residence-title { color: var(--blue); font-weight: 500; font-size: clamp(36px, 5vw, 60px); line-height: 1.15; overflow-wrap: anywhere; }
.residence-comfort { border-top: 1px solid #e2dfd7; padding-top: 35px; margin-bottom: 40px; }
.residence-comfort h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 22px; }
.residence-back { display: inline-block; padding: 16px 22px; background: #f4f2ed; font-family: "cofo-sans-variable", sans-serif; }
@media (max-width: 1100px) {
    .residence-grid { gap: 24px; }
    .residence-card-body { padding: 22px; }
    .header ul { gap: 20px; font-size: 16px; }
}
@media (max-width: 999px) {
    .header ul { gap: 30px; font-size: 30px; }
    .residence-card { grid-template-columns: minmax(0, 1fr); }
    .residence-slider { height: auto; }
    .residence-card h3 { margin-bottom: 0; }
    .residence-facts { display: none; border: 0; margin-bottom: 0; }
    .residence-facts-inline { display: block; padding: 5px 0; margin: 0; }
    .residence-actions { flex-wrap: nowrap; }
    .residence-actions > a { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 10px 8px; white-space: nowrap; border-color: var(--blue); }
    .residence-actions .residence-discover { background-color: var(--blue); color: white; }
    .residence-actions .residence-whatsapp { background-color: transparent; color: var(--blue); }
    .residence-actions > a::after { background-color: var(--blue); }
    .residence-actions .residence-whatsapp:hover { color: white; }
}
@media (max-width: 760px) {
    .residence-guide-heading { margin-bottom: 28px; }
    .residence-grid { gap: 28px; }
    .residence-card-body { padding: 22px 18px; }
    .residence-card h3 { font-size: 30px; }
    .residence-prev { left: 10px; } .residence-next { right: 10px; }
    .residence-breadcrumb { margin-bottom: 25px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .residence-card { transition: none; } }
