/* ============================================================
   Direzione editoriale da studio immobiliare di fascia alta:
   inchiostro quasi nero, carta color osso, un solo accento
   ottone/bronzo usato con parsimonia. Niente mare, niente
   terracotta: il segno distintivo è il disegno architettonico
   (linee sottili, squadre da progetto) sulle foto e sull'header.
   ============================================================ */
:root {
    --ink: #14181C;
    --ink-soft: #262C32;
    --bone: #FFFFFF;
    --paper: #FFFFFF;
    --brass: #A9814C;
    --brass-deep: #7E5F35;
    --slate: #5B6570;
    --line: #E7E5E0;
    --line-dark: rgba(247, 244, 236, 0.16);
    --text: #1D2124;
    --text-muted: #6A7178;

    --font-display: 'Bodoni Moda', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius: 4px;
    --radius-card: 14px;
    --shadow: 0 16px 34px -18px rgba(20, 24, 28, 0.45);
    --shadow-soft: 0 1px 2px rgba(20, 24, 28, 0.04), 0 6px 16px rgba(20, 24, 28, 0.05);
    --shadow-hover: 0 2px 6px rgba(20, 24, 28, 0.06), 0 18px 30px -14px rgba(20, 24, 28, 0.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Top bar ---------- */
.topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 30;
    padding: 30px 0 34px;
    background: linear-gradient(180deg, rgba(15,18,21,0.88) 0%, rgba(15,18,21,0.62) 55%, rgba(15,18,21,0) 100%);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.brand {
    display: block;
    line-height: 0;
}
.brand-logo {
    height: 58px;
    width: auto;
    display: block;
}
.topbar-right {
    display: flex;
    align-items: center;
}
.topbar nav a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-left: 32px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}
.topbar nav a:hover { color: #fff; border-bottom-color: var(--brass); }

/* ---------- Ricerca nel banner ---------- */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: 30px;
}
.nav-search-form {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.32s ease, opacity 0.2s ease;
}
.nav-search.is-open .nav-search-form {
    max-width: 230px;
    opacity: 1;
    margin-right: 10px;
}
.nav-search-input {
    width: 210px;
    max-width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 999px;
    padding: 7px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.55); }
.nav-search-input:focus { border-color: var(--brass); background: rgba(255,255,255,0.16); }
.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: color 0.15s ease;
}
.nav-search-toggle:hover { color: #fff; }
.nav-search-toggle .icon-close { display: none; }
.nav-search.is-open .nav-search-toggle { color: var(--brass); }
.nav-search.is-open .nav-search-toggle .icon-search { display: none; }
.nav-search.is-open .nav-search-toggle .icon-close { display: block; }

.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    color: #fff;
    cursor: pointer;
    z-index: 30;
    position: relative;
    margin-left: 18px;
}
.hamburger svg { display: block; }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-menu { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 27px;
}
.mobile-nav a:hover { color: var(--brass); }

body.nav-open { overflow: hidden; }

@media (max-width: 640px) {
    .topbar { padding: 18px 0 24px; }
    .brand-logo { height: 44px; }
    .topbar nav { display: none; }
    .hamburger { display: block; }
    .nav-search { margin-left: 14px; }
    .nav-search.is-open {
        position: absolute;
        inset: -6px 54px -6px 0;
        z-index: 20;
    }
    .nav-search.is-open .nav-search-form {
        max-width: none;
        width: 100%;
        margin-right: 0;
    }
    .nav-search-input { width: 100%; }
    .topbar.search-open .brand { opacity: 0; transition: opacity 0.15s ease; }
}

/* ---------- Hero video ---------- */
.hero {
    position: relative;
    height: min(80vh, 660px);
    min-height: 440px;
    overflow: hidden;
    background: var(--ink);
    display: flex;
    align-items: flex-end;
}
@media (max-width: 640px) {
    .hero {
        height: 78vw;
        min-height: 320px;
        max-height: 480px;
    }
    .hero-content { padding-bottom: 30px; }
    .hero-eyebrow, .hero-location { display: none; }
    .hero-actions a { padding: 10px 14px; font-size: 10px; letter-spacing: 0.06em; }
    .hero-actions { gap: 8px; }
}
.hero-video-wrap {
    position: absolute;
    inset: 22px;
    overflow: hidden;
    border: 1px solid rgba(169, 129, 76, 0.55);
}
.hero-video-loading-mask {
    position: absolute;
    inset: 0;
    background: var(--ink);
    z-index: 2;
    transition: opacity 0.6s ease;
}
.hero-video-loading-mask.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.hero-video-wrap::before,
.hero-video-wrap::after,
.hero-corner-tl, .hero-corner-br {
    content: '';
}
/* squadre agli angoli, come un disegno di progetto */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 26px; height: 26px;
    border: 1px solid var(--brass);
    z-index: 6;
    pointer-events: none;
}
.hero::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hero::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.hero-video-wrap iframe {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: grayscale(0.45) contrast(1.1) saturate(0.85) brightness(0.8);
    pointer-events: none;
    border: 0;
}
.hero-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.45) contrast(1.1) saturate(0.85) brightness(0.8);
    pointer-events: none;
    border: 0;
}
.hero-overlay {
    position: absolute;
    inset: 22px;
    background:
        radial-gradient(ellipse 60% 70% at 18% 90%, rgba(15,18,21,0.85) 0%, rgba(15,18,21,0) 62%),
        linear-gradient(180deg, rgba(15,18,21,0.32) 0%, rgba(15,18,21,0.4) 45%, rgba(15,18,21,0.94) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-bottom: 60px;
    width: 100%;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin: 0 0 18px;
}
.hero-eyebrow::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--brass);
    display: block;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.08;
    margin: 0 0 14px;
    max-width: 760px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    font-weight: 600;
    margin: 0 0 34px;
}
.hero-location svg { flex-shrink: 0; opacity: 0.9; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-actions a {
    display: inline-block;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brass);
    color: var(--ink);
}
.btn-primary:hover { background: #C29A62; }
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* divider tra hero e contenuto: un filo sottile con un rombo di ottone */
.section-divider {
    position: relative;
    height: 0;
}
.section-divider span {
    position: absolute;
    left: 50%; top: 0;
    width: 13px; height: 13px;
    background: var(--paper);
    border: 1px solid var(--brass);
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 5;
}

/* ---------- Sezioni annunci ---------- */
.listing-section {
    padding: 74px 0 40px;
}
.listing-section--tint {
    background: var(--ink);
    padding-top: 76px;
    padding-bottom: 70px;
    margin-top: 20px;
}
.listing-section--tint .section-eyebrow { color: var(--brass); }
.listing-section--tint .section-head { border-bottom-color: var(--line-dark); }
.listing-section--tint .section-head h2 { color: #fff; font-weight: 400; }
.listing-section--tint .property-card { background: var(--ink-soft); border-color: rgba(247,244,236,0.14); }
.listing-section--tint .property-body { border-top-color: rgba(247,244,236,0.14); }
.listing-section--tint .property-body h3,
.listing-section--tint .property-city { color: rgba(247,244,236,0.92); }
.listing-section--tint .property-city svg { stroke: var(--brass); }
.listing-section--tint .property-price { color: var(--brass); }

.section-head {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
}
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
    font-weight: 600;
    color: var(--brass-deep);
    margin: 0 0 12px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 36px;
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.listing-section .container { max-width: 1340px; }

.carousel { position: relative; }
.carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
    padding: 14px 4px 10px;
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .listing-section { padding: 50px 0 26px; }
    .listing-section--tint { padding-top: 50px; padding-bottom: 46px; }
    .section-head { margin-bottom: 22px; padding-bottom: 16px; }
    .section-head h2 { font-size: 25px; }
    .section-eyebrow { letter-spacing: 0.16em; margin-bottom: 8px; }
    .carousel-track {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px 4px 6px;
    }
    .property-body { padding: 12px 14px 15px; }
}

/* ---------- Card annuncio ---------- */
.property-card {
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brass);
}
.property-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bone);
}
.property-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.property-card:hover .property-photo img {
    transform: scale(1.05);
}
.property-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(251, 249, 244, 0.88);
    backdrop-filter: blur(3px);
    color: var(--brass-deep);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    padding: 5px 11px;
    border: 1px solid var(--brass);
}
.property-body {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--line);
}
.property-body h3 {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 7px;
    color: var(--ink);
    line-height: 1.25;
}
.property-price {
    color: var(--brass-deep);
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}
.property-city {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12.5px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.property-city svg { flex-shrink: 0; stroke: var(--brass-deep); }

.empty-state {
    color: var(--text-muted);
    font-size: 14px;
    padding: 30px 4px;
    border: 1px dashed var(--line);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}
.btn-load-more, .btn-load-prev {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 13px 30px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-load-more:hover:not(:disabled), .btn-load-prev:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-load-more:disabled, .btn-load-prev:disabled { opacity: 0.6; cursor: default; }
.btn-load-more--tint, .btn-load-prev--tint { border-color: rgba(247,244,236,0.5); color: #fff; }
.btn-load-more--tint:hover:not(:disabled), .btn-load-prev--tint:hover:not(:disabled) { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-soft);
    color: rgba(255,255,255,0.72);
    padding: 54px 0 26px;
    border-top: 3px solid var(--brass);
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    margin: 0 0 12px;
}
.site-footer p, .site-footer a {
    font-size: 14px;
    color: rgba(255,255,255,0.68);
    text-decoration: none;
    line-height: 1.85;
}
.site-footer a:hover { color: var(--brass); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 34px;
    padding-top: 20px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.4);
}

/* ---------- Barra di ricerca ---------- */
.search-bar {
    background: var(--paper);
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 8px 6px 20px;
    background: #fff;
}
.search-form svg { flex-shrink: 0; color: var(--text-muted); }
.search-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
}
.search-form button {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.search-form button:hover { background: var(--brass-deep); }

@media (max-width: 640px) {
    .search-bar { padding: 18px 0; }
    .search-form { padding: 5px 6px 5px 14px; }
    .search-form input { font-size: 13px; }
    .search-form button { padding: 10px 16px; font-size: 11px; }
}

/* ---------- Barra di ricerca annunci (sotto il video in home) ---------- */
.property-search-section {
    position: relative;
    z-index: 4;
    background: var(--paper);
    padding: 26px 0 8px;
}
.property-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ps-tabs {
    display: flex;
    flex: 0 0 100%;
    background: var(--ink);
}
.ps-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 13px 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.ps-tab.is-active {
    background: var(--brass);
    color: var(--ink);
}
.ps-tab:not(.is-active):hover { color: #fff; }
.ps-fields {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
}
.ps-field {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    border-right: 1px solid var(--line);
    min-width: 140px;
}
.ps-field--price { flex: 1 1 220px; }
.ps-field label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ps-field select,
.ps-field input[type="text"],
.ps-field input[type="number"] {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    padding: 2px 0;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}
.ps-field select { cursor: pointer; }
.ps-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ps-price-inputs input { min-width: 0; }
.ps-price-sep { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.ps-submit {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brass);
    color: var(--ink);
    border: none;
    padding: 0 34px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.ps-submit:hover { background: #C29A62; }

@media (max-width: 900px) {
    .ps-field { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
    .ps-field:nth-child(2n) { border-right: none; }
    .ps-submit { flex: 1 1 100%; padding: 15px 20px; }
}

@media (max-width: 640px) {
    .property-search-section { padding: 18px 0 4px; }
    .property-search { border-radius: 10px; }
    .ps-tab { font-size: 10px; padding: 12px 8px; }
    .ps-field { flex: 1 1 100%; padding: 12px 16px; }
    .ps-field:nth-child(2n) { border-right: 1px solid var(--line); }
}

/* ---------- Dove siamo ---------- */
.map-embed {
    position: relative;
    width: 100%;
    padding-top: 40%;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--line);
}
.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.map-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}
.map-address svg { stroke: var(--brass-deep); flex-shrink: 0; }

@media (max-width: 640px) {
    .map-embed { padding-top: 72%; }
}

/* ---------- Chi siamo ---------- */
.about-agent {
    display: flex;
    align-items: center;
    gap: 46px;
}
.about-agent-photo {
    flex: 0 0 260px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(247,244,236,0.16);
    background: var(--ink-soft);
}
.about-agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-agent-text h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 25px;
    color: #fff;
    margin: 0 0 4px;
}
.about-agent-role {
    color: var(--brass);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 16px;
}
.about-bio {
    color: rgba(247,244,236,0.82);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    max-width: 60ch;
}

@media (max-width: 640px) {
    .about-agent { flex-direction: column; text-align: center; gap: 22px; }
    .about-agent-photo { flex-basis: auto; width: 190px; }
}

/* ---------- Admin (condiviso) ---------- */
.admin-body {
    background: var(--bone);
    min-height: 100vh;
    font-family: var(--font-body);
}
.admin-shell { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.admin-header h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    margin: 0;
    color: var(--ink);
}
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 22px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.photo-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.photo-manager-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: default;
}
.photo-manager-item img { width: 100%; height: 80px; object-fit: cover; display: block; }
.photo-manager-remove {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #b23b3b;
    padding: 6px 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    cursor: pointer;
}
.photo-manager-remove input { width: auto; margin: 0; }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; }
input[type=text], input[type=number], input[type=password], select, textarea, input[type=file] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--paper);
}
textarea { resize: vertical; min-height: 90px; }
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    background: var(--ink);
    color: #fff;
    padding: 11px 22px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}
.btn:hover { background: var(--brass-deep); }
.btn-danger { background: #8A3B1D; }
.btn-danger:hover { background: #6E2F17; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass-deep); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
}
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: middle;
}
.admin-table img { width: 56px; height: 56px; object-fit: cover; }
.badge { padding: 3px 9px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid currentColor; }
.badge-affitto { color: var(--brass-deep); }
.badge-vendita { color: #8A3B1D; }
.alert { padding: 12px 16px; border-radius: 2px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: #FBE4DC; color: #8A3B1D; border-color: #E3B8A4; }
.alert-success { background: #F1EADA; color: var(--brass-deep); border-color: var(--brass); }
.login-shell {
    max-width: 380px;
    margin: 10vh auto;
    padding: 0 24px;
}
.login-shell .admin-card { margin: 0; }

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .site-footer .container { flex-direction: column; }
}
