@charset "UTF-8";

/* ============================================================
   1. CSS VARIABLES
============================================================ */

:root {
	--page-max-width: 1440px;
	--gutter: 26px;
	--card-radius: 28px;
	--radius-full: 999px;
	--search-radius: 12px;
	--iqera-green: #006D84;
	--iqera-green-soft: #009ebf;
	--iqera-red: #45010A;
	--iqera-red-strong: #6B0908;
	--darkblue: #0c0c2e;
	--shadow-strong: 0 12px 40px rgba(18, 38, 63, 0.12);
	--shadow-soft: 0 6px 18px rgba(18, 38, 63, 0.06);
	 --shadow-hover: 0 12px 40px rgba(0, 109, 132, 0.16);
	--theme-gradient1: linear-gradient(to right, var(--iqera-green) 0%,
		var(--iqera-green-soft) 51%, var(--iqera-green) 100%);
	--dettaglio-muted: #6b7280;
	--dettaglio-border: #e5e7eb;
	--transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	--iqera-red-gradient-animated: linear-gradient(
        to right,
        var(--iqera-red) 0%,
        var(--iqera-red-strong) 40%,
        var(--iqera-red) 80%
    );
}

::selection {
	color: #f1f1f1;
	background: #7b201e;
}

/* ============================================================
   2. RESET & BASE STYLES
============================================================ */


* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #102030;
}

a {
  text-decoration: none;
}

/** Override Bootstrap form controls **/
.form-control:focus {
  box-shadow: 0 0 0 2px rgba(0, 109, 132, 0.25);
  border-color: var(--iqera-green);
}

.btn.btn-outline-iqera-green {
	border-color: var(--iqera-green);
	color: var(--iqera-green);
}

/* Override select options style */

.form-select {
	color: var(--iqera-green);
}

.form-select option {
    color: var(--iqera-green);
}

/* ============================================================
    COMPONENTE RANGE
============================================================ */
.qf-dropdown-range {
    width: 300px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 109, 132, 0.1);
}

.qf-dropdown-range .form-control {
    border-radius: 10px;
    border: 1.5px solid rgba(0, 109, 132, 0.15);
    font-size: .9rem;
    font-weight: 500;
}

.qf-dropdown-range .form-control:focus {
    border-color: var(--iqera-green);
    box-shadow: 0 0 0 3px rgba(0, 109, 132, 0.1);
}

/* Range Box - Liste affiancate */
.range-box {
    position: relative;
    height: 180px;
    margin-top: 8px;
}

.range-options {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.range-list-left {
    left: 0;
    width: 50%;
    padding-right: 6px;
    border-right: 1px solid rgba(0, 109, 132, 0.1);
}

.range-list-right {
    right: 0;
    width: 50%;
    padding-left: 6px;
}

.range-options li {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: #475569;
    transition: all .2s ease;
}

.range-options li:hover {
    background: rgba(0, 109, 132, 0.08);
    color: var(--iqera-green);
}

.range-options li.active {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    font-weight: 600;
}

/* Scrollbar personalizzata */
.range-options::-webkit-scrollbar {
    width: 4px;
}

.range-options::-webkit-scrollbar-track {
    background: transparent;
}

.range-options::-webkit-scrollbar-thumb {
    background: rgba(0, 109, 132, 0.2);
    border-radius: 4px;
}

.range-options::-webkit-scrollbar-thumb:hover {
    background: var(--iqera-green);
}

/* Mobile */
@media (max-width: 768px) {
    .qf-dropdown-range {
        width: 280px;
        max-width: 90vw;
    }
    
    .range-box {
        height: 200px;
    }
}

/* ============================================================
   💎 SIDEBAR RANGE FILTERS
============================================================ */

.sidebar-range-filter .form-control {
    border-radius: 10px;
    border: 1.5px solid rgba(0, 109, 132, 0.15);
    font-size: .85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    transition: all .25s ease;
}

.sidebar-range-filter .form-control:focus {
    border-color: var(--iqera-green);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 109, 132, 0.08);
}

/* Range Box nella Sidebar */
.sidebar-range-box {
    position: relative;
    height: 180px;
    margin-top: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(0, 109, 132, 0.03) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 109, 132, 0.08);
    padding: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 109, 132, 0.04);
}

.sidebar-range-box .range-options {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 8px;
    bottom: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-range-box .range-list-left {
    left: 8px;
    width: calc(50% - 9px);
    padding-right: 6px;
    border-right: 1.5px solid rgba(0, 109, 132, 0.12);
}

.sidebar-range-box .range-list-right {
    right: 8px;
    width: calc(50% - 9px);
    padding-left: 6px;
}

.sidebar-range-box .range-options li {
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: #475569;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-range-box .range-options li:hover {
    background: rgba(0, 109, 132, 0.1);
    color: var(--iqera-green);
    transform: translateX(2px);
}

.sidebar-range-box .range-options li.active {
    background: linear-gradient(135deg, 
        var(--iqera-green) 0%, 
        var(--iqera-green-soft) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 109, 132, 0.25);
}

.sidebar-range-box .range-options li.active::before {
    content: '✓';
    position: absolute;
    left: -12px;
    font-size: .7rem;
    opacity: 0.9;
}

/* Scrollbar elegante */
.sidebar-range-box .range-options::-webkit-scrollbar {
    width: 3px;
}

.sidebar-range-box .range-options::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-range-box .range-options::-webkit-scrollbar-thumb {
    background: rgba(0, 109, 132, 0.25);
    border-radius: 10px;
}

.sidebar-range-box .range-options::-webkit-scrollbar-thumb:hover {
    background: var(--iqera-green);
}

/* Responsività */
@media (max-width: 768px) {
    .sidebar-range-box {
        height: 200px;
    }
    
    .sidebar-range-box .range-options li {
        padding: 8px 10px;
        font-size: .85rem;
    }
}


/* =========================================================
   IMMAGINE PERFETTA
========================================================= */

/* =========================================================
   CTA OVERLAY
========================================================= */

.card-overlay a {
    background: rgba(255,255,255,0.95);
    padding: 10px 22px;
    border-radius: 40px;
    font-size: .88rem;
    font-weight: 600;
    transform: translateY(8px);
    opacity: 0;
    transition: .35s ease;
    backdrop-filter: blur(5px);
}

/* =========================================================
   CONTENUTO
========================================================= */

.card-body {
    padding: 26px 26px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* =========================================================
   DESCRIZIONE – “…” SOLO SE TROPPO LUNGA
========================================================= */

.description {
    line-height: 1.45;
    max-height: calc(1.45em * 3);
    overflow: hidden;

    color: #475569;
    font-size: .94rem;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    position: relative;
}


/* Logo in alto piccolo */

.login-top-icon img {
  max-height: 40px;
  width: auto;
  opacity: 0.9;
}



/* Hover */
.wa-link:hover {
  color: #25D366;            /* testo verde */
  transform: translateX(3px);
}

.wa-link:hover .wa-icon {
  transform: scale(1.10);
  color: #1EBE57 !important; /* verde hover più intenso */
}


.servizi-image-wrapper img {
    transition: transform 0.5s ease;
}

.servizi-image-wrapper:hover img {
    transform: scale(1.03);
}


/* ============================== 
   SIDEBAR THUMBNAILS 
============================== */
.photo-thumbs {
  width: 200px; /* Aumentata da 160px a 200px */
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 109, 132, 0.5) rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}



.photo-preview {
  width: 100%;
  height: calc(100vh - 160px); /* Altezza fissa con margini */
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 109, 132, 0.2);
  transition: opacity 0.3s ease;
}



.thumb-btn img {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  filter: brightness(0.85);
}

.thumb-btn:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}
.thumb-btn[aria-current="true"] img {
  outline: 3px solid var(--iqera-green);
  outline-offset: 2px;
  border-radius: 8px;
  transform: scale(1.05);
  filter: brightness(1);
  box-shadow: 0 0 20px rgba(0, 109, 132, 0.5);
}

/* ============================================================
   3. UTILITY CLASSES
============================================================ */


.page-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.text-iqera-green {
  color: var(--iqera-green) !important;
}

.listings-section p.text-muted {
    font-size: 1.05rem;
    color: #6b7280 !important;
}
.deadline-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 14px;
    background: rgba(0,109,132,0.10);
    border: 1px solid rgba(0,109,132,0.25);
    border-radius: 12px;
    backdrop-filter: blur(4px);

    color: var(--iqera-green);
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.2;

    min-width: 115px;
    text-align: right;

    transition: all .3s ease;
}

.type-name {
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}


.bg-teal {
  background-color: var(--iqera-green);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.divider {
  position: relative;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  z-index: 2;
}

#forgot-pwd-btn:hover {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(0, 158, 191, 0.5);
}
.wa-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.94rem;
  transition: var(--transition-smooth);
}
.info-link {
  color: var(--iqera-green-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
.login-access-card {
  background: #0f172a;
  border-radius: 18px;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
}
.bg-gradient-iqera-soft {
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.15), rgba(0, 158, 191, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.text-iqera-green {
    color: var(--iqera-green);
}
.text-14 {
    font-size: 0.875rem;
}

.text-16 {
    font-size: 1rem;
}

/* ============================================================
   4. LOADING STATE
============================================================ */


/* Loading */
.loading {
	filter: blur(3px);
    pointer-events: none;
}

/* ============================================================
   5. LOADER COMPONENTS
============================================================ */


/**=====================
    loader css start
==========================**/
.loader-wrapper {
  height: 100vh;
  width: 100vw;
  background-color: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0; }
  .loader-wrapper.img-gif {
    overflow: hidden; }
    .loader-wrapper.img-gif img {
      width: 120px; }

.loader-text {
  text-align: center; }
  .loader-text img {
    height: 150px; }
  .loader-text h3 {
    margin-bottom: 0;
    margin-top: 10px;
    font-weight: 500;
    padding: 0 15px; }

.loader-img {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 100vh; }
  .loader-img img {
    height: 150px; }

/**=====================
    loader css end
==========================**/

/* ============================================================
   6. BADGES & LABELS
============================================================ */
.badge-iqera-green {
  background: var(--iqera-green)!important;
  color: #fff;
}

.badge-iqera-red {
  background: var(--iqera-red)!important;
  color: #fff;
}

/* =========================================================
   BADGE GLASS
========================================================= */

.badge-pos {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
    z-index: 3;
}

.badge-aste {
    background: rgba(69, 1, 10, 0.65);
}
.badge-remarketing {
    background: rgba(0, 109, 132, 0.65);
}

.price-label {
    color: #9ca3af;
    font-size: .78rem;
}

.bg-badge-remarketing {
  background-color: var(--iqera-green);
  color: #fff;
}

.bg-badge-aste {
  background-color: var(--iqera-red);
  color: #fff;
}
.feature-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 40px;
    backdrop-filter: blur(6px);
}

/* ===== BADGE HERO ===== */

.pricing-badge {
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.08), rgba(0, 158, 191, 0.08));
    color: var(--iqera-green);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
}

/* ============================================================
   7. BUTTONS
============================================================ */
.btn-cookie {
    background: var(--theme-gradient1);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cookie::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-cookie:hover::before {
    left: 100%;
}

.btn-cookie:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 109, 132, 0.4);
}


/* BUTTON CTA */
.btn-proposte {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    background-color: var(--iqera-green);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-proposte:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 109, 132, 0.4);
}

.btn-iqera-red-brand {
  background-color: var(--iqera-red);
  color: #fff;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn-iqera-red-brand:hover {
  background-color: #500606;
  color: #fff;
}

/* Icon buttons */
.btn-iqera-red-aste {
    background: var(--iqera-red);
    transition: all 0.35s ease;
    color: #fff;
    position: relative;
    overflow: hidden;
}


.btn-iqera-green {
  background-color: var(--iqera-green);
  color: #fff;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.proposal-card:hover .btn-iqera-green {
  background-color: #004d5f;
  transform: translateY(-2px) scale(1.03);
}

.btn-iqera-red {
  background-color: var(--iqera-red);
  color: #fff;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.proposal-card:hover .btn-iqera-red {
  background-color: #4d0404;
  transform: translateY(-2px) scale(1.03);
}
.btn-iqera-green-contact {
    background: var(--iqera-green);
    border: none;
    color: #fff !important;
    padding: 14px;
    border-radius: 14px;
    letter-spacing: 0.3px;
    transition: 0.35s ease;
}

.btn-iqera-green-contact:hover {
    background: var(--iqera-green-soft);
    box-shadow: 0 12px 26px rgba(0, 158, 191, 0.35);
}

.btn-bordeaux {
  background-color: var(--iqera-red);
  color: #fff;
  border: none;
  padding: 6px 16px;
  transition: background-color 0.3s;
}

.btn-bordeaux:hover {
  background-color: var(--iqera-red);
  color: #fff;
}
.btn-gradient {
  background: linear-gradient(90deg, #006D84, #009EBF);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.8s;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 158, 191, 0.5);
  color: var(--iqera-red);
}

.btn-gradient:active {
  transform: translateY(0);
}

/* Social buttons */
.btn-federato {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 158, 191, 0.3);
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn-federato img{
  width: auto;
  height: 26px;
}

.btn-federato:hover {
  background: linear-gradient(135deg, #006D84, #009EBF);
  box-shadow: 0 0 20px rgba(0, 158, 191, 0.5);
  transform: translateY(-3px) scale(1.08);
}

/* Close button personalizzato */
.btn-close-white {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 100;
}

.btn-close-white:hover {
  transform: rotate(180deg);
}

/* Button */
.btn-login-clean {
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 0.55rem;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-login-clean:hover {
  background: var(--theme-gradient1);
  transform: translateY(-2px);
}


/* ==============================
   PREMIUM BUTTON
============================== */
.det-btn-gradient {
  background: var(--theme-gradient1);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: #fff;
  border: none;
  letter-spacing: .3px;
  transition: all .25s ease;
}

.det-btn-gradient:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn-iqera-green-brand {
    background: var(--theme-gradient1);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.975rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 109, 132, 0.2);
}

.btn-iqera-green-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 109, 132, 0.3);
    color: white;
}

.btn-iqera-green-brand i {
    transition: transform 0.3s ease;
}

.btn-iqera-green-brand:hover i {
    transform: translateX(3px);
}

/* ===============================
   WHATSAPP BUTTON - PREMIUM STYLE
   =============================== */
.btn-wapp-premium {
    background: linear-gradient(135deg, #25D366, #1ebe57);
    color: #fff !important;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    letter-spacing: 0.2px;
}

.btn-wapp-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
    color: #fff !important;
}

.btn-wapp-premium:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-wapp-premium:hover .wapp-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: brightness(1.2);
}

/* ========================================
   GOOGLE MAPS BUTTON - PREMIUM STYLE
   ======================================== */
.btn-gmaps-premium {
    background: linear-gradient(135deg, #006D84, #009EBF);
    color: #fff !important;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 109, 132, 0.25);
    letter-spacing: 0.2px;
}

.btn-gmaps-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 109, 132, 0.33);
    color: #fff !important;
}

.btn-gmaps-premium:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-gmaps-premium:hover .gmaps-icon {
    transform: scale(1.15) rotate(4deg);
    filter: brightness(1.15);
}

/* ============================================================
   8. COOKIE BANNER
============================================================ */

/* Cookie Banner */

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
   
}

.cookie-content p {
    color: var(--darkblue);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--iqera-green-soft);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cookie-content a:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 158, 191, 0.5);
}

/* Pulsante cookie */

/* ============================================================
   9. FLOATING CTA
============================================================ */

#floatingCta {
    transition: 
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

#floatingCta.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
}

#floatingCta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#ctaCard {
    max-width: 25rem;
    border-radius: 15px !important;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ctaCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   10. HEADER & NAVBAR
============================================================ */

.dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, #006D84, #009ebf) !important;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
}

/* HEADER */
.site-header {
  background: #fff;
}

.navbar-nav .nav-link {
  color: var(--iqera-green) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--iqera-red) !important;
}

.navbar-nav .nav-link.active {
	font-weight: 600;
}


/* ================================
   🔝 NAVBAR – CLEAN & INVISIBLE
================================ */

/* ================================
   🔝 NAVBAR – CLEAN REAL ESTATE
================================ */

.navbar {
  position: relative;
  z-index: 1000;

  background-color: #ffffff;

  /* separazione elegante */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  /* ombra quasi impercettibile */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);

  transition: box-shadow .25s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


/* Dropdown moderno */
.navbar .dropdown-menu {
  background: #fff;
  border-radius: 12px;
  min-width: 230px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.navbar .dropdown-menu .dropdown-item {
  font-weight: 500;
  color: var(--iqera-green);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: rgba(107, 9, 8, 0.08);
  color: var(--iqera-red);
  transform: translateX(3px);
}

.navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
}
.navbar-nav .nav-link:hover {
  transform: translateY(-1px);
}
#langDropdown img {
  border-radius: 4px;
  width: 24px;
  height: 16px;
  object-fit: cover;
}
.nav-modern .nav-link {
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    color: #444;
}
.nav-modern .nav-link.active {
    background: var(--iqera-green);
    color: white;
}

/* ==============================
   COMPANY HEADER BLOCK
============================== */
/* Tabs media (nav-pills restylizzati) */
.nav-media .nav-link{
  background:#f8f9fa;border:1px solid #e5e7eb;color:#475569;
  font-weight:600;border-radius:10px;padding:.55rem 1.1rem;margin-right:.5rem;
}
.nav-media .nav-link:hover{background:#fff}
.nav-media .nav-link.active{
  background:#e0f1f5;border-color:var(--iqera-green);color:var(--iqera-green);
  box-shadow:inset 0 0 0 1px var(--iqera-green);
}

/* ============================================================
   11. HERO SECTION
============================================================ */

/* HERO */
.hero-card {
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
  position: relative;
  background: #000;
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-img-filter {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 54, 66, 0.88) 0%, /* petrolio scuro */ rgba(0, 109, 132, 0.55) 50%, /* iqera green */ rgba(0, 54, 66, 0.88) 100% /* petrolio scuro */);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  z-index: 3;
  max-width: 1100px;
}

.hero-title {
  font-weight: 700;
  font-size: 54px;
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  margin: 0 0 6px;
}

.hero-sub {
  opacity: 0.9;
  margin: 0;
  font-size: 18px;
}

.hero-image-wrapper {
  overflow: hidden; 
  border-radius: var(--card-radius);
  position: relative;
}


.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px;
    background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent 70%);
    color: white;
    border-radius: var(--card-radius);
}


/* ===== HERO SECTION ===== */
.service-hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 420px;
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 109, 132, 0.92) 0%, 
        rgba(0, 158, 191, 0.50) 50%,
        rgba(0, 109, 132, 0.88) 100%);
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

/* ============================================================
   12. filter BAR
============================================================ */

#search-dropdown .dropdown-item.active {
    background: linear-gradient(135deg, #006D84, #009ebf) !important;
    color: #fff !important;
    font-weight: 600;
}

#search-dropdown .dropdown-item {
    color: var(--iqera-green);
    transition: all 0.25s ease;
}

#search-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #006D84, #009ebf) !important;
    color: #fff !important;
    font-weight: 600;
}

.filter-pill.active {
	background: linear-gradient(135deg, #006D84, #009ebf) !important;
    color: #fff !important;
}


/* =====================================================
   SEARCH BOX 
===================================================== */

.search-box {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: calc(100% - 140px);
    max-width: 980px;
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--search-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-strong);
    z-index: 100;

    /* effetto glass leggerissimo */
    backdrop-filter: saturate(180%) blur(6px);

    /* transizione al scroll */
    transition: var(--transition-smooth);
}
.search-box:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(-50%) translateY(-2px);
}
.search-box .form-select {
    min-width: 0;
    border-radius: 10px;
    padding-left: 10px;
    height: 38px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: var(--transition-smooth);
    background-position: right 10px center;
}

.search-box .form-select:hover {
    border-color: var(--iqera-green);
}

.search-box .form-select:focus {
    box-shadow: 0 0 0 2px rgba(0, 109, 132, 0.25);
    border-color: var(--iqera-green);
}

/* Place in your main stylesheet */
.hero-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}


/* MENU */
.hero-top-menu {
    position: absolute;
    bottom: 110px;        /* distanza sopra la search box */
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;          /* maggiore della search box */
}

.menu-pill {
    position: relative;
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    padding: 6px 10px;
	font-size: large;
    cursor: pointer;
    transition: opacity .25s ease;
}

.menu-pill:hover {
    opacity: 1;
}

/* Linea animata */
.menu-pill::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width .25s ease;
}

.menu-pill:hover::after {
    width: 100%;
}

/* Attivo con underline completa */
.menu-pill.active {
    opacity: 1;
}

.menu-pill.active::after {
    width: 100%;
}

/* SEARCH BOX */
.hero-section .search-box {
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

#search-dropdown {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    z-index: 1000;
}

/* ==========================================
   BOTTONI A LATO (filtri/map/search)
========================================== */
.search-left {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-select-group {
	display: flex;
	gap: 10px;
	align-items: center;
}
.search-select-group .form-select {
	flex: 1 1 50%;
	min-width: 0;
}
.search-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-icon-btn {
	height: 38px;
	width: 40px;
	border-radius: 10px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	transition: var(--transition-smooth);
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-icon-btn:hover {
	background: var(--iqera-green);
	border-color: var(--iqera-green);
	color: #fff;
	box-shadow: var(--shadow-soft);
	transform: translateY(-2px);
}
.search-submit-btn {
	height: 38px;
	padding: 0 26px;
	border-radius: 12px;
	font-weight: 600;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--iqera-green);
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px rgba(0, 109, 132, 0.25);
	transition: var(--transition-smooth);
	font-size: 14px;
}

.search-submit-btn:hover {
	background:  linear-gradient(to right, var(--iqera-green-soft), var(--iqera-green));
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 109, 132, 0.32);
	color: #fff;
}

/* MOBILE: Layout compatto */
@media (max-width: 767px) {
    .search-box {
        padding: 12px;
        gap: 8px;
    }
    
    .search-left {
        flex: 1;
        min-width: 0;
    }
    
    /* Search location prende tutto lo spazio disponibile */
    .search-left > * {
        flex: 1;
        min-width: 0;
    }
    
    .search-right {
        gap: 8px;
        flex-shrink: 0;
    }
    
    /* Bottone filtri: solo icona */
    .openFiltersBtn {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }
    
    /* Bottone ricerca: icona + testo */
    .search-submit-btn {
        height: 40px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        gap: 6px;
        border-radius: 10px;
        white-space: nowrap;
    }
    
    .search-btn-text {
        font-size: 13px;
    }
}

/* EXTRA SMALL: Solo icone sui bottoni */
@media (max-width: 480px) {
    .search-submit-btn {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
    
    .search-btn-text {
        display: none;
    }
}

/* ============================================================
   13. PROPERTY CARDS
============================================================ */

.prop-card {
    --tx: 0px;
    --ty: 80px;      
    --rx: 0deg;
    --ry: 0deg;
    --scale: 1;

    transform: translateX(var(--tx))
               translateY(var(--ty))
               rotateX(var(--rx))
               rotateY(var(--ry))
               scale(var(--scale));

    opacity: 0;

    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 28px;
    overflow: visible !important;

    border: 1px solid rgba(18,38,63,0.06);

    box-shadow:
        0 8px 28px rgba(0,0,0,0.06),
        0 2px 8px rgba(0,0,0,0.03);

    position: relative;
    transform-style: preserve-3d;

    transition:
        opacity .6s ease-out,
        transform .6s cubic-bezier(.21,.98,.31,1),
        box-shadow .35s cubic-bezier(.21,.98,.31,1);
}
.prop-card.ex-appear {
    --ty: 0px;
    opacity: 1;
}
.prop-card:hover {
    --scale: 1.03;
    box-shadow:
        0 18px 48px rgba(0,0,0,0.14),
        0 6px 12px rgba(0,0,0,0.08);
}

.prop-card:hover .card-img-hover {
    transform: scale(1.1) translateY(-2px);
    filter: brightness(1);
}

.prop-card:hover .card-overlay {
    opacity: 1;
}

.prop-card:hover .card-overlay a {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   CTA CAROUSEL FULLWIDTH
============================================================ */

.cta-section-fullwidth {
    width: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cta-carousel-modern {
    width: 100%;
    height: 100%;
}

.cta-slide-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    padding: 80px 120px;
    background: linear-gradient(135deg, 
        rgba(0, 109, 132, 0.03) 0%,
        rgba(0, 158, 191, 0.08) 50%,
        rgba(12, 12, 46, 0.04) 100%);
}

/* Overlay animato */
.cta-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%,
        rgba(0, 158, 191, 0.08) 0%,
        transparent 50%),
        radial-gradient(circle at 80% 50%,
        rgba(0, 109, 132, 0.06) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.carousel-item.active .cta-background-overlay {
    opacity: 1;
}

/* Grid Layout */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Visual Side */
.cta-visual-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-image-frame {
    position: relative;
    width: 100%;
    max-width: 550px;
    opacity: 0;
    transform: scale(0.9) translateX(-50px);
}

.carousel-item.active .cta-image-frame {
    animation: zoomInLeft 1s ease-out forwards;
}

.cta-hero-img {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.cta-image-frame:hover .cta-hero-img {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Glow Effect */
.cta-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle,
        rgba(0, 158, 191, 0.3) 0%,
        transparent 70%);
    filter: blur(40px);
    opacity: 0;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Content Side */
.cta-content-side {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
}

.carousel-item.active .cta-content-side {
    animation: slideInRight 0.8s ease-out 0.3s forwards;
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg,
        rgba(0, 109, 132, 0.15),
        rgba(0, 158, 191, 0.15));
    color: var(--iqera-green);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 109, 132, 0.2);
}

.cta-headline {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--iqera-green);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--dettaglio-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    color: #000;
}

.location-pill:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
} 

/* Share Button */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.btn-share {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iqera-green), #009ebf);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,109,132,0.3);
}

.btn-share:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0,109,132,0.4);
}

/* Share Menu */
.share-menu {
    position: absolute;
    top: 50px;
    right: -150px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.1);
}

.share-dropdown:hover .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-link {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.share-link:hover {
    background: #f8f9fa;
    color: var(--iqera-green);
    padding-left: 20px;
}

.share-link i {
    font-size: 16px;
    width: 20px;
}

/* Action Button */
.cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--theme-gradient1);
    background-size: 200% auto;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 109, 132, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.6s;
}

.cta-action-btn:hover::before {
    left: 100%;
}

.cta-action-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

.cta-action-btn svg {
    transition: transform 0.3s ease;
}

.cta-action-btn:hover svg {
    transform: translateX(5px);
}

/* Custom Dots */
.cta-dots-wrapper {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.cta-dots-wrapper button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--iqera-green);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0.4;
    padding: 0;
    text-indent: -9999px;
}

.cta-dots-wrapper button:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.cta-dots-wrapper button.active {
    background: var(--iqera-green);
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(0, 109, 132, 0.5);
}

/* Animations */
@keyframes zoomInLeft {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Carousel Transitions */
.carousel-item {
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 1200px) {
    .cta-slide-container {
        padding: 60px 60px;
    }
    
    .cta-grid {
        gap: 50px;
    }
    
    .cta-headline {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .cta-slide-container {
        padding: 50px 40px;
        min-height: auto;
    }
    
    .cta-content-side {
        order: 2;
    }
    
    .cta-visual-side {
        order: 1;
    }
    
    .cta-headline {
        font-size: 36px;
    }
    
    .cta-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-dots-wrapper {
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    .cta-slide-container {
        padding: 40px 20px;
    }
    
    .cta-headline {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-action-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .cta-dots-wrapper {
        bottom: 20px;
        gap: 12px;
    }
    
    .cta-dots-wrapper button {
        width: 10px;
        height: 10px;
    }
}


/* ============================================================
   15. AUCTION SECTION
============================================================ */
.auction-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--iqera-green);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.auction-title::after {
    content: "";
    width: 90px;
    height: 4px;
    background: var(--iqera-green-soft);
    display: block;
    margin: 12px auto 0;
    border-radius: 4px;
}
#auctionSection {
    will-change: transform;
    transition: transform 0.18s ease-out;
}
.auction-list-container {
    background: rgba(255,255,255,0.92);
    border-radius: 22px;
    padding: 35px 40px;
    border: 1px solid rgba(0,109,132,0.15);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
}
.auction-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(0,0,0,0.05);

    cursor: pointer;
    position: relative;

    /* base stato nascosto per slide-in */
    opacity: 0;
    transform: translateY(26px);
}
.auction-in-view {
    opacity: 1;
    transform: translateY(0);
    transition: all .55s cubic-bezier(0.21, 0.98, 0.31, 1);
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 38px rgba(0,0,0,0.15),
        0 4px 10px rgba(0,0,0,0.05);
    border-color: var(--iqera-green-soft);
}
.auction-img-wrapper {
    width: 140px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.auction-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.auction-card:hover .auction-img-wrapper img {
    transform: scale(1.07);
}
.auction-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,109,132,0.55);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .35s ease;
    color: #fff;
    font-size: 1.6rem;
}

.auction-card:hover .auction-overlay {
    opacity: 1;
}

.auction-card:hover .deadline-chip {
    background: var(--iqera-green);
    border-color: var(--iqera-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,109,132,0.35);
}

.auction-card:hover .deadline-chip b {
    color: #fff;
}

/* ============================================================
   16. PROPOSALS
============================================================ */
.proposal-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #f5f5f5;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;

}

.proposal-card-sale {
  background: linear-gradient(135deg, rgba(0, 54, 66, 0.88) 0%, /* petrolio scuro */ rgba(0, 109, 132, 0.55) 50%, /* iqera green */ rgba(0, 54, 66, 0.88) 100% /* petrolio scuro */),
   url("/public/tmpl/images/img1.webp");
  background-size: cover;
  background-position: center;
}

.proposal-card-auction {
  background: linear-gradient(135deg, rgba(0, 54, 66, 0.88) 0%, /* petrolio scuro */ rgba(0, 109, 132, 0.55) 50%, /* iqera green */ rgba(0, 54, 66, 0.88) 100% /* petrolio scuro */),
   url("/public/tmpl/images/img12.webp");
  background-size: cover;
  background-position: center;
}

.proposal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}


.proposal-card:hover::after {
  opacity: 1;
}

.proposal-card .btn {
  min-width: 140px;
}

.proposal-card:hover .icon-wrapper {
  transform: scale(1.2) rotate(45deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}


/* ============================================================
   17. PROPERTY TYPES GRID
============================================================ */

.types-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 20px;
  align-items: stretch;
}

.type-card {
  display: block;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 8px 30px rgba(13, 18, 25, 0.12);
  transition: transform 0.35s cubic-bezier(.2, .9, .3, 1), box-shadow 0.35s;
 
}

.type-card:hover .type-name {
  color: #fff;
}

.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.type-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 50px rgba(10, 20, 30, 0.18);
}

.type-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.55) 100%);
}

.type-card .card-info {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  text-align: left;
  padding-right: 12px;
}

/* ============================================================
   18. SERVICES
============================================================ */


/* =========================================================
   IQERA SERVICES - MODERN MINIMAL DESIGN
   ========================================================= */

/* ===== SERVICE CARD (Intro Card) ===== */
.service-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 109, 132, 0.06);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--theme-gradient1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-card h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card h2 i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.service-card:hover h2 i {
    transform: rotate(5deg) scale(1.1);
}

/* ===== SERVICE BOX (Grid Cards) ===== */
.service-box {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: clamp(28px, 4vw, 36px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 109, 132, 0.06);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--theme-gradient1);
    border-radius: var(--card-radius);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-box:hover::before {
    opacity: 0.08;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--iqera-green-soft);
}

/* ===== SERVICE ICON ===== */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient1);
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 109, 132, 0.2);
    transition: var(--transition-smooth);
}

.service-box:hover .service-icon {
    transform: translateY(-4px) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(0, 109, 132, 0.3);
}

.service-box h4 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-box p,

.service-box ul {
    list-style: none;
    padding-left: 0;
}

.service-box ul li {
    padding-left: 1.5rem;
    position: relative;
}

.service-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--iqera-green-soft);
    font-weight: 600;
}

.servizi-tecnici-box .service-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.1), rgba(0, 158, 191, 0.1));
    color: var(--iqera-green);
    box-shadow: none;
}
.service-side-image-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    height: 100%;
    min-height: 340px;
}

.service-side-image-card img {
    transition: transform 0.6s ease;
}

.service-side-image-card:hover img {
    transform: scale(1.05);
}

.service-card-equal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ============================================================
   19. CONTACT SECTION
============================================================ */

.contact-section {
    position: relative;
    padding: 120px 20px;
    border-radius: 28px;
    overflow: hidden;
    max-width: 1440px;
    margin: 0 auto;
    background: url("/public/tmpl/images/echange-3-personnes.jpg") center/cover no-repeat;
}
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 54, 66, 0.88) 0%,        /* petrolio scuro */
        rgba(0, 109, 132, 0.55) 50%,     /* iqera green */
        rgba(0, 54, 66, 0.88) 100%       /* petrolio scuro */
    );
    backdrop-filter: blur(3px);
    z-index: 1;
}
.contact-section .container-fluid {
    position: relative;
    z-index: 3;
}
.contact-box .form-control::placeholder {
    color: rgba(255,255,255,0.85);
    opacity: 1;
}
.contact-box h4 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}
.contact-box .form-control {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.22);
    color: #fff;

    padding: 14px 16px;
    font-size: 1.05rem;

    box-shadow: inset 0 0 0 rgba(0,0,0,0);
    transition: all 0.35s ease;
}
.contact-box .form-control:focus {
    background: rgba(255,255,255,0.30);
    border-color: var(--iqera-green-soft);
    box-shadow: 0 0 0 3px rgba(0, 158, 191, 0.28);
    color: #fff;
}
.contact-box textarea.form-control {
    resize: none;
}

.contact-side h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.contact-side p {
    color: #f1f1f1;
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-top: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* ==============================
   CONTACT LIST
============================== */
.dicono-di-noi{
	background: linear-gradient(135deg, 
    rgba(0, 109, 132, 0.05) 0%, 
    rgba(0, 158, 191, 0.03) 100%);
}

/* ============================================================
   STORIES SECTION - CLEAN & MODERN
============================================================ */

.stories-section {
    padding: 80px 20px;
    background: linear-gradient(135deg,
        rgba(0, 109, 132, 0.03) 0%,
        rgba(0, 158, 191, 0.05) 100%);
}

.stories-header {
    text-align: center;
    margin-bottom: 50px;
}


.stories-header p {
    font-size: 16px;
    color: var(--dettaglio-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Story Card */
.story-card {
    position: relative;
    cursor: pointer;
    border: none;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.story-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-card-image img {
    transform: scale(1.05);
}

/* Overlay on hover */
.story-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 109, 132, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.story-card:hover .story-card-overlay {
    opacity: 1;
}

.story-play-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.story-play-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--iqera-green);
    margin-left: 2px;
}

/* Story Content */
.story-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 109, 132, 0.1);
    color: var(--iqera-green);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.story-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--iqera-green);
    margin-bottom: 10px;
    line-height: 1.3;
}

.story-card-description {
    font-size: 14px;
    color: var(--dettaglio-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.story-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--dettaglio-border);
}

.story-slides-count {
    font-size: 12px;
    color: var(--dettaglio-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-cta {
    color: var(--iqera-green);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.story-card:hover .story-cta {
    color: var(--iqera-green-soft);
}

/* ============================================================
   MODAL - COMPACT GLASSMORPHISM
============================================================ */

.stories-modal-dialog {
    max-width: 700px;
}

.stories-modal-content {
    border: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 109, 132, 0.2);
    border: 1px solid rgba(0, 109, 132, 0.1);
}

.stories-modal-header {
    border: none;
    padding: 24px 28px;
    background: linear-gradient(135deg,
        rgba(0, 109, 132, 0.06) 0%,
        rgba(0, 158, 191, 0.08) 100%);
    border-bottom: 1px solid rgba(0, 109, 132, 0.1);
}

.stories-modal-header .btn-close {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.stories-modal-header .btn-close:hover {
    opacity: 1;
}

.stories-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--iqera-green);
    margin: 0;
}

.stories-modal-subtitle {
    font-size: 14px;
    color: var(--dettaglio-muted);
    margin-top: 4px;
    font-weight: 400;
}

.stories-modal-body {
    padding: 0;
    background: linear-gradient(to bottom,
        rgba(0, 109, 132, 0.02) 0%,
        rgba(0, 158, 191, 0.03) 100%);
}

/* Carousel - FIXED LAYOUT */
.stories-carousel {
    background: transparent;
    position: relative;
}

.stories-carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stories-carousel .stories-carousel-item {
    display: none;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 32px 24px;
}

.stories-carousel .stories-carousel-item.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 480px;
}

.stories-carousel .stories-carousel-item img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 109, 132, 0.15);
    object-fit: cover;
    border: 2px solid rgba(0, 109, 132, 0.1);
}

.stories-carousel-item-content {
    max-width: 580px;
    text-align: center;
    width: 100%;
}

.stories-carousel-item-step {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--iqera-green);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(0, 109, 132, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 109, 132, 0.15);
}

.stories-carousel-item-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--iqera-green);
    margin-bottom: 14px;
    line-height: 1.25;
}

.stories-carousel-item-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dettaglio-muted);
    font-weight: 400;
}

/* Carousel Controls */
.stories-carousel .stories-carousel-control-prev,
.stories-carousel .stories-carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.stories-carousel .stories-carousel-control-prev:hover,
.stories-carousel .stories-carousel-control-next:hover {
    opacity: 1;
}

.stories-carousel .stories-carousel-control-prev {
    left: 12px;
}

.stories-carousel .stories-carousel-control-next {
    right: 12px;
}

.stories-carousel .stories-carousel-control-prev-icon,
.stories-carousel .stories-carousel-control-next-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 109, 132, 0.15);
    background-image: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stories-carousel .stories-carousel-control-prev-icon svg,
.stories-carousel .stories-carousel-control-next-icon svg {
    display: block;
}

/* Carousel Indicators */
.stories-carousel .stories-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(0, 109, 132, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stories-carousel .stories-carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 109, 132, 0.3);
    opacity: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.stories-carousel .stories-carousel-indicators button.active {
    background: var(--iqera-green);
    transform: scale(1.3);
}

.stories-carousel .stories-carousel-indicators button:hover:not(.active) {
    background: var(--iqera-green-soft);
}

/* Responsive */
@media (max-width: 768px) {
    .stories-section {
        padding: 60px 16px;
    }

    .stories-header h2 {
        font-size: 28px;
    }

    .stories-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .stories-modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .stories-modal-header {
        padding: 20px 24px;
    }

    .stories-modal-title {
        font-size: 20px;
    }

    .stories-carousel .stories-carousel-item.active {
        min-height: 400px;
        padding: 24px 16px;
    }

    .stories-carousel .stories-carousel-item img {
        max-height: 180px;
    }

    .stories-carousel-item-title {
        font-size: 22px;
    }

    .stories-carousel-item-text {
        font-size: 14px;
    }

    .stories-carousel .stories-carousel-control-prev,
    .stories-carousel .stories-carousel-control-next {
        width: 36px;
        height: 36px;
    }

    .stories-carousel .stories-carousel-control-prev-icon,
    .stories-carousel .stories-carousel-control-next-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .story-card-image {
        height: 200px;
    }

    .stories-carousel .stories-carousel-item.active {
        min-height: 380px;
        padding: 20px 12px;
    }

    .stories-carousel .stories-carousel-item img {
        max-height: 160px;
    }

    .stories-carousel-item-title {
        font-size: 20px;
    }

    .stories-carousel-item-text {
        font-size: 13px;
    }
}


/* ==============================
   CONTACT LIST
============================== */
.contact-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.7rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
  padding: 3px 0;
  transition: all .22s ease;
}

.contact-list li:hover {
  color: #fff;
  transform: translateX(3px);
}

.contact-list i {
  color: var(--iqera-green-soft);
  width: 18px;
  font-size: 1.1rem;
}

/* ============================================================
   20. MODALS & DIALOGS
============================================================ */

/* ================================
   LOGIN MODAL - VERSIONE PREMIUM
   ================================ */
.glass-card {
  background: rgba(0, 25, 35, 0.7); /* più profonda e leggibile */
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  border-radius: 24px;
  border: 1px solid rgba(0, 158, 191, 0.35);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(0, 158, 191, 0.4);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(0, 158, 191, 0.15),
      transparent 60%);
  pointer-events: none;
}
.glass-card h4 {
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}

.glass-card p {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
}
.glass-card a {
  color: var(--iqera-green-soft);
  transition: all 0.3s ease;
}

.glass-card a:hover {
  color: #fff;
  text-decoration: none !important;
  text-shadow: 0 0 8px rgba(0, 158, 191, 0.5);
}

/* Sfondo chiaro quando la modale è aperta */
.modal-backdrop.show {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: background 0.4s ease;
}

.modal-backdrop {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.modal-backdrop.show {
  opacity: 1;
}

/* ==============================
   MODAL GALLERY PREMIUM 
============================== */

.photo-modal .modal-dialog {
  margin: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

.photo-modal .modal-content {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.modal-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.photo-modal-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  padding: 20px;
  gap: 24px;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* ============================================================
   21. DETTAGLIO (Property Detail Pages)
============================================================ */

.dettaglio-badge-sale {
  padding: 4px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-block;
}

.estate-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;

  color: #5f6f82;
  background: rgba(18, 38, 63, 0.04);
  border: 1px solid rgba(18, 38, 63, 0.08);
  border-radius: 999px;

  padding: 6px 12px;
}

.estate-id i {
  font-size: 11px;
  opacity: .7;
}

.estate-id strong {
  color: #12263f;
  font-weight: 600;
}



/* ==============================
   HEADER DETTAGLIO
============================== */
.dettaglio-header {
  background: #fff;
  border-bottom: 1px solid var(--dettaglio-border);
  padding: 20px 0;
}

.dettaglio-badge-sale {
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .72rem;
  font-weight: 700;
}

.dettaglio-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.dettaglio-subtle {
  color: var(--dettaglio-muted);
}

.dettaglio-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--iqera-green);
}

.dettaglio-price-label {
  font-size: .85rem;
  color: var(--dettaglio-muted);
}
.dettaglio-card {
  border: 1px solid var(--dettaglio-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16,32,48,.04);
}
.dettaglio-cover-lg {
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

.dettaglio-show-all {
  height: 160px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
}

.dettaglio-map {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
}
.dettaglio-plan {
  border-radius: 18px;
  padding: 28px;
}


.dettaglio-plan p,
.dettaglio-plan li {
  color: #cbd5e1;
}

.dettaglio-video {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  border-radius: 16px;
}

/* ==============================
   FEATURE BOX (DETTAGLIO IMMOBILE)
============================== */
.dettaglio-feature-box {
  padding: 1rem;
  border: 1px solid var(--dettaglio-border);
  background: #fff;
  border-radius: 14px;
  transition: .2s ease;
}

.dettaglio-feature-box:hover {
  background: #f9fafb;
  transform: translateY(-3px);
}
.dettaglio-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.dettaglio-list-row span:first-child {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dettaglio-list-row span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    color: #6c757d; /* text-muted */
}
.dettaglio-sidebar {
  position: sticky;
  top: 20px;
}
.dettaglio-contact-card {
  background: #0f172a;
  color: #fff;
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: all .28s ease;
}

.dettaglio-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
}
.dettaglio-contact-card h6 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: -0.2px;
}

.dettaglio-contact-card h6::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--iqera-green-soft);
  display: block;
  margin-top: 7px;
}
.dettaglio-contact-card .company-block {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  margin-bottom: 1.5rem;
}
.dettaglio-listing-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all .3s ease;
  border: 1px solid #e4e7eb;
  background: #fff;
  cursor: pointer;
}

.dettaglio-listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.dettaglio-listing-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.dettaglio-listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--iqera-green);
  color: #fff;
  padding: 0.35rem .8rem;
  border-radius: var(--search-radius);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  box-shadow: var(--shadow-soft);
}

.dettaglio-listing-specs {
  display: flex;
  gap: 1rem;
  margin-top: .6rem;
  font-size: .85rem;
  color: #8c96a5;
}

.dettaglio-listing-spec-item {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.dettaglio-listing-spec-item i {
  font-size: .9rem;
  color: var(--iqera-green);
}
.dettaglio-description {
  font-size: 1.03rem;
  line-height: 1.7;
}
.service-box ul {
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--dettaglio-muted);
}

/* ============================== 
   THUMBS NELLA PAGINA DETTAGLIO
============================== */
.dettaglio-show-all {
  height: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed var(--iqera-green);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  padding: 8px 4px;
}

.dettaglio-show-all::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--iqera-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.1;
}

.dettaglio-show-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 109, 132, 0.2);
  border-style: solid;
}

.dettaglio-show-all:hover::before {
  width: 300px;
  height: 300px;
}

.dettaglio-show-all i,
.dettaglio-show-all span {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.dettaglio-show-all:hover i,
.dettaglio-show-all:hover span {
  transform: scale(1.1);
}

/* ==============================
   PHOTO BADGE (cliccabile)
============================== */
.photo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-badge:hover {
    background: var(--iqera-green);
    transform: scale(1.05);
}

/* Carousel immagini cliccabili */
.carousel-main-img {
    cursor: pointer;
    transition: all 0.4s ease;
}

.carousel-main-img:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

/* ==============================
   GRIGLIA MASONRY ACCATTIVANTE
============================== */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
    animation: fadeInGrid 0.5s ease-out;
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Varianti di dimensione */
.photo-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInItem 0.5s ease-out backwards;
}

/* Animazione items con delay progressivo */
.photo-grid-item:nth-child(1) { animation-delay: 0.05s; }
.photo-grid-item:nth-child(2) { animation-delay: 0.1s; }
.photo-grid-item:nth-child(3) { animation-delay: 0.15s; }
.photo-grid-item:nth-child(4) { animation-delay: 0.2s; }
.photo-grid-item:nth-child(5) { animation-delay: 0.25s; }
.photo-grid-item:nth-child(6) { animation-delay: 0.3s; }
.photo-grid-item:nth-child(7) { animation-delay: 0.35s; }
.photo-grid-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Layout Pattern Immobiliare */
.photo-grid-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-grid-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-grid-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-grid-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-grid-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-grid-item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-grid-item:nth-child(7) {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-grid-item:nth-child(8) {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-grid-item:nth-child(9) {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-grid-item:nth-child(10) {
    grid-column: span 2;
    grid-row: span 2;
}
.photo-grid-item:nth-child(11) {
    grid-column: span 1;
    grid-row: span 1;
}
.photo-grid-item:nth-child(12) {
    grid-column: span 1;
    grid-row: span 1;
}

/* Pattern si ripete per gli items successivi */
.photo-grid-item:nth-child(n+13) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Hover effect avanzato */
.photo-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.photo-grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(34, 197, 94, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.photo-grid-item:hover::before {
    opacity: 1;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-grid-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Overlay hover delicato con blur */
.photo-grid-hover {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.photo-grid-item:hover .photo-grid-hover {
    opacity: 1;
}

.photo-grid-hover i {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.photo-grid-item:hover .photo-grid-hover i {
    transform: scale(1);
}


.photo-grid-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll solo nella griglia, non nella testata */
.photos-grid-wrapper {
    max-height: 80vh;      
    overflow-y: auto;       
    padding-right: 4px;    
}


/* Header griglia */
#gridView h6 {
    font-size: 1.1rem;
    color: #1f2937;
    letter-spacing: -0.3px;
}

#closeGridBtn {
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#closeGridBtn:hover {
    background: var(--iqera-green);
    color: #fff;
    border-color: var(--iqera-green);
    transform: translateY(-2px);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }
    
    .photo-grid-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .photo-grid-item:nth-child(4),
    .photo-grid-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 8px;
    }
    
    /* Pattern mobile: 1 LARGA + 2 PICCOLE AFFIANCATE */
    
    /* Foto 1, 4, 7, 10... → LARGA (occupa 2 colonne) */
    .photo-grid-item:nth-child(3n+1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    /* Foto 2-3, 5-6, 8-9... → PICCOLE AFFIANCATE (1 colonna ciascuna) */
    .photo-grid-item:nth-child(3n+2),
    .photo-grid-item:nth-child(3n+3) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .photo-grid-hover i {
        font-size: 1.8rem;
    }
    
    .photo-grid-item::after {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 6px;
    }
    
    /* Mantieni lo stesso pattern */
    .photo-grid-item:nth-child(3n+1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .photo-grid-item:nth-child(3n+2),
    .photo-grid-item:nth-child(3n+3) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .photo-grid-hover i {
        font-size: 1.5rem;
    }
    
    .photo-grid-item::after {
        display: none; /* Nascondi numeri su schermi molto piccoli */
    }
}




/* ============================================================
   23. ANIMATIONS & KEYFRAMES
============================================================ */
.cookie-banner {
	display: none; 
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(0, 109, 132, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(0, 158, 191, 0.3);
    box-shadow: 0 8px 25px rgba(0, 109, 132, 0.3);
    padding: 16px 24px;
    z-index: 9999;
    animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 109, 132, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 10px 10px rgba(0, 109, 132, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 109, 132, 0); }
}


.btn-iqera-red-aste:hover {
    background: var(--iqera-red-gradient-animated);
    background-size: 220% 100%;
    animation: iqeraShine 2.6s ease-in-out infinite;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(107, 9, 8, 0.45);
    color: #fff;
}
@keyframes iqeraShine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.contact-box {
    width: 100%;
    max-width: 540px;

    background: rgba(255, 255, 255, 0.18); /* più leggibile */
    border-radius: 22px;
    padding: 45px 50px;

    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);

    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30),
        0 6px 14px rgba(255, 255, 255, 0.08);

    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal.fade .modal-dialog {
  animation: modalFadeIn 0.4s ease-out;
}

.service-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.service-hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
.service-section {
    animation: fadeIn 0.7s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.photo-thumb.active-thumb {
  border-color: var(--iqera-green);
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 
    0 0 0 3px rgba(0, 109, 132, 0.3),
    0 12px 32px rgba(0, 109, 132, 0.4),
    0 0 40px rgba(0, 109, 132, 0.2);
  filter: grayscale(0);
  animation: thumbPulse 2s ease-in-out infinite;
}
@keyframes thumbPulse {
  0%, 100% {
    box-shadow: 
      0 0 0 3px rgba(0, 109, 132, 0.3),
      0 12px 32px rgba(0, 109, 132, 0.4),
      0 0 40px rgba(0, 109, 132, 0.2);
  }
  50% {
    box-shadow: 
      0 0 0 5px rgba(0, 109, 132, 0.4),
      0 16px 40px rgba(0, 109, 132, 0.5),
      0 0 60px rgba(0, 109, 132, 0.3);
  }
}

/* ============================================================
   BANNER WHATSAPP MOBILE
============================================================ */

.whatsapp-mobile-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  border-top: 1px solid rgba(0, 109, 132, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.30);
  
  padding: 12px 16px;
  animation: slideUpBanner 0.5s ease-out;
}

@keyframes slideUpBanner {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  gap: 12px;
}

.whatsapp-banner-logo {
  flex-shrink: 0;
}

.whatsapp-banner-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.whatsapp-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  
  padding: 10px 20px;
  border-radius: 24px;
  
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  
  flex-shrink: 0;
}

.whatsapp-banner-btn:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.whatsapp-banner-btn i {
  font-size: 1.3rem;
}

.whatsapp-banner-btn span {
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE - VISIBILE SOLO SU MOBILE
============================================================ */

/* Tablet e Mobile */
@media (max-width: 768px) {
  .whatsapp-mobile-banner {
    display: block;
  }
}

/* Mobile piccoli - layout ottimizzato */
@media (max-width: 480px) {
  .whatsapp-mobile-banner {
    padding: 10px 12px;
  }
  
  .whatsapp-banner-logo img {
    height: 30px;
  }
  
  .whatsapp-banner-btn {
    padding: 9px 16px;
    font-size: 0.9rem;
  }
  
  .whatsapp-banner-btn i {
    font-size: 1.2rem;
  }
}

/* Mobile molto piccoli - versione compatta */
@media (max-width: 360px) {
  .whatsapp-banner-btn span {
    display: none; /* Mostra solo icona */
  }
  
  .whatsapp-banner-btn {
    padding: 10px 14px;
    border-radius: 50%;
    aspect-ratio: 1;
  }
}


/* ============================================================
   24. ADDITIONAL COMPONENTS
============================================================ */

.iqera-green {
	color: var(--iqera-green);
}
.card-text {
    color: #555;
}

.listings-section .section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.6px;
}

.card-img-top {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92);
    transition: transform .55s ease, filter .4s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 22px;
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(0,0,0,0.55));
    opacity: 0;
    transition: opacity .35s ease;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.card-text {
    font-size: .92rem;
    color: #6b7280;
}

.description.more::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    padding-left: 6px;
}

.price-box {
    margin-top: auto;
    margin-bottom: 12px;
    min-height: 70px;
}

.price {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--iqera-green);
}

.pill {
    display: inline-flex;
    gap: 3px;
    padding: 4px 10px;
    background: #eef2f7;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 500;
    color: #374151;
}

.pill i {
    color: var(--iqera-green);
    font-size: .9rem;
}

.deadline-chip b {
    font-size: 0.92rem;
    color: #0c0c0c;
}
.steps-card {
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    height: 100%;
    border: 1px solid rgba(0,109,132,0.12);
    box-shadow:
        0 15px 36px rgba(0,0,0,0.12),
        0 4px 10px rgba(0,0,0,0.05);

    opacity: 0;
    transform: translateY(26px);
}

.steps-in-view {
    opacity: 1;
    transform: translateY(0);
    transition: all .6s cubic-bezier(0.21, 0.98, 0.31, 1);
}
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--iqera-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 6px 18px rgba(0,109,132,0.35),
        inset 0 0 10px rgba(255,255,255,0.22);
}

.step-circle i {
    font-size: 1.3rem;
}
.step-line {
    width: 3px;
    height: 35px;
    background: rgba(0,109,132,0.25);
    margin-top: 8px;
    border-radius: 4px;
}
.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--iqera-green), #004d5f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 109, 132, 0.6);
}

.icon-wrapper.red {
  background: linear-gradient(135deg, var(--iqera-red), #4d0404);
  box-shadow: 0 0 12px rgba(107, 9, 8, 0.6);
}
.types-section .container {
  max-width: 1200px;
}

.type-uffici {
  grid-column: 1 / 3;
  grid-row: 1;
}

.type-negozi {
  grid-column: 3 / 4;
  grid-row: 1;
}

.type-residenziale {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}

.type-commerciale {
  grid-column: 1 / 2;
  grid-row: 2;
}

.type-capannoni {
  grid-column: 2 / 4;
  grid-row: 2;
}

.type-count {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.social-icon {
  color: #fff;
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  color: var(--iqera-red);
  transform: scale(1.2);
}

.newsletter-form .form-control {
  border: none;
  padding: 10px 14px;
}
.login-top-icon {
  position: relative;
  z-index: 2;
}
.toggle-auth {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 158, 191, 0.35);
  position: relative;
  z-index: 2;
}

.toggle-auth .auth-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.toggle-auth .auth-tab:hover {
  color: #fff;
  background: rgba(0, 158, 191, 0.1);
}

.toggle-auth .auth-tab.active {
  background: linear-gradient(90deg, #006D84, #009EBF);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 158, 191, 0.5);
}
.glass-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 158, 191, 0.3);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.glass-input:focus-within {
  border-color: var(--iqera-green);
  box-shadow: 0 0 14px rgba(0, 158, 191, 0.45);
  transform: scale(1.01);
}

.glass-input .input-group-text {
  background: transparent;
  border: none;
  color: var(--iqera-green-soft);
  padding-left: 16px;
}

.glass-input .form-control {
  background: transparent;
  border: none;
  color: #fff;
  padding-right: 16px;
}

.glass-input .form-control:focus {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.glass-input .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.glass-input .input-group-text:last-child {
  cursor: pointer;
  color: var(--iqera-green-soft);
  transition: all 0.3s ease;
  padding-right: 16px;
}

.glass-input .input-group-text:last-child:hover {
  color: #fff;
}

.divider span {
  background: rgba(0, 109, 132, 0.15);
  padding: 0 16px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(0, 158, 191, 0.5) 20%, 
      rgba(0, 158, 191, 0.5) 80%, 
      transparent 100%);
  z-index: 1;
}
#forgot-pwd-btn {
  color: var(--iqera-green-soft) !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.sidebar-card {
    position: sticky;
    top: 90px;
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}
.icon-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.icon-spec i {
    color: var(--iqera-green);
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0c0c2e;
}

.nearby-box {
    background: #fafafa;
    transition: 0.25s ease;
}

.nearby-box:hover {
    background: #f0f7f8;
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.company-block .rounded-circle {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
}
.wa-icon {
  font-size: 1.35rem; 
  color: #25D366 !important;
}

.info-link:hover {
  color: #fff;
}
.det-input {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.20);
  color: #fff !important;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  transition: all .25s ease;
}

.det-input::placeholder {
  color: rgba(255,255,255,0.55);
}

.det-input:focus {
  background: rgba(255,255,255,0.16) !important;
  border-color: var(--iqera-green-soft);
  box-shadow: 0 0 0 0.18rem rgba(0,158,191,0.25);
}

.login-access-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.login-icon {
  font-size: 2.4rem;
  color: var(--iqera-green-soft);
  margin-bottom: 0.8rem;
}
.thumb-btn{padding:0;border:0;background:transparent;outline:0}
.thumb-btn img{transition:.15s ease}
.thumb-btn:focus img,.thumb-btn[aria-current="true"] img{outline:2px solid var(--iqera-green);outline-offset:2px;border-radius:8px}
.servizi-tecnici-box {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 109, 132, 0.06);
    transition: var(--transition-smooth);
}

.servizi-tecnici-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.servizi-image-wrapper {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.servizi-image-wrapper:hover {
    box-shadow: var(--shadow-hover);
}
.pricing-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 109, 132, 0.06);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pricing-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.08), rgba(0, 158, 191, 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-list li:last-child {
    border-bottom: none;
}
.wapp-icon {
    font-size: 1.3rem;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.gmaps-icon {
    font-size: 1.25rem;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.photo-thumbs::-webkit-scrollbar {
  width: 8px;
}

.photo-thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.photo-thumbs::-webkit-scrollbar-thumb {
  background: var(--iqera-green);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.1);
}

.photo-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--iqera-green-soft);
}

.photo-thumb {
  width: 168px; 
  height: 120px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: grayscale(0.3);
}
.photo-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 11px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.photo-thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  filter: grayscale(0);
}

.photo-thumb:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.photo-thumb.active-thumb::before {
  background: transparent;
}



.photo-thumb:hover::after {
  opacity: 1; 
  transform: scale(1.1);
  background: var(--iqera-green);
  border-color: var(--iqera-green);
}

.photo-preview-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 100px;
  overflow: hidden;
  min-width: 0;
  position: relative;
}
.photo-preview.fade-out {
  opacity: 0;
}

.photo-preview.fade-in {
  opacity: 1;
}
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.photo-nav:hover {
  background: var(--iqera-green);
  border-color: var(--iqera-green);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 30px rgba(0, 109, 132, 0.6);
}

.photo-prev {
  left: 244px;
}

.photo-next {
  right: 20px;
}
.thumb-btn {
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.thumb-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.thumb-btn:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.thumb-btn:focus img,

.thumb-btn:focus::before,
.thumb-btn[aria-current="true"]::before {
  background: transparent;
}

/* ============================================================
   25. RESPONSIVE - MEDIA QUERIES
============================================================ */
@media (max-width: 992px) {

    .auction-list-container {
        padding: 28px 28px;
    }

    .steps-card {
        padding: 28px;
    }

    .auction-img-wrapper {
        width: 120px;
        height: 90px;
    }

    .deadline-chip {
        min-width: 100px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
@media (max-width: 768px) {

    /* titolo */
    .auction-title {
        font-size: 2rem;
    }

    /* container cards */
    .auction-list-container {
        padding: 24px 22px;
        border-radius: 18px;
    }

    /* card singola */
    .auction-card {
        padding: 14px;
        gap: 14px;
        flex-direction: row;
    }

    /* immagine */
    .auction-img-wrapper {
        width: 100px;
        height: 80px;
    }

    /* testi card */
    .auction-card h6 {
        font-size: 0.95rem;
    }
    .auction-card p {
        font-size: 0.8rem;
    }
    .auction-card span {
        font-size: 0.85rem;
    }

    /* deadline chip */
    .deadline-chip {
        align-items: flex-start;
        min-width: 90px;
        font-size: 0.72rem;
    }
    .deadline-chip b {
        font-size: 0.82rem;
    }

    /* steps */
    .steps-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .step-circle {
        width: 42px;
        height: 42px;
    }
    .step-circle i {
        font-size: 1.1rem;
    }
    .step-line {
        height: 28px;
    }
}
@media (max-width: 576px) {

    /* card generale */
    .auction-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    /* immagine full width */
    .auction-img-wrapper {
        width: 100%;
        height: 170px;
    }

    /* testi */
    .auction-card h6 {
        font-size: 1rem;
    }
    .auction-card p {
        font-size: 0.85rem;
    }

    /* deadline chip centrato */
    .deadline-chip {
        align-self: flex-end;
    }

    /* steps */
    .steps-card {
        text-align: left;
    }

    .step-circle {
        width: 38px;
        height: 38px;
    }

    .step-line {
        height: 24px;
    }

    /* CTA spacing */
    .btn-iqera-red-aste {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
}
@media (hover: none) {
    .auction-card:hover {
        transform: none;
        box-shadow: none;
    }
    .auction-card:hover .auction-img-wrapper img {
        transform: none;
    }
    .auction-card:hover .auction-overlay {
        opacity: 0;
    }
    #auctionSection {
        transform: none !important;
    }
}
@media (min-width: 992px) {
    .contact-side {
        padding-left: 60px;
    }
}
@media (max-width: 992px) {
  .hero-img {
    height: 420px;
  }

  .search-box {
    width: calc(100% - 60px);
  }

  .hero-title {
    font-size: 34px;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
  }

  .type-uffici {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .type-negozi {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .type-residenziale {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .type-commerciale {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .type-capannoni {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .cta-card {
    flex-direction: column;
    padding: 40px 40px;
    text-align: center;
  }

  .cta-img-wrap {
    max-width: 320px;
    margin-bottom: 24px;
  }

  .cta-content {
    padding: 0;
  }

  .cta-title {
    font-size: 28px;
  }
}


@media (max-width: 768px) {
    #ctaCard { max-width: 18rem; }
    .btn-proposte { width: 45px; height: 45px; font-size: 16px; }
    
        .glass-card {
        margin: 1rem;
        border-radius: 20px;
    }
    
    .modal-body {
        padding: 2rem !important;
    }
    
    .login-top-icon img {
        max-height: 35px;
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 14px 18px;
    }
    .cookie-content p {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
  .page-container {
    padding: 0 16px;
  }

  .hero-img {
    height: 320px;
  }

  .hero-title {
    font-size: 26px;
  }
  
  .hero-sub {
    font-size: 14px;
  }

  .search-box {
    flex-wrap: wrap;
    gap: 8px;
    width: calc(100% - 32px);
    padding: 10px;
  }

  .search-box .form-select {
    min-width: 140px;
  }

  .types-grid {
    grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: clamp(12px, 3vw, 16px);
  }

  .type-uffici,
  .type-negozi,
  .type-residenziale,
  .type-commerciale,
  .type-capannoni {
    grid-column: 1 !important;
        grid-row: auto !important;
        height: clamp(180px, 28vw, 220px) !important;
        min-height: 180px;
  }

  .type-card {
    border-radius: 12px;
  }

  .type-card .card-info {
    left: 14px;
    bottom: 14px;
  }

  .cta-card {
    padding: 28px 20px;
  }

  .cta-img-wrap {
    max-width: 100%;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-text {
    font-size: 0.9rem;
  }

}

@media (max-width: 991.98px) {
  .dettaglio-cover-lg { height: 300px; }
}
@media (max-width: 768px) {
  .dettaglio-listing-image {
    height: 170px;
  }
}
@media (max-width: 991px) {
    .service-hero {
        padding: 100px 0 70px;
        min-height: 360px;
    }
    
    .service-side-image-card {
        min-height: 280px;
    }
}

@media (max-width: 767px) {
    .service-hero {
        padding: 80px 0 60px;
        min-height: 320px;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .service-card,
    .service-box,
    .servizi-tecnici-box,
    .pricing-card {
        padding: 24px;
    }
}
@media (max-width: 992px) {
  .photo-modal-container {
    flex-direction: column;
    padding: 10px;
    gap: 12px;
  }

  .photo-thumbs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: 110px;
    padding: 12px;
    gap: 12px;
  }

  .photo-thumb {
    min-width: 100px;
    width: 100px;
    height: 80px;
    flex-shrink: 0;
  }

  .photo-thumb.active-thumb {
    transform: scale(1.08);
  }

  .photo-preview-wrapper {
    padding: 20px;
  }
  
  .photo-preview {
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
  }

  .photo-nav {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .photo-prev {
    left: 10px;
  }

  .photo-next {
    right: 10px;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}


/* ============================================================
   🔍 SEARCH PAGE - IQERA PREMIUM EDITION
============================================================ */

/* ============================================================
   🔝 STICKY HEADER FILTRI
============================================================ */
.sticky-search-header {
    position: sticky;
    top: 0;
    z-index: 990;
    background: #fff;
    transition: box-shadow .28s ease;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.sticky-search-header.scrolled {
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
}

.search-location-input {
    width: 50%;
}

/* ============================================================
   🔘 TOPBAR FILTRI
============================================================ */
.filter-topbar {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 18px 24px;
    background: #fff;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.openFiltersBtn {
    border-radius: var(--radius-full);
    background: var(--theme-gradient1);
    color: #fff;
    border: none;
    padding: 10px 24px;
    box-shadow: 0 10px 24px rgba(0, 109, 132, .35);
    transition: var(--transition-smooth);
}

.openFiltersBtn:hover {
    background: linear-gradient(to right, var(--iqera-green-soft), var(--iqera-green));
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(0, 109, 132, .45);
    color: #fff;
}

#openMapBtn {
    border-radius: var(--radius-full);
    padding: 10px 24px;
    color: #fff;
    border: none;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--iqera-green-soft) 85%, white 15%) 0%,
        color-mix(in srgb, var(--iqera-green) 80%, black 20%) 30%,
        color-mix(in srgb, var(--iqera-red) 80%, black 10%) 65%,
        color-mix(in srgb, var(--iqera-red-strong) 85%, black 15%) 100%
    );
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, .25),
        0 0 12px rgba(255, 255, 255, .15) inset;
    transition: var(--transition-smooth);
}

#openMapBtn:hover {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--iqera-red-strong) 85%, white 10%) 0%,
        color-mix(in srgb, var(--iqera-red) 90%, black 10%) 30%,
        color-mix(in srgb, var(--iqera-green) 85%, black 15%) 70%,
        color-mix(in srgb, var(--iqera-green-soft) 80%, white 12%) 100%
    );
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .32),
        0 0 16px rgba(255, 255, 255, .22) inset;
    filter: brightness(1.12);
}

#openMapBtn:active {
    transform: scale(0.97);
    filter: brightness(.90);
}

/* ============================================================
   ⚡ QUICK FILTERS INTERATTIVI
============================================================ */
.quick-filters {
    justify-content: center;
}

.quick-filter-wrapper {
    position: relative;
    margin: 0;
}

.quick-filter-pill {
    padding: 8px 16px;
    background: #eef2f7;
    border-radius: var(--radius-full);
    border: 1px solid #d1d5db;
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.quick-filter-pill:hover {
    background: rgba(0, 109, 132, 0.1);
    border-color: var(--iqera-green);
    color: var(--iqera-green);
}

.quick-filter-pill.active,
.quick-filter-pill.open {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    border-color: transparent;
}

.qf-arrow {
    font-size: .7rem;
    opacity: .7;
    transition: transform .3s ease;
}

.quick-filter-pill.open .qf-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.quick-filter-menu {
    position: absolute;
    top: 52px;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    display: none;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-filter-menu.show {
    display: block;
    height: 250px;
    overflow-y: auto;
}

.quick-filter-menu-wide {
    min-width: 380px;
}

/* Checkbox/Radio Options */
.qf-option-item {
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    transition: .25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qf-option-item:hover {
    background: #f1f5f9;
}

.qf-option-item input[type="checkbox"],
.qf-option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--iqera-green);
}

.qf-option-item label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
}

.qf-option-item input:checked + label {
    color: var(--iqera-green);
    font-weight: 700;
}

/* ============================================================
   🟩 FILTRI ATTIVI (pill premium)
============================================================ */
.active-filters-bar {
    margin-top: 12px;
}

.active-filter-pill {
    padding: 6px 16px;
    background: var(--iqera-green);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .25s;
    animation: fadeInPill 0.3s ease;
    cursor: pointer;
}

.active-filter-pill.red {
    background: var(--iqera-red-strong);
}

@keyframes fadeInPill {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.active-filter-pill:hover {
    background: var(--iqera-green-soft);
}

.active-filter-pill.red:hover {
    background: var(--iqera-red);
}

.remove-filter {
    font-size: .75rem;
    cursor: pointer;
    opacity: .8;
    transition: .2s;
}

.remove-filter:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ============================================================
   🎨 FILTRI SIDEBAR — GLASSMORPHIC IQERA EDITION
============================================================ */
.filters-sidebar {
    position: fixed;
    top: 0;
    left: -430px;
    width: 420px;
    height: 100vh;
    background: linear-gradient(165deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 249, 251, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0;
    z-index: 1200;
    box-shadow: 8px 0 48px rgba(0, 109, 132, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    transition: left .42s cubic-bezier(.22, .99, .3, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: rgba(240, 249, 251, 0.3);
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--iqera-green-soft) 0%, var(--iqera-green) 100%);
    border-radius: 10px;
}

.filters-sidebar.open {
    left: 0;
}

/* Header Sidebar */
.sidebar-header {
    background: linear-gradient(135deg, 
        rgba(0, 109, 132, 0.08) 0%, 
        rgba(0, 158, 191, 0.05) 100%);
    padding: 28px 24px;
    border-bottom: 1px solid rgba(0, 109, 132, 0.12);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.sidebar-header h5 {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

#closeFiltersBtn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 109, 132, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 12px rgba(0, 109, 132, 0.08);
}

#closeFiltersBtn:hover {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 109, 132, 0.25);
}

#closeFiltersBtn i {
    font-size: 1.2rem;
    transition: inherit;
}

.sidebar-content {
    padding: 20px 15px 32px;
}

/* Filter Sections */
.filter-section {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 109, 132, 0.1);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 12px rgba(0, 109, 132, 0.04);
    position: relative;
    z-index: 1;
}

.filter-section:has(.custom-select-wrapper.open) {
    z-index: 100 !important;
    position: relative;
}

.filter-section:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 109, 132, 0.2);
    box-shadow: 0 6px 24px rgba(0, 109, 132, 0.12);
    transform: translateY(-2px);
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 14px;
    user-select: none;
}

.filter-section-header .form-label {
    font-weight: 700;
    font-size: 1.02rem;
    color: #334155;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section-header .form-label i {
    font-size: .95rem;
    color: var(--iqera-green);
}

.filter-toggle-icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 109, 132, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.filter-toggle-icon i {
    font-size: .85rem;
    color: var(--iqera-green);
    transition: transform .3s ease;
}

.filter-section.collapsed .filter-toggle-icon i {
    transform: rotate(-180deg);
}

.filter-section-content {
    max-height: 500px;
    opacity: 1;
    overflow: visible !important;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    z-index: inherit;
}

.filter-section.collapsed .filter-section-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
}

.filter-section:not(.collapsed) .filter-section-content {
    overflow: visible;
}

/* Form Elements */
.filter-section .form-select,
.filter-section .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 109, 132, 0.15);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #334155;
    transition: all .3s ease;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    background: #fff;
    border-color: var(--iqera-green);
    box-shadow: 0 0 0 4px rgba(0, 109, 132, 0.12);
    outline: none;
}

.filter-section .form-select:hover,
.filter-section .form-control:hover {
    border-color: rgba(0, 109, 132, 0.3);
}

/* Checkbox & Radio Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.filter-tag {
    position: relative;
}

.filter-tag input[type="checkbox"],
.filter-tag input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.filter-tag-label {
    display: inline-block;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(0, 109, 132, 0.18);
    border-radius: 30px;
    font-size: .88rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    user-select: none;
}

.filter-tag-label:hover {
    background: rgba(0, 109, 132, 0.08);
    border-color: rgba(0, 109, 132, 0.35);
    color: var(--iqera-green);
    transform: translateY(-2px);
}

.filter-tag input:checked + .filter-tag-label {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 109, 132, 0.3);
    transform: translateY(-2px);
}

/* Tag Input System */
.tag-input-wrapper {
    margin-top: 8px;
}

.tag-input-container {
    min-height: 48px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 109, 132, 0.15);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all .3s ease;
}

.tag-input-container:focus-within {
    background: #fff;
    border-color: var(--iqera-green);
    box-shadow: 0 0 0 4px rgba(0, 109, 132, 0.12);
}

.tag-input-field {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    background: transparent;
    font-size: .9rem;
    font-weight: 500;
    color: #334155;
    padding: 6px 8px;
}

.tag-input-field::placeholder {
    color: #94a3b8;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 20px;
    animation: tagAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-item-text {
    user-select: none;
}

.tag-item-remove {
    cursor: pointer;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    transition: all .2s ease;
}

.tag-item-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.tag-input-hint {
    margin-top: 8px;
    font-size: .78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-input-hint i {
    color: var(--iqera-green);
}

/* ============================================================
   📅 FILTRO DATA ASTA - STYLE PERFETTO
============================================================ */
.auction-date-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(139, 0, 0, 0.15);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #334155;
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
}

.auction-date-input:focus {
    background: #fff;
    border-color: var(--iqera-red);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.12);
    outline: none;
}

.auction-date-input:hover {
    border-color: rgba(139, 0, 0, 0.3);
}

.auction-date-input::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    transition: opacity .3s ease;
}

.auction-date-input:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.auction-date-input::-webkit-inner-spin-button,
.auction-date-input::-webkit-clear-button {
    display: none;
}

.auction-date-range-filter .form-label {
    user-select: none;
    cursor: pointer;
    transition: color .3s ease;
}

.auction-date-range-filter .form-label:hover {
    color: var(--iqera-red);
}

.auction-date-range-filter .form-label i {
    color: var(--iqera-red);
    font-size: .85rem;
    transition: transform .3s ease;
}

.auction-date-range-filter .form-label:hover i {
    transform: scale(1.15);
}

/* Quick Date Filters */
.quick-date-filters {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 109, 132, 0.1);
}

.quick-date-label {
    font-size: .85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.quick-date-filters .filter-tag-label i {
    font-size: .8rem;
    margin-right: 4px;
    opacity: 0.85;
    transition: opacity .3s ease;
}

.quick-date-filters .filter-tag input:checked + .filter-tag-label i {
    opacity: 1;
    animation: pulse 0.6s ease-in-out;
}

.quick-date-filters .filter-tag-label:hover i {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.auction-date-input:invalid {
    border-color: rgba(220, 38, 38, 0.5);
}

.auction-date-input:valid {
    border-color: rgba(34, 197, 94, 0.3);
}

@media (max-width: 768px) {
    .auction-date-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .auction-date-range-filter .d-flex.gap-2 {
        gap: 12px !important;
    }
}

/* ============================================================
   📋 CUSTOM SELECT CON RADIO BUTTONS (SIDEBAR)
============================================================ */
.custom-select-wrapper {
    position: relative;
    z-index: 50;
}

.custom-select-wrapper.open {
    z-index: 150;
}

.custom-select-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 109, 132, 0.15);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #334155;
    transition: all .3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.custom-select-button:hover {
    border-color: rgba(0, 109, 132, 0.3);
    background: #fff;
}

.custom-select-button:focus,
.custom-select-wrapper.open .custom-select-button {
    background: #fff;
    border-color: var(--iqera-green);
    box-shadow: 0 0 0 4px rgba(0, 109, 132, 0.12);
    outline: none;
}

.custom-select-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-button i {
    font-size: .85rem;
    color: #64748b;
    transition: transform .3s ease;
}

.custom-select-wrapper.open .custom-select-button i {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid rgba(0, 109, 132, 0.15);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    z-index: 200;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-wrapper.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(240, 249, 251, 0.3);
    border-radius: 10px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--iqera-green-soft) 0%, var(--iqera-green) 100%);
    border-radius: 10px;
}

.custom-select-dropdown .qf-option-item {
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    transition: .25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.custom-select-dropdown .qf-option-item:last-child {
    margin-bottom: 0;
}

.custom-select-dropdown .qf-option-item:hover {
    background: #f1f5f9;
}

/* Range Filter Dropdown */
.range-filter {
    position: relative;
}

.qf-dropdown-range {
    min-width: 380px;
}

.range-box {
    display: flex;
    gap: 12px;
}

.range-options {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.range-list-left,
.range-list-right {
    background: rgba(248, 250, 252, 0.6);
    border-radius: 10px;
    padding: 8px;
}

.range-options li {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .88rem;
    color: #475569;
    font-weight: 500;
    transition: all .25s ease;
    margin-bottom: 4px;
}

.range-options li:last-child {
    margin-bottom: 0;
}

.range-options li:hover {
    background: rgba(0, 109, 132, 0.1);
    color: var(--iqera-green);
    font-weight: 600;
}

.range-options li.active {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    font-weight: 700;
}

/* Button Applica & Reset Filtri */
.btn-apply-filters {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(0, 109, 132, 0.35);
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.btn-apply-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left .6s ease;
}

.btn-apply-filters:hover::before {
    left: 100%;
}

.btn-apply-filters:hover {
    background: linear-gradient(135deg, var(--iqera-green-soft) 0%, var(--iqera-green) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-apply-filters:active {
    transform: translateY(-1px);
}

.btn-reset-filters {
    width: 100%;
    padding: 13px;
    background: rgba(69, 1, 10, 0.06);
    border: 1.5px solid rgba(69, 1, 10, 0.15);
    border-radius: 14px;
    color: var(--iqera-red);
    font-size: .95rem;
    font-weight: 600;
    transition: all .3s ease;
    margin-top: 12px;
}

.btn-reset-filters:hover {
    background: linear-gradient(135deg, var(--iqera-red) 0%, var(--iqera-red-strong) 100%);
    border-color: var(--iqera-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(69, 1, 10, 0.25);
}

/* Backdrop */
.filters-backdrop {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 109, 132, 0.12) 0%, 
        rgba(0, 158, 191, 0.18) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    z-index: 1190;
    transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
}

.filters-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   🏡 RISULTATI — LAYOUT ELENCO (Desktop) / CARD (Mobile)
============================================================ */
.search-results {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.search-results h4 {
    color: #1e293b;
    font-weight: 700;
}

.search-result-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ✅ CARD BASE - MOBILE FIRST */
.search-result-item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    height: auto;
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 109, 132, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--iqera-green) 0%, var(--iqera-green-soft) 50%, var(--iqera-green) 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}

.search-result-item:hover::before {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.search-result-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--iqera-green), var(--iqera-green-soft));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.search-result-item:hover::after {
    opacity: 0.3;
}

.search-result-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 109, 132, 0.15);
    border-color: rgba(0, 109, 132, 0.2);
}

/* Animazioni */

/*.search-result-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}*/

/*.search-result-item.search-item-appear {
    opacity: 1;
    transform: translateY(0);
}*/

/* Immagine/Carosello */
.search-result-image-wrapper {
    position: relative;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
}

.search-result-carousel {
    height: 100%;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.search-result-carousel .carousel-inner,
.search-result-carousel .carousel-item {
    height: 100%;
}

.search-result-carousel img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1), filter .4s ease;
    filter: brightness(1);
    will-change: transform;
    backface-visibility: hidden;
}

.search-result-item:hover .search-result-carousel img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.search-result-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
    pointer-events: none;
}

.search-result-item:hover .search-result-carousel::after {
    opacity: 1;
}

/* Frecce carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 3;
}

.carousel-control-prev {
    left: 5px;
}

.carousel-control-next {
    right: 5px;
}

.search-result-carousel:hover .carousel-control-prev,
.search-result-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-icon {
    height: 46px;
    width: 46px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-control-icon:hover {
    background: var(--iqera-green);
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 109, 132, 0.4);
}

.carousel-control-icon i {
    font-size: 1rem;
    color: #334155;
    transition: color .3s ease;
}

.carousel-control-icon:hover i {
    color: #fff;
}

/* Badge */
.search-result-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 5px 14px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-vendita {
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.95) 0%, rgba(0, 158, 191, 0.95) 100%);
    box-shadow: 0 6px 16px rgba(0, 109, 132, 0.4);
}

.badge-asta {
    background: linear-gradient(135deg, rgba(69, 1, 10, 0.95) 0%, rgba(139, 0, 0, 0.95) 100%);
    box-shadow: 0 6px 16px rgba(69, 1, 10, 0.4);
}

.badge-riservata {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.95) 0%, rgba(34, 34, 34, 0.95) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Contenuto */
.search-result-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.search-result-header {
    flex-shrink: 0;
}

.search-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color .3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item:hover .search-result-title {
    color: var(--iqera-green);
}

.search-result-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    flex-shrink: 0;
}

.search-result-location i {
    color: var(--iqera-green);
    font-size: 0.88rem;
}

.search-result-reference {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #475569;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.08) 0%, rgba(0, 158, 191, 0.12) 100%);
    border-radius: 8px;
    border: 1.5px solid rgba(0, 109, 132, 0.2);
    font-weight: 600;
    width: fit-content;
    margin-top: 6px;
    margin-bottom: 0px;
    flex-shrink: 0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-reference:hover {
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.12) 0%, rgba(0, 158, 191, 0.18) 100%);
    border-color: rgba(0, 109, 132, 0.35);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 109, 132, 0.15);
}

.search-result-reference i {
    color: var(--iqera-green);
    font-size: 0.7rem;
}

.search-result-reference strong {
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.search-result-description {
    font-size: .88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex: 0 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Features */
.search-result-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    flex-shrink: 0;
}

.search-result-features > span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: #475569;
    padding: 7px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.search-result-features > span:hover {
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.08) 0%, rgba(0, 158, 191, 0.1) 100%);
    border-color: rgba(0, 109, 132, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 109, 132, 0.15);
}

.search-result-features > span > i {
    color: var(--iqera-green);
    font-size: 0.8rem;
}

/* Sidebar Azione */
.search-result-action {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    background: linear-gradient(135deg, rgba(0, 109, 132, 0.03) 0%, rgba(0, 158, 191, 0.05) 100%);
    border-top: 1px solid rgba(0, 109, 132, 0.1);
    position: relative;
}

.search-result-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

.search-result-price {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--iqera-green) 0%, #00a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    text-align: center;
    line-height: 1.2;
}

.search-result-price-reserved {
    font-size: 1.15rem;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-result-price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 4px 12px;
    background: rgba(0, 109, 132, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(0, 109, 132, 0.15);
}

.search-result-price-label-cta {
    color: var(--iqera-green);
    background: rgba(0, 109, 132, 0.12);
    border-color: rgba(0, 109, 132, 0.25);
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.search-result-price-label-cta:hover {
    background: rgba(0, 109, 132, 0.18);
    transform: translateY(-2px);
}

.search-result-auction-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #8b0000;
    font-weight: 600;
    margin-top: 4px;
    padding: 6px 12px;
    background: rgba(139, 0, 0, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(139, 0, 0, 0.15);
}

.search-result-auction-date i {
    font-size: 0.9rem;
}

.search-result-btn-detail {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 109, 132, 0.25);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.search-result-btn-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transition: left .6s ease;
}

.search-result-btn-detail:hover::before {
    left: 100%;
}

.search-result-btn-detail:hover {
    background: linear-gradient(135deg, var(--iqera-green-soft) 0%, var(--iqera-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 109, 132, 0.35);
    color: #fff;
    text-decoration: none;
}

.search-result-btn-detail:active {
    transform: translateY(-1px);
}

.search-result-btn-detail i {
    font-size: 0.85rem;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-btn-detail:hover i {
    transform: translateX(6px);
}

/* ============================================================
   🔵 PAGINAZIONE
============================================================ */
.pagination-wrapper {
    margin-top: 56px;
}

.iqera-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 10px;
    justify-content: center;
    margin: 0;
    flex-wrap: wrap;
}

.iqera-pagination .page-item {
    list-style: none;
}

.iqera-pagination .page-link {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    padding: 0 14px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.iqera-pagination .page-item:last-child .page-link {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.iqera-pagination .page-item:first-child .page-link {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.iqera-pagination .page-link:hover {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 109, 132, 0.25);
}

.iqera-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--iqera-green) 0%, var(--iqera-green-soft) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 109, 132, 0.3);
}

.iqera-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.iqera-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #f8fafc;
    color: #cbd5e1;
}

/* ============================================================
   📱 MEDIA QUERIES - RESPONSIVE
============================================================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .filter-topbar {
        flex-wrap: nowrap;
        gap: 18px;
    }

    .search-location-input {
        width: 45% !important;
    }

    .quick-filters {
        width: auto;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 500px;
    }

    #openFiltersBtn,
    #openMapBtn {
        width: auto;
    }

    .quick-filter-menu {
        position: absolute;
        width: 260px !important;
        border-radius: 14px;
        top: 48px;
        left: 0;
    }

    .iqera-pagination {
        gap: 8px;
    }

    .iqera-pagination .page-link {
        min-width: 42px;
        height: 42px;
        font-size: 0.9rem;
        padding: 0 12px;
    }
}

/* Mobile & Tablet (<1024px) - Nascondi Quick Filters */
@media (max-width: 1023px) {
    .quick-filter-wrapper {
        display: none !important;
    }

    .btn-sticky-filter {
        justify-content: center;
    }
}

/* ✅ DESKTOP (≥1024px) - CARD CON ALTEZZA UNIFORME 340PX */
@media (min-width: 1024px) {
    .filter-topbar {
        padding: 20px 26px;
        gap: 24px;
    }

    .search-location-input {
        width: 50% !important;
    }

    .quick-filters {
        max-width: none;
    }

    .quick-filter-pill {
        padding: 8px 16px;
        font-size: .85rem;
    }

    .quick-filter-menu {
        min-width: 260px;
    }

    .quick-filter-wrapper {
        display: block !important;
    }

    /* ✅ CARD DESKTOP - ALTEZZA FISSA 340PX */
    .search-result-item {
        grid-template-columns: 450px 1fr 260px;
        grid-template-rows: 1fr;
        height: 340px;
        min-height: 340px;
        max-height: 340px;
        opacity: 1;
    }

    /* Immagine - 100% altezza */
    .search-result-image-wrapper {
        height: 100%;
        min-height: 100%;
    }

    .search-result-carousel,
    .search-result-carousel .carousel-inner,
    .search-result-carousel .carousel-item {
        height: 100%;
    }

    .search-result-carousel img {
        height: 100%;
    }

    /* ✅ Contenuto - Layout flex ottimizzato */
    .search-result-content {
        padding: 24px 20px;
        gap: 10px;
        height: 100%;
        min-height: 0;
    }

    .search-result-title {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 6px;
        max-height: calc(1.25em * 2);
    }

    .search-result-location {
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .search-result-reference {
        font-size: 0.76rem;
        padding: 4px 10px;
        margin-top: 4px;
        line-height: 1;
    }

    /* ✅ DESCRIZIONE - 4 RIGHE CON ELLIPSIS */
    .search-result-description {
        font-size: 0.93rem;
        line-height: 1.55;
        flex: 1 1 auto;
        min-height: 0;
        -webkit-line-clamp: 6;
        max-height: calc(1.55em * 6);
    }

    /* Features */
    .search-result-features {
        gap: 8px;
        margin-top: auto;
        padding-top: 8px;
    }

    .search-result-features > span {
        font-size: 0.82rem;
        padding: 6px 11px;
    }

    /* ✅ Sidebar action - 100% altezza */
    .search-result-action {
        padding: 24px 20px;
        justify-content: space-between;
        align-items: center;
        border-left: 1px solid rgba(0, 109, 132, 0.1);
        border-top: none;
        height: 100%;
    }

    .search-result-action::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 3px;
        background: linear-gradient(180deg, transparent, var(--iqera-green), transparent);
        opacity: 0;
        transition: opacity .4s ease;
    }

    .search-result-item:hover .search-result-action::before {
        opacity: 1;
    }

    .search-result-price {
        font-size: 1.45rem;
    }

    .search-result-price-label {
        font-size: 0.78rem;
    }

    .search-result-auction-date {
        font-size: 0.82rem;
        padding: 5px 10px;
    }

    .search-result-btn-detail {
        padding: 11px 20px;
        font-size: 0.88rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .search-result-item {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .search-result-image-wrapper {
        height: 260px !important;
        min-height: 260px !important;
    }

    .search-result-carousel,
    .search-result-carousel .carousel-inner,
    .search-result-carousel .carousel-item,
    .search-result-carousel img {
        height: 260px !important;
    }

    .search-result-content {
        padding: 22px;
    }

    .search-result-title {
        font-size: 1.25rem;
    }

    .search-result-description {
        -webkit-line-clamp: 3;
    }

    .search-result-action {
        padding: 22px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        border-left: none !important;
        border-top: 1px solid rgba(0, 109, 132, 0.1);
        height: auto !important;
    }

    .search-result-action::before {
        display: none;
    }

    .search-result-price {
        font-size: 1.6rem;
    }

    .search-result-price-reserved {
        font-size: 1.15rem;
    }

    .search-result-btn-detail {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .search-result-features {
        gap: 10px;
    }

    .search-result-features > span {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    .search-result-item {
        animation: none !important;
        opacity: 1 !important;
    }

    .filter-topbar {
        flex-direction: column;
        border-radius: 20px;
        gap: 5px;
        padding: 14px;
        position: relative;
        z-index: 10;
    }

    .search-location-input {
        width: 100% !important;
    }

    .quick-filters {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        position: relative;
        z-index: 20;
    }

    .quick-filter-pill {
        padding: 6px 12px;
        font-size: .78rem;
    }

    .quick-filter-menu {
        position: fixed !important;
        left: 50%;
        transform: translateX(-50%);
        top: 110px;
        width: calc(100% - 32px) !important;
        max-width: 400px;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 9999;
        border-radius: 14px;
        padding: 14px;
        box-shadow: 0 16px 40px rgba(0,0,0,.25);
    }

    .quick-filter-menu.show {
        transform: translateX(-50%);
    }

    #openFiltersBtn,
    #openMapBtn {
        width: calc(50% - 6px);
        justify-content: center;
    }

    .active-filters-bar {
        padding-left: 5px;
    }

    .pagination-wrapper {
        margin-top: 40px;
    }
}

/* Mobile Small (<576px) */
@media (max-width: 576px) {
    .search-result-container {
        gap: 20px;
    }

    .search-result-item {
        border-radius: 16px;
    }

    .search-result-image-wrapper {
        height: 220px !important;
        min-height: 220px !important;
    }

    .search-result-carousel,
    .search-result-carousel .carousel-inner,
    .search-result-carousel .carousel-item,
    .search-result-carousel img {
        height: 220px !important;
    }

    .carousel-control-icon {
        height: 40px;
        width: 40px;
    }

    .carousel-control-icon i {
        font-size: 0.9rem;
    }

    .search-result-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: 12px;
        left: 12px;
    }

    .search-result-content {
        padding: 18px;
        gap: 12px;
    }

    .search-result-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .search-result-location {
        font-size: 0.88rem;
    }

    .search-result-reference {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .search-result-description {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .search-result-features {
        gap: 8px;
        padding-top: 6px;
    }

    .search-result-features > span {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .search-result-action {
        padding: 18px;
        gap: 16px;
    }

    .search-result-price {
        font-size: 1.5rem;
    }

    .search-result-price-reserved {
        font-size: 1.05rem;
    }

    .search-result-price-label {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .search-result-auction-date {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .search-result-btn-detail {
        padding: 11px 20px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .pagination-wrapper {
        margin-top: 32px;
    }

    .iqera-pagination {
        gap: 6px;
    }

    .iqera-pagination .page-link {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
        padding: 0 10px;
        border-radius: 10px;
    }
}

/* Mobile Extra Small (<375px) */
@media (max-width: 375px) {
    .search-result-reference {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .search-result-title {
        font-size: 1.1rem;
    }

    .search-result-features > span {
        font-size: 0.75rem;
        padding: 5px 8px;
        gap: 5px;
    }

    .search-result-price {
        font-size: 1.35rem;
    }

    .search-result-btn-detail {
        font-size: 0.8rem;
        padding: 10px 18px;
    }
}

/* ===================================
   🎨 SORT DROPDOWN PREMIUM
=================================== */
.results-header-bar {
    padding: 1rem 0;
}

.btn-sort {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-sort:hover {
    background: rgba(0, 109, 132, 0.1);
    border-color: var(--iqera-green);
    color: var(--iqera-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,184,148,0.15);
}


.btn-sort i {
    color: var(--iqera-green, #00b894);
    font-size: 1rem;
}

.sort-label {
    font-size: 0.85rem;
    color: #666;
    display: none;
}

.sort-current {
    font-weight: 600;
    color: #333;
}

.sort-menu {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem;
    min-width: 240px;
    margin-top: 0.5rem;
}

.sort-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sort-menu .dropdown-item:hover {
    background: #f0fdf4;
    color: var(--iqera-green, #00b894);
    transform: translateX(4px);
}

.sort-menu .dropdown-item.active {
    background: var(--iqera-green, #00b894);
    color: white;
    font-weight: 600;
}

.sort-menu .dropdown-item.active i {
    color: white;
}

.sort-menu .dropdown-item i {
    color: var(--iqera-green, #00b894);
    width: 20px;
}

/* Responsive */
@media (min-width: 768px) {
    .sort-label {
        display: inline;
    }
}

@media (max-width: 767px) {
    .results-header-bar {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .sort-wrapper {
        width: 100%;
    }
    
    .btn-sort {
        width: 100%;
        justify-content: center;
    }
    
}
   
/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: linear-gradient(-45deg, #f0f7f9, #e6f2f6, #b8e0e8, #d1e8ed, #f0f7f9);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
}

.loader-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,158,191,0.3), transparent);
    animation: shimmer2 2s infinite;
}

.houses {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 40px;
}

.house {
    animation: bounce 1.4s infinite ease-in-out;
    transition: all 0.3s ease;
}

.house:nth-child(1) { 
    color: #009ebf; 
    animation-delay: -0.32s; 
}
.house:nth-child(2) { 
    color: #006D84; 
    animation-delay: -0.16s; 
}
.house:nth-child(3) { 
    color: #6B0908; 
    animation-delay: 0s; 
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(1) translateY(0) rotate(0deg); 
    }
    40% { 
        transform: scale(1.2) translateY(-15px) rotate(5deg); 
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer2 {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loader-text {
    color: #666;
    font-size: 18px;
    font-weight: 500;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ============================================================
   🗺️ MAP VIEW – IQERA PREMIUM FINAL
============================================================ */

/* ============================================================
   LAYOUT BASE
============================================================ */
.map-view-v2 {
    display: flex;
    width: 100%;
    height: calc(100vh - 180px);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    overflow: hidden;
    position: relative;
}

/* ============================================================
   SIDEBAR RISULTATI
============================================================ */

.map-view-v2 .map-sidebar-results {
    width: 50%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid rgba(0,109,132,.12);
    z-index: 2;
}


/* ============================================================
   HEADER STICKY
============================================================ */
.map-view-v2 .map-results-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 20px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,109,132,.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   🔽 SORT BUTTON
============================================================ */
.map-view-v2 .btn-sort-compact {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: .9rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.map-view-v2 .btn-sort-compact i {
    color: var(--iqera-green);
}

.map-view-v2 .btn-sort-compact:hover {
    background: rgba(0,109,132,.08);
    border-color: var(--iqera-green);
    color: var(--iqera-green);
    transform: translateY(-1px);
}

/* ============================================================
   LISTA SCROLL
============================================================ */
.map-view-v2 .map-results-list {
    flex: 1;
    overflow-y: auto;
}

.map-view-v2 .map-results-list::-webkit-scrollbar {
    width: 6px;
}
.map-view-v2 .map-results-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--iqera-green-soft), var(--iqera-green));
    border-radius: 10px;
}

/* ============================================================
   CARD – MAP VIEW (REFINED)
============================================================ */
.map-view-v2 .search-result-item {
    display: grid;
    grid-template-columns: 34% 41% 25%;
    height: 300px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(0,109,132,.12);
    transition: transform .25s ease, box-shadow .25s ease;
    margin: 16px 8px;
}

.map-view-v2 .search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(0,109,132,.18);
}

/* ===== EMPTY STATE - IMMOBILIARE STYLE ===== */
.map-view-v2 .no-results-state{
  padding: 18px 18px 44px;
  background: #fff;
}

.map-view-v2 .no-results-top-title{
  margin: 0 0 14px;
  font-weight: 800;
  color: #0f172a;
  font-size: 1.05rem;
}

.map-view-v2 .no-results-center{
  min-height: 100%;                 /* tanto bianco come screenshot */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 10px 10px;
}

.no-results-illu-wrap{
  width: min(640px, 92%);
  margin: 0 auto 18px;
}

.no-results-illu{
  width: 100%;
  height: auto;
  display: block;
}

.map-view-v2 .no-results-title{
  margin: 0;
  font-weight: 900;
  color: #006D84;                   /* tuo petrolio */
  font-size: 1.9rem;
  letter-spacing: -0.3px;
}

.map-view-v2 .no-results-text{
  margin: 10px 0 0;
  max-width: 720px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.55;
}


/* ============================================================
   IMMAGINE
============================================================ */
.map-view-v2 .search-result-image-wrapper,
.map-view-v2 .search-result-carousel,
.map-view-v2 .search-result-carousel img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.map-view-v2 .search-result-image-wrapper {
    position: relative;
}

.map-view-v2 .search-result-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.18) 0%,
        rgba(0,0,0,0) 40%
    );
    pointer-events: none;
}

/* ============================================================
   CONTENUTO CARD
============================================================ */
.map-view-v2 .search-result-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.map-view-v2 .search-result-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   DESCRIZIONE – ELLIPSIS PERFETTO
============================================================ */
.map-view-v2 .search-result-description {
    font-size: .88rem;
    line-height: 1.55;
    color: #64748b;

    /* Clamp moderno */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;

    /* Fallback ellipsis */
    overflow: hidden;
    text-overflow: ellipsis;

    /* Sicurezza layout */
    max-height: calc(1.55em * 5);
}

/* FEATURES */
.map-view-v2 .search-result-features {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: .82rem;
}

.map-view-v2 .search-result-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.map-view-v2 .search-result-features i {
    color: var(--iqera-green);
}

/* ============================================================
   AZIONI / PREZZO
============================================================ */
.map-view-v2 .search-result-action {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(
        180deg,
        rgba(0,109,132,.04),
        rgba(0,158,191,.07)
    );

    border-left: 1px solid rgba(0,109,132,.10);
}

.map-view-v2 .search-result-price {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(
        135deg,
        var(--iqera-green),
        var(--iqera-green-soft)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   MAPPA DESTRA
============================================================ */
.map-view-v2 .map-container-wrapper {
    width: 50%;
    position: relative;
    background: #e5e7eb;
}

/* ============================================================
   📱 TABLET – IMMOBILIARE.IT BEHAVIOUR
============================================================ */
@media (max-width: 1024px) {

    .map-view-v2 {
        flex-direction: column;
        height: auto;
    }

    .map-view-v2 .map-sidebar-results {
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .map-view-v2 .map-container-wrapper {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        height: 58vh;
        max-height: 520px;
        min-height: 360px;
        z-index: 20;
		width: 100%;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .3s ease, transform .3s cubic-bezier(.4,0,.2,1);
    }

    .map-view-v2.map-open .map-container-wrapper {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .map-view-v2.map-open .map-results-list {
        filter: blur(1.5px);
        pointer-events: none;
        overflow: hidden;
        max-height: calc(100vh - 72px);
    }
    
    .map-view-v2.map-open .map-sidebar-results {
		overflow: hidden;
	}
	
}
/* ============================================================
   📱 MOBILE
============================================================ */
@media (max-width: 768px) {

    .map-view-v2 .search-result-item {
        grid-template-columns: 100%;
        grid-template-rows: 170px auto 100px;
        height: 400px;
    }

    .map-view-v2 .search-result-description {
        -webkit-line-clamp: 3;
        max-height: calc(1.55em * 3);
    }
}

/* ============================================================
   🗺️ MAP TOGGLE BUTTON
============================================================ */
.btn-map-toggle {
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(0,109,132,.95),
        rgba(0,158,191,.95)
    );
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 10px 26px rgba(0,109,132,.35),
                inset 0 0 0 1px rgba(255,255,255,.25);
    transition: all .25s ease;
}

.btn-map-toggle:hover {
    transform: translateY(-2px);
}

.map-view-v2.map-open .btn-map-toggle {
    background: linear-gradient(
        135deg,
        rgba(107,9,8,.95),
        rgba(160,25,23,.95)
    );
}



#openListBtn {
    border-radius: var(--radius-full);
    padding: 10px 24px;
    color: #fff;
    border: none;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--iqera-red-strong) 85%, black 15%) 0%,
        color-mix(in srgb, var(--iqera-red) 80%, black 10%) 30%,
        color-mix(in srgb, var(--iqera-green) 80%, black 20%) 65%,
        color-mix(in srgb, var(--iqera-green-soft) 85%, white 15%) 100%
    );
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, .25),
        0 0 12px rgba(255, 255, 255, .15) inset;
    transition: var(--transition-smooth);
}

#openListBtn:hover {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--iqera-green-soft) 80%, white 12%) 0%,
        color-mix(in srgb, var(--iqera-green) 85%, black 15%) 30%,
        color-mix(in srgb, var(--iqera-red) 90%, black 10%) 70%,
        color-mix(in srgb, var(--iqera-red-strong) 85%, white 10%) 100%
    );
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .32),
        0 0 16px rgba(255, 255, 255, .22) inset;
    filter: brightness(1.12);
}

#openListBtn:active {
    transform: scale(0.97);
    filter: brightness(.90);
}


/* ============================================================
   APP DOWNLOAD SECTION
============================================================ */

.app-section {
    padding: 80px 20px;
    background: linear-gradient(135deg,
        rgba(0, 109, 132, 0.03) 0%,
        rgba(0, 158, 191, 0.06) 50%,
        rgba(12, 12, 46, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.app-grid {
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 8vw, 80px);
}

/* Testo / QR */
.app-content {
    max-width: 70%;
    flex: 1;
}

.app-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 109, 132, 0.08);
    color: var(--iqera-green);
    border-radius: 999px;
    font-size: clamp(10px, 0.8vw, 11px);
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.app-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    color: var(--darkblue);
    margin-bottom: 12px;
    line-height: 1.2;
}

.app-subtitle {
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--dettaglio-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.app-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 24px);
    align-items: center;
    margin-bottom: 24px;
}

/* QR block */
.app-qr-block {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
    flex-wrap: wrap;
}

/* Switch QR - DESIGN PREMIUM & MINIMAL */
.app-qr-switch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 109, 132, 0.15);
    box-shadow: 0 4px 16px rgba(0, 109, 132, 0.08);
}

.app-qr-toggle {
    border: none;
    background: transparent;
    color: var(--darkblue);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: clamp(12px, 1vw, 13px);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 44px;
    text-align: center;
}

.app-qr-toggle i {
    font-size: clamp(14px, 1.3vw, 16px) !important;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.app-qr-toggle span {
    font-weight: 600;
}

.app-qr-toggle:not(.active) {
    opacity: 0.6;
}

.app-qr-toggle.active {
    background: var(--theme-gradient1);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 109, 132, 0.25);
    transform: translateY(-1px);
}

.app-qr-toggle:hover:not(.active) {
    opacity: 0.85;
    background: rgba(0, 109, 132, 0.08);
}

.app-qr-toggle.active:hover {
    box-shadow: 0 6px 20px rgba(0, 109, 132, 0.3);
    transform: translateY(-2px);
}

.app-qr-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 109, 132, 0.2);
}

/* Card QR */
.app-qr-card {
    width: clamp(90px, 12vw, 110px);
    height: clamp(90px, 12vw, 110px);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.app-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    border-radius: 12px;
}

.app-qr-img.active {
    display: block;
}

.app-qr-text p {
    margin: 0;
    font-size: clamp(12px, 1vw, 13px);
    color: var(--dettaglio-muted);
    line-height: 1.5;
}

/* Store badges ufficiali */
.app-store-buttons {
    display: flex;
    gap: clamp(8px, 1vw, 10px);
    flex-wrap: wrap;
}

.store-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.store-badge-img {
    height: clamp(34px, 4vw, 40px);
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.store-badge-link:hover .store-badge-img {
    transform: scale(1.05);
}

/* Feature list */
.app-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: clamp(6px, 0.8vw, 8px);
    margin-top: 8px;
}

.app-feature-list li {
    font-size: clamp(13px, 1vw, 14px);
    color: var(--dettaglio-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-feature-list i {
    color: var(--iqera-green);
    width: 16px;
    flex-shrink: 0;
}

/* Visual / Carousel */
.app-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.app-carousel {
    position: relative;
}

/* Frame telefono */
.app-phone-frame {
    width: clamp(200px, 22vw, 260px);
    height: clamp(400px, 44vw, 520px);
    border-radius: clamp(28px, 4vw, 36px);
    padding: clamp(10px, 1.5vw, 12px);
    background: radial-gradient(circle at 20% 0,
        rgba(0, 158, 191, 0.2) 0%,
        rgba(12, 12, 46, 0.9) 40%,
        rgba(12, 12, 46, 1) 100%);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.app-phone-frame::before {
    content: '';
    position: absolute;
    top: clamp(8px, 1.2vw, 10px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(50px, 6vw, 60px);
    height: clamp(4px, 0.7vw, 6px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.app-phone-frame .carousel-inner {
    border-radius: clamp(22px, 3vw, 26px);
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: #000;
}

.app-phone-frame .carousel-item {
    width: 100%;
    height: 100%;
}

.app-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: #000;
}

/* Dots carousel */
.app-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(12px, 1.5vw, 14px);
}

.app-carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(0, 109, 132, 0.3);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.app-carousel-dots button.active {
    width: 18px;
    background: var(--iqera-green);
}

/* Nasconde frecce Bootstrap */
#appScreensCarousel .carousel-control-prev,
#appScreensCarousel .carousel-control-next {
    display: none;
}

/* ============================================================
   RESPONSIVE - PERFETTA SENZA SPAZZATURE
============================================================ */

/* Desktop Large - mantiene il tuo layout */
@media (min-width: 1200px) {
    .app-content {
        max-width: 70%;
    }
    
    .app-grid {
        gap: 80px;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .app-grid {
        flex-direction: column;
        gap: 60px;
        align-items: stretch;
    }

    .app-content {
        max-width: 100%;
        order: 2;
    }

    .app-visual {
        order: 1;
    }

    .app-section {
        padding: 60px 16px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .app-grid {
        gap: 48px;
    }

    .app-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .app-qr-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .app-qr-switch {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
    }

    .app-store-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .store-badge-link {
        flex: 1;
        max-width: 160px;
        justify-content: center;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) and (orientation: landscape) {
    .app-section {
        padding: 40px 12px;
    }
    
    .app-grid {
        gap: 32px;
    }
    
    .app-phone-frame {
        width: 180px !important;
        height: 360px !important;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .app-section {
        padding: 48px 14px;
    }

    .app-grid {
        gap: 40px;
    }

    .app-qr-toggle {
        padding: 8px 12px;
        min-height: 40px;
        font-size: 12px;
    }

    .app-qr-card {
        width: 90px;
        height: 90px;
    }

    .app-phone-frame {
        width: 200px !important;
        height: 400px !important;
    }

    .app-feature-list {
        gap: 6px;
    }

    .app-feature-list li {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .app-section {
        padding: 40px 12px;
    }

    .app-grid {
        gap: 32px;
    }

    .app-qr-card {
        width: 80px;
        height: 80px;
    }

    .app-qr-toggle {
        padding: 6px 10px;
        font-size: 11px;
    }

    .app-store-buttons {
        gap: 12px;
    }

    .store-badge-img {
        height: 32px;
    }

    .app-phone-frame {
        width: 180px !important;
        height: 360px !important;
    }
}

/* Landscape fix */
@media (max-height: 500px) and (orientation: landscape) {
    .app-section {
        padding: 32px 12px;
    }
    
    .app-grid {
        gap: 24px;
    }
    
    .app-phone-frame {
        width: 160px !important;
        height: 320px !important;
    }
}

/* ============================================================
   FOOTER IQERA - WOW MODERNO
============================================================ */

.footer-section {
    width: 100%;
    background: var(--iqera-green);
    color: white;
    padding: 48px 24px 32px;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--theme-gradient1);
    opacity: 0.4;
}

.footer-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-gradient1);
    box-shadow: 0 -4px 16px rgba(0, 109, 132, 0.3);
}

.footer-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 36px;
}

.footer-primary {
    flex: 1 1 100%;
    max-width: 420px;
}

.footer-secondary {
    flex: 1 1 300px;
}

.footer-actions {
    display: flex;
    gap: 28px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 24px;
    position: relative;
}

.footer-logo img {
    width: clamp(160px, 22vw, 200px);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 109, 132, 0.5));
    transition: var(--transition-smooth);
}

.footer-logo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--theme-gradient1);
    border-radius: 1px;
}

.footer-logo:hover img {
    transform: scale(1.05) translateY(-4px);
    filter: drop-shadow(0 12px 32px rgba(0, 109, 132, 0.7));
}

.footer-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0 0 24px 0;
    font-weight: 400;
    backdrop-filter: blur(10px);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    padding: 12px 0;
    position: relative;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.contact-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--iqera-green-soft);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.contact-row:hover::before {
    height: 24px;
}

.contact-row:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
    transform: translateX(4px);
}

.contact-row i {
    color: var(--iqera-green-soft);
    width: 20px;
    flex-shrink: 0;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 109, 132, 0.3));
}

.contact-row a {
    color: inherit;
    text-decoration: none;
}

.contact-row a:hover {
    color: white;
}

.footer-title,
.privacy-section h6,
.social-section h6 {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after,
.privacy-section h6::after,
.social-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--theme-gradient1);
    border-radius: 1px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.info-list div {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-right: 3px solid transparent;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.info-list div:hover {
    border-right-color: var(--iqera-green-soft);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-list span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    padding: 6px 12px;
    background: var(--theme-gradient1);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.cert-list span:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: var(--search-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.privacy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.privacy-link:hover::before {
    left: 100%;
    
}

.privacy-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--iqera-red);
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme-gradient1);
    opacity: 0;
    transition: var(--transition-smooth);
}

.social-icon:hover::before {
    color: var(--iqera-red);
}

.social-icon:hover {
    transform: translateY(-6px) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 40px rgba(0, 109, 132, 0.5);
    
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 32px 0;
    border-radius: 1px;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================================
   RESPONSIVE WOW
============================================================ */

@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        gap: 28px;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .footer-primary {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .privacy-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-section {
        padding: 40px 20px 28px;
    }
    
    .footer-main {
        gap: 24px;
    }
    
    .contact-row {
        font-size: 13px;
        gap: 12px;
        padding: 10px 0;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* ============================================================
   MAP MARKER CUSTOM
============================================================ */

.marker-container {
    position: relative;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10000;
}

.price-marker {
    background: #6B0908;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    pointer-events: auto;
    color: #fff;
}

.price-marker.active {
    background: #6B0908;
    color: #fff;
}

.marker-card {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    overflow: hidden;
    pointer-events: auto;
    z-index: 10000;
}

.marker-card.hidden {
    display: none;
}

.marker-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.marker-card .body {
    padding: 10px;
}

.marker-card .price {
    font-size: 22px;
    font-weight: 700;
    color: #006D84;
}

.cluster-marker {
    background: #1e88e5;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    cursor: pointer;
}

/** Clusters **/

.cluster-marker {
    border-radius: 50%;
    background: #ff9800;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

.unit-item {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.cluster-marker.small  { width: 36px; height: 36px; background: #009ebf; }
.cluster-marker.medium { width: 46px; height: 46px; background: #006D84; }
.cluster-marker.large  { width: 56px; height: 56px; background: #183f5f; }
.cluster-marker.xlarge  { width: 56px; height: 56px; background: #6B0908; }

.floating-card {
    position: fixed;
    z-index: 10000;
    width: 360px;
    max-height: 420px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
    overflow: hidden;
    pointer-events: auto;
}

.floating-card.hidden {
    display: none !important;
}

.floating-inner {
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 420px;
    box-sizing: border-box;
}

/* 👇 Le card devono stare dentro i 360px - 20px di padding = 340px */
.floating-inner .marker-card {
    display: block !important; /* 👈 torna a block invece di flex */
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    width: 100% !important;
    margin-bottom: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    background: white;
    transform: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    left: 0 !important;
}

.floating-inner .marker-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

.floating-inner .marker-card .body {
    padding: 12px !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.floating-inner .marker-card .price {
    margin-bottom: 8px !important;
    display: block !important;
    word-wrap: break-word !important;
    font-size: 22px;
    font-weight: 700;
    color: #006D84;
}

.floating-inner .marker-card .features span {
    display: inline-block !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .floating-card {
        width: calc(100vw - 24px);
        left: 12px !important;
        right: 12px;
    }
}

/* Map Buttons */

#legend button h5 {
	font-weight: bold;
}

#cancel-poly-btn {
	background-color: rgb(206, 0, 0);
	border-color: rgb(206, 0, 0);
}

#cancel-poly-btn:hover {
	background-color: rgba(206, 0, 0, 0.61);
	border-color: rgba(206, 0, 0, 0.61);
}

#confirm-selection-btn, #init-selection-btn, #info-selecting-btn {
	background-color: #006D84;
    border-color: #006D84;
}

#confirm-selection-btn, #init-selection-btn, #info-selecting-btn:hover {
    background-color: rgba(0, 109, 132, 0.8);
    border-color: rgba(0, 109, 132, 0.8);
    color: #fff;
}

/**============================================================
   FINE MAPPA V2
============================================================**/


/* ========================================
   REGISTRATION PAGE - iQera Platform
   ======================================== */

/* === HERO SECTION === */
.registration-page-wrapper .registration-hero-section {
    background: linear-gradient(135deg, #006D84 0%, #009ebf 50%, #006D84 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.registration-page-wrapper .registration-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 40%, rgba(0, 158, 191, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(0, 109, 132, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.registration-page-wrapper .registration-hero-section h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* === REGISTRATION CARD === */
.registration-page-wrapper .registration-main-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 52px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 25px rgba(0, 109, 132, 0.08);
    border: 1px solid rgba(0, 109, 132, 0.08);
    position: relative;
    z-index: 2; /* utile per layering coerente */
    animation: registrationCardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes registrationCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === TYPOGRAPHY === */
.registration-page-wrapper .registration-page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.registration-page-wrapper .registration-page-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* === CHOICE BUTTONS === */
.registration-page-wrapper .registration-choice-button {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.registration-page-wrapper .registration-choice-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 158, 191, 0.05), transparent);
    transition: left 0.5s ease;
}

.registration-page-wrapper .registration-choice-button:hover::after {
    left: 100%;
}

.registration-page-wrapper .registration-choice-button:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #009ebf;
    box-shadow:
        0 8px 20px rgba(0, 109, 132, 0.15),
        0 0 0 3px rgba(0, 158, 191, 0.08);
    transform: translateY(-3px);
}

.registration-page-wrapper .registration-choice-button:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(0, 109, 132, 0.12),
        0 0 0 3px rgba(0, 158, 191, 0.08);
}

.registration-page-wrapper .registration-choice-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #006D84 0%, #009ebf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 109, 132, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.registration-page-wrapper .registration-choice-button:hover .registration-choice-icon-wrapper {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 109, 132, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.registration-page-wrapper .registration-choice-button-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.registration-page-wrapper .registration-choice-button:hover .registration-choice-button-title {
    color: #006D84;
}

.registration-page-wrapper .registration-choice-button-desc {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

/* === DIVIDER === */
.registration-page-wrapper .registration-divider-or {
    position: relative;
    text-align: center;
    margin: 2.25rem 0;
}

.registration-page-wrapper .registration-divider-or span {
    background: #ffffff;
    padding: 0 1.25rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 2;
}

.registration-page-wrapper .registration-divider-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    z-index: 1;
}

/* === BACK LINK === */
.registration-page-wrapper .registration-back-link {
    color: #006D84;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.94rem;
    padding: 6px 10px;
    border-radius: 8px;
    margin-left: -10px;
    position: relative;
    z-index: 1; /* non deve stare sopra ai dropdown */
}

.registration-page-wrapper .registration-back-link:hover {
    color: #009ebf;
    background: rgba(0, 158, 191, 0.06);
    transform: translateX(-3px);
}

.registration-page-wrapper .registration-back-link i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.registration-page-wrapper .registration-back-link:hover i {
    transform: translateX(-2px);
}

/* === WIZARD STEPS === */
.registration-page-wrapper .wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.75rem;
    padding: 0;
    list-style: none;
    position: relative;
}

.registration-page-wrapper .wizard-steps::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.registration-page-wrapper .step-container {
    flex: 1;
    position: relative;
    z-index: 2;
}

.registration-page-wrapper .step-container .step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.registration-page-wrapper .step-container .step-icon span {
    font-weight: 700;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.registration-page-wrapper .step-container.active .step-icon {
    background: linear-gradient(135deg, #006D84, #009ebf);
    border-color: #006D84;
    box-shadow:
        0 4px 12px rgba(0, 109, 132, 0.3),
        0 0 0 4px rgba(0, 158, 191, 0.12);
    transform: scale(1.05);
}

.registration-page-wrapper .step-container.active .step-icon span {
    color: #ffffff;
}

.registration-page-wrapper .step-container h5 {
    font-size: 0.82rem;
    margin-top: 0.8rem;
    text-align: center;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s ease;
}

.registration-page-wrapper .step-container.active h5 {
    color: #006D84;
    font-weight: 700;
}

/* === FORM LABELS === */
.registration-page-wrapper .registration-field-label {
    font-size: 0.94rem;
    font-weight: 600;
    color: #0f172a !important;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 1 !important;
    background: transparent !important;
}

/* === FORM INPUTS === */
.registration-page-wrapper .registration-input-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* ok: mantiene look pulito */
    min-height: 52px;
}

.registration-page-wrapper .registration-input-wrapper .form-control {
    background: transparent;
    border: none;
    padding: 13px 16px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}

.registration-page-wrapper .registration-input-wrapper .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.registration-page-wrapper .registration-input-wrapper .form-control:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.registration-page-wrapper .registration-input-wrapper:focus-within {
    border-color: #009ebf;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0, 158, 191, 0.1),
        0 4px 12px rgba(0, 109, 132, 0.08);
    transform: translateY(-1px);
}

.registration-page-wrapper .registration-input-prefix {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 13px 0 13px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.registration-page-wrapper .registration-input-wrapper:focus-within .registration-input-prefix {
    color: #009ebf;
}

.registration-page-wrapper .registration-input-prefix span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
}

.registration-page-wrapper .registration-input-wrapper:focus-within .registration-input-prefix span {
    color: #006D84;
}

/* Radio buttons inline */
.registration-page-wrapper .registration-radio-group {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
    height: 100%;
}

.registration-page-wrapper .registration-radio-group .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #cbd5e1;
    margin: 0 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.registration-page-wrapper .registration-radio-group .form-check-input:hover {
    border-color: #009ebf;
}

.registration-page-wrapper .registration-radio-group .form-check-input:checked {
    background-color: #006D84;
    border-color: #006D84;
}

.registration-page-wrapper .registration-radio-group .form-check-input:focus {
    border-color: #009ebf;
    box-shadow: 0 0 0 3px rgba(0, 158, 191, 0.15);
    outline: none;
}

.registration-page-wrapper .registration-radio-group .form-check-label {
    cursor: pointer;
    user-select: none;
    color: #475569;
    font-size: 0.94rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* === FORM SELECT === */
.registration-page-wrapper .registration-select-input {
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23006D84' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 44px 13px 16px; /* right più ampio per freccia */
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;

    /* FIX: rimuove freccia nativa */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    min-height: 52px;
    line-height: 1.2;
    background-clip: padding-box;
}

.registration-page-wrapper .registration-select-input::-ms-expand {
    display: none;
}

.registration-page-wrapper .registration-select-input:focus {
    border-color: #009ebf;
    background-color: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0, 158, 191, 0.1),
        0 4px 12px rgba(0, 109, 132, 0.08);
    outline: none;
}

/* Input disabilitati */
.registration-page-wrapper .registration-input-wrapper .form-control:disabled {
    background: transparent;
    color: #94a3b8;
    cursor: not-allowed;
}

.registration-page-wrapper .registration-input-wrapper:has(.form-control:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

/* === CHECKBOX STANDALONE === */
.registration-page-wrapper .registration-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.registration-page-wrapper .registration-checkbox-wrapper .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2px;
    flex-shrink: 0;
}

.registration-page-wrapper .registration-checkbox-wrapper .form-check-input:hover {
    border-color: #009ebf;
}

.registration-page-wrapper .registration-checkbox-wrapper .form-check-input:checked {
    background-color: #006D84;
    border-color: #006D84;
}

.registration-page-wrapper .registration-checkbox-wrapper .form-check-input:focus {
    border-color: #009ebf;
    box-shadow: 0 0 0 3px rgba(0, 158, 191, 0.15);
    outline: none;
}

.registration-page-wrapper .registration-checkbox-wrapper .form-check-label {
    cursor: pointer;
    user-select: none;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* === BREADCRUMB === */
.registration-page-wrapper .registration-breadcrumb {
    background: #f8fafc;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0;
}

.registration-page-wrapper .registration-breadcrumb .breadcrumb-item {
    font-size: 0.88rem;
    color: #64748b;
}

.registration-page-wrapper .registration-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.registration-page-wrapper .registration-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}

/* === BUTTONS === */
.registration-page-wrapper .registration-btn-secondary {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.registration-page-wrapper .registration-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.registration-page-wrapper .registration-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.registration-page-wrapper .registration-btn-secondary:focus {
    box-shadow: 0 0 0 3px rgba(0, 158, 191, 0.15);
    outline: none;
}

.registration-page-wrapper .registration-btn-danger {
    border: 1.5px solid #ef4444;
    background: #ffffff;
    color: #ef4444;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 0.875rem;
}

.registration-page-wrapper .registration-btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-1px);
}

.registration-page-wrapper .registration-btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    outline: none;
}

.registration-page-wrapper .registration-btn-primary {
    background: linear-gradient(135deg, #006D84, #009ebf);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 109, 132, 0.2);
}

.registration-page-wrapper .registration-btn-primary:hover {
    background: linear-gradient(135deg, #005566, #007a99);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 109, 132, 0.3);
}

.registration-page-wrapper .registration-btn-primary:active {
    transform: translateY(0);
}

.registration-page-wrapper .registration-btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(0, 158, 191, 0.15);
    outline: none;
}

/* =========================================================
   AUTOCOMPLETE (Province / Comune) - z-index + scroll + look
   ========================================================= */

/* jquery.autocomplete */
.registration-page-wrapper .autocomplete-suggestions {
    z-index: 99999 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12) !important;
    padding: 6px 0 !important;
    margin-top: 6px !important;

    /* scroll */
    max-height: 260px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.registration-page-wrapper .autocomplete-suggestion {
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    color: #0f172a !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

.registration-page-wrapper .autocomplete-suggestion:hover,
.registration-page-wrapper .autocomplete-selected {
    background: rgba(0, 158, 191, 0.08) !important;
}

/* alcune build */
.registration-page-wrapper .autocomplete-wrapper,
.registration-page-wrapper .autocomplete-container {
    z-index: 99999 !important;
}

/* tagify dropdown */
.registration-page-wrapper .tagify__dropdown,
.registration-page-wrapper .tagify__dropdown__wrapper {
    z-index: 99999 !important;
}

/* scrollbar (Chrome/Edge/Safari) */
.registration-page-wrapper .autocomplete-suggestions::-webkit-scrollbar {
    width: 8px;
}
.registration-page-wrapper .autocomplete-suggestions::-webkit-scrollbar-track {
    background: transparent;
}
.registration-page-wrapper .autocomplete-suggestions::-webkit-scrollbar-thumb {
    background-color: rgba(0, 109, 132, 0.35);
    border-radius: 6px;
}
.registration-page-wrapper .autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 109, 132, 0.55);
}

/* scrollbar Firefox */
.registration-page-wrapper .autocomplete-suggestions {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,109,132,.45) transparent;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .registration-page-wrapper .registration-hero-section {
        padding: 90px 0 60px;
    }

    .registration-page-wrapper .registration-main-card {
        padding: 38px 32px;
        border-radius: 20px;
    }

    .registration-page-wrapper .registration-page-title {
        font-size: 1.6rem;
    }

    .registration-page-wrapper .registration-choice-button {
        padding: 22px 26px;
    }

    .registration-page-wrapper .registration-choice-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .registration-page-wrapper .registration-choice-button-title {
        font-size: 1.1rem;
    }

    .registration-page-wrapper .wizard-steps {
        margin-bottom: 2.25rem;
    }

    .registration-page-wrapper .step-container .step-icon {
        width: 38px;
        height: 38px;
    }

    .registration-page-wrapper .step-container .step-icon span {
        font-size: 0.88rem;
    }

    .registration-page-wrapper .step-container h5 {
        font-size: 0.75rem;
        margin-top: 0.6rem;
    }

    .registration-page-wrapper .registration-radio-group {
        padding: 0 12px;
    }

    .registration-page-wrapper .registration-radio-group .form-check-label {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .registration-page-wrapper .registration-main-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .registration-page-wrapper .registration-page-title {
        font-size: 1.4rem;
    }

    .registration-page-wrapper .registration-choice-button {
        padding: 20px 22px;
    }

    .registration-page-wrapper .registration-choice-icon-wrapper {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .registration-page-wrapper .registration-choice-button-title {
        font-size: 1.05rem;
    }

    .registration-page-wrapper .registration-choice-button-desc {
        font-size: 0.88rem;
    }

    .registration-page-wrapper .step-container h5 {
        font-size: 0.7rem;
    }

    .registration-page-wrapper .registration-back-link {
        font-size: 0.9rem;
    }

    .registration-page-wrapper .registration-radio-group {
        padding: 0 10px;
    }

    .registration-page-wrapper .registration-input-prefix {
        padding-left: 12px;
        font-size: 0.9rem;
    }

    .registration-page-wrapper .registration-radio-group .form-check-label {
        font-size: 0.85rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .registration-page-wrapper .registration-hero-section,
    .registration-page-wrapper .registration-back-link,
    .registration-page-wrapper button {
        display: none;
    }

    .registration-page-wrapper .registration-main-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}









/* ════════════════════════════════════════
   LOGIN INFO BANNER
════════════════════════════════════════ */

#login-modal .modal-content {
  position: relative;
  overflow: visible;
}

.login-info-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 110%;
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 2.25rem;
  overflow: hidden;                       
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0,109,132,0.08);
  animation: bannerFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Barra colorata in cima */
.login-info-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--theme-gradient1);
}

/* ── Header ───────────────────────────── */
.lib-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--theme-gradient1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 109, 132, 0.35);
}

.lib-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--iqera-green) !important; 
  letter-spacing: -0.02em;
}

/* ── Bottone chiudi ───────────────────── */
.login-banner-close {
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.login-banner-close:hover {
  background: var(--iqera-green);
  color: #fff;
  transform: rotate(90deg);
}

/* ── Sottotitolo ──────────────────────── */
.lib-subtitle {
  font-size: 0.9rem;
  color: #6b7280 !important;             
  margin-bottom: 1.25rem;
  padding-left: 0.25rem;
}

/* ── Righe utenti ─────────────────────── */
.lib-rows {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lib-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: var(--transition-smooth);
}
.lib-row:hover {
  border-color: var(--iqera-green);
  background: #f0f9fb;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Icona */
.lib-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.lib-row-icon.internal {
  background: linear-gradient(135deg, rgba(0,109,132,0.15), rgba(0,109,132,0.05));
  color: var(--iqera-green);
  border: 1.5px solid rgba(0,109,132,0.2);
}
.lib-row-icon.external {
  background: linear-gradient(135deg, rgba(0,158,191,0.15), rgba(0,158,191,0.05));
  color: var(--iqera-green-soft);
  border: 1.5px solid rgba(0,158,191,0.2);
}

/* Testo */
.lib-row-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--iqera-green) !important;   
  margin-bottom: 0.25rem;
}
.lib-row-text {
  display: block;
  font-size: 0.925rem;
  color: #1f2937 !important;             
  font-weight: 500;
}

/* Hint email */
.lib-row-hint {
  display: block;
  font-size: 0.8rem;
  color: #92400e !important;              
  margin-top: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(to right, #fffbeb, #fef9ee);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}
.lib-row-hint i {
  color: #f59e0b;
}

/* ── Animazione bounce ────────────────── */
@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}