/* ===== PRELOADER ===== */
.preloader-bg.preloader-dark,
#preloader.preloader-dark {
    background: #111111 !important;
}
.preloader-bg.preloader-dark {
    transition: opacity 0.8s ease-in-out, filter 0.8s ease-in-out;
}
.preloader-bg.preloader-dark.preloader-hiding {
    opacity: 0 !important;
    filter: blur(28px);
}
.preloader-logo {
    height: 90px;
    width: auto;
    animation: preloader-pulse 1.6s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.93); }
}

/* ===== FORM SELECT ===== */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    margin-bottom: 15px;
    padding: 16px 40px 16px 55px !important;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    display: block;
    width: 100%;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #737373;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: border 0.3s ease-in-out;
    letter-spacing: .3px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}
.form-group select:hover,
.form-group select:focus {
    border: 1px solid #FF0000;
    outline: none;
}
.form-group select option:disabled { color: #737373; }
.form-group select option { color: #171717; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0; width: 100%;
    z-index: 1000;
    background-color: transparent !important;
    padding: 20px 0;
    transition: all 0.5s ease;
    border: none;
}
.navbar .navbar-nav .nav-link { color: #ffffff !important; transition: color 0.5s ease; }
.navbar .navbar-nav .nav-link:hover { color: rgba(255,255,255,0.7) !important; }
.navbar .navbar-toggler-icon, .navbar .icon-bar { color: #ffffff !important; }
.navbar.nav-scroll {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important; z-index: 1000 !important;
    background-color: rgba(255,255,255,0.99) !important;
    padding: 12px 0 !important;
    box-shadow: 0 10px 35px 0 rgba(0,0,0,0.1);
    transform: none !important; -webkit-transform: none !important; margin-top: 0 !important;
}
.navbar.nav-scroll .navbar-nav .nav-link { color: #171717 !important; }
.navbar.nav-scroll .navbar-nav .nav-link:hover { color: #FF0000 !important; }
.navbar.nav-scroll .navbar-nav .nav-link.active { color: #FF0000 !important; }
.navbar.nav-scroll .navbar-toggler-icon, .navbar.nav-scroll .icon-bar { color: #171717 !important; }
.logo-transparent { display: inline-block; height: 50px; width: auto; }
.logo-scrolled    { display: none; height: 64px; width: auto; }
.nav-scroll .logo-transparent { display: none !important; }
.nav-scroll .logo-scrolled    { display: inline-block !important; }
/* ===== MOBILE TOGGLE (hamburger → X) ===== */
.mobile-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10001;
    flex-shrink: 0;
}
.mobile-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-toggle .bar-1 { top: 0; }
.mobile-toggle .bar-2 { top: 8px; }
.mobile-toggle .bar-3 { top: 16px; }
/* Active state → X */
.mobile-toggle.active .bar-1 { top: 8px; transform: rotate(45deg); }
.mobile-toggle.active .bar-2 { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active .bar-3 { top: 8px; transform: rotate(-45deg); }
/* Color variants: dark su pagine interne e scrolled */
.nav-scroll .mobile-toggle .bar,
.navbar-inner .mobile-toggle .bar { background: #171717; }
/* Quando il menu è aperto la X deve essere sempre scura (overlay bianco) */
.navbar.menu-open .mobile-toggle .bar { background: #171717; }
/* Navbar sopra l'overlay quando aperto */
.navbar.menu-open { z-index: 10000 !important; }
/* Logo: mostra versione scura quando il menu è aperto */
.navbar.menu-open .logo-transparent { display: none !important; }
.navbar.menu-open .logo-scrolled    { display: inline-block !important; }

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 48px 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s;
    overflow-y: auto;
    box-sizing: border-box;
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-overlay-nav { width: 100%; }
.mobile-overlay-nav ul {
    list-style: none;
    padding: 0; margin: 0;
    width: 100%;
}
.mobile-overlay-nav li {
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.mobile-overlay-nav li:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
.mobile-overlay-nav a {
    display: block;
    font-size: 38px;
    font-weight: 300;
    color: #171717;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 18px 0;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, color 0.25s ease;
}
.mobile-overlay.open .mobile-overlay-nav li:nth-child(1) a { transform: translateY(0); opacity: 1; transition-delay: 0.08s; }
.mobile-overlay.open .mobile-overlay-nav li:nth-child(2) a { transform: translateY(0); opacity: 1; transition-delay: 0.13s; }
.mobile-overlay.open .mobile-overlay-nav li:nth-child(3) a { transform: translateY(0); opacity: 1; transition-delay: 0.18s; }
.mobile-overlay.open .mobile-overlay-nav li:nth-child(4) a { transform: translateY(0); opacity: 1; transition-delay: 0.23s; }
.mobile-overlay.open .mobile-overlay-nav li:nth-child(5) a { transform: translateY(0); opacity: 1; transition-delay: 0.28s; }
.mobile-overlay.open .mobile-overlay-nav li:nth-child(6) a { transform: translateY(0); opacity: 1; transition-delay: 0.33s; }
.mobile-overlay-nav a:hover { color: #FF0000; }
/* Pagina corrente: solo rosso, senza underline */
.mobile-overlay-nav a.active { color: #FF0000; }
.mobile-overlay-contact {
    margin-top: 52px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease 0.38s, transform 0.5s ease 0.38s;
}
.mobile-overlay.open .mobile-overlay-contact { opacity: 1; transform: translateY(0); }
.mobile-overlay-contact p {
    color: rgba(0,0,0,0.35);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.mobile-overlay-contact a {
    color: rgba(0,0,0,0.5);
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
    display: block;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}
.mobile-overlay-contact a:hover { color: #FF0000; }

@media (max-width: 991px) {
    .navbar { padding: 12px 0 !important; }
    .navbar .container { padding-left: 20px !important; padding-right: 20px !important; }
    .logo-transparent, .logo-scrolled { height: 44px; }
    .mobile-toggle { display: flex; align-items: center; }
    /* Nascondi il collapse Bootstrap su mobile */
    .navbar-collapse { display: none !important; }
    /* Pagine interne */
    .navbar-inner {
        background-color: rgba(255,255,255,0.99) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    /* Nascondi underline active su mobile */
    .navbar-inner .navbar-nav .nav-link.active::after,
    .navbar.nav-scroll .navbar-nav .nav-link.active::after { display: none; }
    /* Ridimensiona link overlay su schermi piccoli */
    .mobile-overlay { padding: 90px 32px 50px; }
    .mobile-overlay-nav a { font-size: 28px; letter-spacing: 2px; padding: 14px 0; }
}
@media (max-width: 550px) {
    .navbar .container { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 480px) {
    .mobile-overlay-nav a { font-size: 24px; }
}

/* ===== HERO VIDEO ===== */
.kenburns-section { height: 100vh; min-height: 600px; }
.kenburns-inner { padding: 90px 0 0 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 100vh; min-height: 600px; }
.kenburns-inner .hero-tagline { font-size: 56px; font-weight: 300; color: #ffffff; letter-spacing: 8px; text-transform: uppercase; margin: 0; }
@media (max-width: 768px) {
    .kenburns-section { height: 70vh; min-height: 400px; }
    .kenburns-inner { height: 70vh; min-height: 400px; }
    .kenburns-inner .hero-tagline { font-size: 32px; letter-spacing: 4px; }
}

/* ===== SOLO AFFARI SECTION ===== */
.solo-affari-section { padding: 80px 0; text-align: center; background-color: #fff; }
.solo-affari-content { display: flex; flex-direction: column; align-items: center; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.solo-affari-logo { width: 50px; height: auto; margin-bottom: 25px; }
.solo-affari-title { font-size: 48px; font-weight: 300; color: #171717; margin-bottom: 20px; line-height: 1.2; }
.solo-affari-description { font-size: 18px; font-weight: 300; color: #737373; line-height: 1.75; margin-bottom: 0; }
@media (max-width: 768px) {
    /* Padding verticale sezioni index — mobile */
    .section-padding { padding: 60px 0 !important; }
    /* Hero banner: mantieni padding-top per navbar e centra verticalmente */
    .banner-header.section-padding { padding-top: 90px !important; padding-bottom: 90px !important; }
    .section-linetitle { margin-bottom: 40px; }
    .solo-affari-section { padding: 40px 0; }
    .solo-affari-title { font-size: 28px; }
}

/* ===== PRIMO PIANO + IMMOBILI — card cliccabile + freccia (identica a .services .item .arrow) ===== */
.portfolio4 .item {
    position: relative; cursor: pointer;
    height: 400px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.portfolio4 .item > img { display: none !important; }
.portfolio4 .item .primo-piano-arrow,
.immobili-grid .property-card .primo-piano-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 15px;
    font-weight: 300;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #171717;
    transition: all .5s;
    border: 1px solid #f5f5f5;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio4 .item:hover .primo-piano-arrow,
.immobili-grid .property-card:hover .primo-piano-arrow {
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 15px;
    border-radius: 0 4px 0 50px;
    background-color: #FF0000;
    color: #fff;
    border-top: 1px solid transparent;
    border-bottom: 1px solid #FF0000;
    border-left: 1px solid #FF0000;
    border-right: 1px solid transparent;
}

/* ===== PROPERTY INFO OVERLAY (carousel Primo Piano) ===== */
.portfolio4 .item .property-info {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    background: rgba(255,255,255,0.70); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); padding: 18px 22px 16px; z-index: 2;
}
.portfolio4 .item .property-info .property-title { font-size: 20px; font-weight: 300; color: #171717; margin-bottom: 0; line-height: 1.3; }
.portfolio4 .item .property-info .property-expand { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1); }
.portfolio4 .item:hover .property-info .property-expand { max-height: 100px; }
.portfolio4 .item .property-info .property-divider { border: none; height: 1px; background-color: #FF0000; width: 0; margin: 12px 0; transition: width 0.45s cubic-bezier(0.4,0,0.2,1) 0.12s; }
.portfolio4 .item:hover .property-info .property-divider { width: 100%; }
.portfolio4 .item .property-info .property-details { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #444; opacity: 0; transform: translateY(6px); transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1) 0.3s, transform 0.35s cubic-bezier(0.4,0,0.2,1) 0.3s; }
.portfolio4 .item:hover .property-info .property-details { opacity: 1; transform: translateY(0); }
.portfolio4 .item .property-info .property-meta { font-size: 13px; color: #737373; font-weight: 300; }
.portfolio4 .item .property-info .property-price { font-size: 15px; color: #171717; font-weight: 500; white-space: nowrap; }

/* ===== PRIMO PIANO — controlli (chevron + progress) ===== */
.primo-piano-controls {
    display: flex; align-items: center; gap: 28px;
    margin-top: 28px;
}
.primo-piano-progress-wrap {
    flex: 1; height: 1px;
    background: rgba(23,23,23,0.25);
    position: relative; overflow: hidden;
    cursor: pointer;
}
.primo-piano-progress-bar {
    position: absolute; top: 0; left: 0;
    height: 100%; width: 0%;
    background: #171717;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.primo-piano-nav { display: flex; gap: 10px; }
.pp-prev, .pp-next, .dg-prev, .dg-next {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: 1px solid rgba(23,23,23,0.3);
    border-radius: 50%;
    color: #171717;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.pp-prev:hover, .pp-next:hover, .dg-prev:hover, .dg-next:hover {
    border-color: #FF0000;
    color: #ffffff;
    background: #FF0000;
}
@media (max-width: 768px) {
    .primo-piano-controls { margin-top: 20px; gap: 20px; }
    .pp-prev, .pp-next, .dg-prev, .dg-next { width: 38px; height: 38px; font-size: 12px; }
}

/* ===== SERVICES - griglia 3 colonne ===== */
.services .item { display: flex; flex-direction: column; height: 100%; }

/* ===== CTA CARDS (Vendi / Acquista) ===== */
.cta-cards-section { padding: 80px 0; background-image: url('../img/background-section-card.png'); background-size: cover; background-position: center; }
.cta-card { position: relative; overflow: hidden; background: #ffffff; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; height: 400px; }
.cta-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/background-card.png'); background-size: cover; background-position: center; z-index: 0; }
.cta-card-content { position: relative; z-index: 1; width: 100%; }
.cta-card-content h2 { color: #171717; font-size: 32px; font-weight: 300; margin-bottom: 14px; line-height: 1.2; }
.cta-card-content p { color: #737373; font-size: 14px; font-weight: 300; margin-bottom: 24px; line-height: 1.7; }
.cta-card-link { display: inline-block; font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: #171717; text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s ease; }
.cta-card-link:hover { color: #FF0000; }
@media (max-width: 1024px) and (min-width: 769px) {
    .cta-card { height: 340px; padding: 40px 36px; }
    .cta-card-content h2 { font-size: 30px; }
}
@media (max-width: 768px) {
    .cta-cards-section { padding: 40px 0; }
    .cta-card { padding: 32px 28px; height: auto; min-height: unset; margin-bottom: 0; }
    .cta-card-content h2 { font-size: 20px; margin-bottom: 10px; }
    .cta-card-content p { font-size: 13px; margin-bottom: 18px; }
}

/* ===== NAVBAR INNER PAGES (sfondo bianco, link scuri) ===== */
.navbar-inner {
    background-color: rgba(255,255,255,0.99) !important;
}
.navbar-inner .navbar-nav .nav-link { color: #171717 !important; }
.navbar-inner .navbar-nav .nav-link:hover { color: #FF0000 !important; }
.navbar-inner .navbar-nav .active { color: #FF0000 !important; }
.navbar-inner .navbar-toggler-icon, .navbar-inner .icon-bar { color: #171717 !important; }
.navbar-inner .dropdown-menu { background-color: #ffffff; }
/* ===== IMMOBILI PAGE ===== */
.immobili-hero {
    position: relative; height: 750px; min-height: 750px;
    background-image: url('../img/immboili.png');
    background-size: cover; background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    padding-top: 90px; box-sizing: border-box;
}
@media (hover: none) and (pointer: coarse), (max-width: 1366px) {
    .immobili-hero { background-attachment: scroll; }
}
.immobili-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.immobili-hero-content { position: relative; z-index: 1; text-align: center; }
.immobili-hero-content h1 {
    font-size: 56px; font-weight: 300; color: #ffffff;
    letter-spacing: 10px; text-transform: uppercase; margin: 0;
}
@media (max-width: 768px) {
    .immobili-hero { height: 60vh; min-height: 350px; }
    .immobili-hero-content h1 { font-size: 36px; letter-spacing: 6px; }
}
.immobili-intro { padding: 60px 0 40px; text-align: center; }
.immobili-intro p { font-size: 16px; font-weight: 300; color: #555; line-height: 1.8; max-width: 700px; margin: 0 auto; }
.immobili-filters { padding: 0 0 50px; }
.immobili-filters .filter-group { display: flex; align-items: stretch; gap: 40px; }
.filter-select {
    appearance: none; -webkit-appearance: none;
    background-color: #ffffff; border: 1px solid #e0e0e0;
    padding: 14px 40px 14px 20px; font-size: 14px;
    font-family: 'Outfit', sans-serif; color: #171717;
    cursor: pointer; outline: none; flex: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23171717' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; transition: border-color 0.3s ease;
}
.filter-select:hover, .filter-select:focus { border-color: #FF0000; z-index: 1; position: relative; }
@media (max-width: 767px) { .immobili-filters .filter-group { flex-direction: column; gap: 16px; } }
.immobili-grid { padding: 0 0 60px; }
.immobili-grid .container, .immobili-filters .container { max-width: 1320px; }
.immobili-grid .property-card {
    position: relative; overflow: hidden; margin-bottom: 30px;
    height: 400px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    cursor: pointer;
    transition: .65s cubic-bezier(.05, .2, .1, 1);
}
.immobili-grid .property-card > img { display: none !important; }
.immobili-grid .property-card:hover { transform: translateY(-5px); border-radius: 4px; }
.property-info {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    background: rgba(255,255,255,0.70); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); padding: 18px 22px 16px;
}
.property-info .property-title { font-size: 20px; font-weight: 300; color: #171717; margin-bottom: 0; line-height: 1.3; }
.property-info .property-expand { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1); }
.property-info .property-divider { border: none; height: 1px; background-color: #FF0000; width: 0; margin: 12px 0; transition: width 0.45s cubic-bezier(0.4,0,0.2,1) 0.12s; }
.property-info .property-details { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #444; opacity: 0; transform: translateY(6px); transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1) 0.3s, transform 0.35s cubic-bezier(0.4,0,0.2,1) 0.3s; }
.immobili-grid .property-card:hover .property-info .property-expand { max-height: 100px; }
.immobili-grid .property-card:hover .property-info .property-divider { width: 100%; }
.immobili-grid .property-card:hover .property-info .property-details { opacity: 1; transform: translateY(0); }
.property-info .property-price { font-size: 15px; color: #171717; font-weight: 500; white-space: nowrap; }
.immobili-pagination { padding: 0 0 80px; }

/* ===== NAVBAR INNER — active underline + logo wrapper ===== */
.navbar-inner .logo-wrapper h2 { color: #171717; }
.navbar-inner .navbar-nav .nav-item { position: relative; }
.navbar-inner .navbar-nav .nav-link { position: relative; }
.navbar-inner .navbar-nav .nav-link.active { color: #FF0000 !important; }
.navbar-inner .navbar-nav .nav-link.active::after,
.navbar.nav-scroll .navbar-nav .nav-link.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background-color: #FF0000;
}
/* ===== SHARED — banner-header top padding ===== */
.banner-header {
    padding-top: 90px;
    padding-bottom: 90px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.banner-header h1 { font-size: 56px !important; font-weight: 300 !important; letter-spacing: 10px !important; color: #ffffff !important; text-transform: uppercase !important; }
@media (max-width: 768px) { .banner-header h1 { font-size: 36px !important; letter-spacing: 6px !important; } }

/* ===== CHI SIAMO PAGE ===== */
.faq-img { width: 100%; height: 500px; object-fit: cover; }
@media (max-width: 991px) { .faq-img { height: 300px; margin-top: 40px; } }

/* ===== SERVIZI PAGE ===== */
.servizi-intro { padding: 70px 0 0; text-align: center; }
.servizi-intro p { max-width: 820px; margin: 0 auto; font-size: 16px; color: #555; line-height: 1.8; }
@media (max-width: 768px) { .servizi-intro { padding: 30px 0 20px; } }
.services .item .icon i,
.services .item .icon:before,
.services .item .icon [class^="flaticon-"],
.services .item .icon [class*=" flaticon-"] { color: #FF0000 !important; }
.services .row { display: flex; flex-wrap: wrap; }
.services .row > [class*="col-"] { display: flex; }
.services .item { display: flex; flex-direction: column; width: 100%; background: #ffffff; }
.services .item p { flex: 1; }

/* ===== CONTATTI PAGE ===== */
.map-section { padding: 80px 0; }
.map-section .section-title { margin-bottom: 40px; }
.map-wrapper { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.map-wrapper iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ===== DETTAGLIO IMMOBILE PAGE ===== */
/* ===== SWIPER GALLERIA DETTAGLIO ===== */
.dg-swiper { overflow: hidden; }
.dg-swiper .swiper-slide { overflow: hidden; border-radius: 4px; cursor: pointer; }
.dg-swiper .swiper-slide .img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.dg-swiper .swiper-slide .img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dg-swiper .swiper-slide:hover .img img { transform: scale(1.04); }

.dettaglio-hero {
    width: 100%; height: 750px;
    background-image: url('../img/Attico vista mare pittolungu.png');
    background-size: cover; background-position: center;
}
.dettaglio-titolo { padding: 80px 0 60px; text-align: center; }
.dettaglio-titolo h1 { font-size: 45px; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: #171717; margin: 0; }
@media (max-width: 768px) {
    .dettaglio-titolo h1 { font-size: 36px; letter-spacing: 2px; }
    /* Galleria: elimina offset laterale, una card centrata */
    .dettaglio-galleria .box-right-7 { margin-right: 0; }
    .dettaglio-galleria .container-fluid { padding: 0 15px; }
    /* Controlli: frecce centrate, progress bar nascosta */
    .dettaglio-galleria .primo-piano-controls {
        justify-content: center;
    }
    .dettaglio-galleria .primo-piano-progress-wrap { display: none; }
    /* Card: margine laterale 8px dai bordi */
    .dettaglio-galleria .container-fluid { padding: 0 8px !important; }
}
.dettaglio-content { padding: 0 0 100px; }
.dettaglio-info h2 { font-size: 28px; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; color: #171717; margin-bottom: 30px; }
.dettaglio-info p { font-size: 15px; font-weight: 300; color: #555; line-height: 1.9; margin-bottom: 20px; }
.caratteristiche-box { background-color: #f5f5f5; padding: 50px 44px; margin-top: 60px; display: flex; gap: 40px; align-items: flex-start; }
.caratteristiche-box .char-title { font-size: 36px; font-weight: 300; color: #171717; white-space: nowrap; min-width: 200px; padding-top: 4px; }
.caratteristiche-box .char-list { flex: 1; list-style: none; padding: 0; margin: 0; }
.caratteristiche-box .char-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 10px 0; color: #737373; }
.caratteristiche-box .char-list li::before { content: '•'; color: #FF0000; font-size: 18px; line-height: 1; flex-shrink: 0; }
.caratteristiche-box .char-list li strong { color: #737373; font-weight: 600; }
@media (max-width: 767px) { .caratteristiche-box { flex-direction: column; gap: 20px; padding: 36px 24px; } .caratteristiche-box .char-title { min-width: unset; font-size: 28px; } }
.dettaglio-scheda { position: sticky; top: 100px; }
@media (max-width: 991px) { .dettaglio-scheda { position: static; margin-top: 40px; } }
.dettaglio-scheda .cont .item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.2); }
.dettaglio-scheda .cont .item:last-child { border-bottom: none; }
.dettaglio-scheda .cont .item .icon { width: 30px; text-align: center; color: #FF0000; font-size: 18px; flex-shrink: 0; }
.dettaglio-scheda .cont .item .title { flex: 1; color: #171717; font-weight: 300; font-size: 15px; padding-left: 12px; }
.dettaglio-scheda .cont .item .value { flex: 1; text-align: right; color: #737373; font-size: 15px; }
.dettaglio-scheda .cont .item .value.disponibile { color: #4caf50; }
/* Team */
.team .team-container { width: 100%; }

/* Team carousel nav arrows */
.team .owl-theme .owl-nav {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: translateY(-50%) translateX(0) !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.team .team-container:hover .owl-theme .owl-nav:not(.disabled) {
    opacity: 1;
    pointer-events: auto;
}
.team .owl-theme .owl-nav [class*=owl-] {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid rgba(23,23,23,0.3) !important;
    color: #171717 !important;
    font-size: 13px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}
.team .owl-theme .owl-nav [class*=owl-]:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
    color: #fff !important;
}

.dettaglio-galleria { padding: 0 0 70px; }
.dettaglio-galleria .section-linetitle { margin-bottom: 40px; }
.dettaglio-contatto { padding: 0; }

/* ===== HEADING HIERARCHY — compensazione cambio tag ===== */
/* Servizi: h5 → h2 */
.services .item h2 { font-size: 20px; font-weight: 400; color: #171717; margin-bottom: 15px; }
/* Blog: immagine fissa */
.blog .item .img { height: 220px; overflow: hidden; }
.blog .item .img img { width: 100%; height: 100%; object-fit: cover; }
/* Blog listing: titoli — h3 su home carousel, h2 su pagina blog */
.blog .item .cont h3,
.blog .item .cont h2 { font-size: 20px; font-weight: 400; color: #171717; margin-bottom: 10px; line-height: 1.4; }
.blog .item .cont h3 a,
.blog .item .cont h2 a { color: inherit; text-decoration: none; }
.blog .item .cont h3 a:hover,
.blog .item .cont h2 a:hover { color: #FF0000; }
/* Blog metadata: h5 → p */
.blog .item .author p { font-size: 12px; color: #888; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.blog .item .author p a { color: inherit; }
/* Contact box: h5 → h2 */
.contact-box .item h2 { font-size: 18px; font-weight: 400; color: #171717; margin-bottom: 10px; letter-spacing: 1px; transition: color 0.3s ease; }
.contact-box .item:hover h2 { color: #fff; }

/* ===== PRIVACY CHECKBOX + SUBMIT ===== */
.form-check-privacy { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0; }
.form-check-privacy input[type="checkbox"] {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1); border-radius: 4px;
    background-color: transparent; transition: border 0.3s ease, background 0.3s ease;
    position: relative;
}
.form-check-privacy input[type="checkbox"]:checked {
    background-color: #FF0000; border-color: #FF0000;
}
.form-check-privacy input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg);
}
.form-check-privacy label { font-size: 13px; font-weight: 300; color: #737373; line-height: 1.5; cursor: pointer; }
.form-check-privacy label a { color: #171717; text-decoration: underline; text-underline-offset: 2px; }
.form-check-privacy label a:hover { color: #FF0000; }
.form-submit-right { text-align: right; margin-top: 15px; }

/* ===== LAVORA CON NOI PAGE ===== */
.posizioni-section { padding: 80px 0; background-color: #ffffff; }
.posizioni-section .section-title { text-align: center; margin-bottom: 60px; }
.posizione-item { padding: 30px 0; border-bottom: 1px solid #ebebeb; }
.posizione-item:first-child { border-top: 1px solid #ebebeb; }
.posizione-item .ruolo { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.posizione-item .descrizione { font-size: 15px; color: #171717; font-weight: 400; margin: 0; }
.posizione-item .label { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.posizione-item .valore { font-size: 15px; color: #171717; font-weight: 400; margin: 0; }

/* =============================================================
   CMS CONTENT — .text-abstract
   L'utente inserisce contenuto in TinyMCE senza classi;
   il div contenitore .text-abstract gestisce tutti gli stili.
   ============================================================= */

.text-abstract p {
    font-size: 15px;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* --- ul → bullet con trattino rosso --- */
.text-abstract ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.text-abstract ul li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}
.text-abstract ul li::before {
    content: '–';
    color: #FF0000;
    position: absolute;
    left: 0;
    font-weight: 400;
    line-height: 1.8;
}

/* --- ol → lista numerata con numero in rosso --- */
.text-abstract ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0 0 20px 0;
}
.text-abstract ol li {
    font-size: 15px;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 4px;
}
.text-abstract ol li::marker {
    color: #FF0000;
    font-weight: 400;
}

/* --- Variante checklist: tick rosso al posto del trattino --- */
.text-checklist ul li::before {
    content: none;
}
.text-checklist ul li {
    padding-left: 22px;
}
.text-checklist ul li .ti-check {
    position: absolute;
    left: 0;
    color: #FF0000;
    font-size: 13px;
    line-height: 1.8;
}

/* ===== 404 PAGE ===== */
.notfound {
    background-image: url("../img/404.jpg") !important;
}

/* ===== FAQ PAGE ===== */
.faq-banner {
    background-image: url("../img/question.jpg") !important;
}
