/* Gestionale Aste Immobiliari - tema vinaccia (restyling 2026) */
:root{
  --gaste-vinaccia:#8d6078;
  --gaste-vinaccia-dark:#764e64;
  --gaste-blue:#18344e;
  --gaste-blue-dark:#10263d;
  --gaste-green:#78b843;
  --gaste-gold:#c99018;
  --gaste-soft:#f7f8fb;
  --gaste-text:#2b4157;
  --gaste-muted:#5d6976;
  --gaste-border:rgba(24,52,78,.12);
  --gaste-font-heading:'Raleway',sans-serif;
  --gaste-font-body:'Open Sans',sans-serif;
}

/* Header statico (non più fixed-top): sfondo sempre presente */
#header{position:relative;background:#fff;box-shadow:0 1px 0 rgba(24,52,78,.06);z-index:1000;}

/* CTA principali: vinaccia al posto dell'arancio/blu di template */
.start-btn-one:before{background:var(--gaste-vinaccia);}
.start-btn-one:hover{border-color:var(--gaste-vinaccia);}
.start-btn-two{border-color:var(--gaste-blue);}
.start-btn-two:hover{border-color:var(--gaste-vinaccia);background:var(--gaste-vinaccia);}

/* Badge "kicker" sopra i titoli di sezione */
.gaste-kicker{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--gaste-font-body);
  font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--gaste-vinaccia);
  background:rgba(141,96,120,.1);
  border:1px solid rgba(141,96,120,.25);
  border-radius:999px;padding:.35rem 1rem;margin-bottom:1rem;
}
.gaste-kicker i{color:var(--gaste-vinaccia);}

.gaste-title{font-family:var(--gaste-font-heading);color:var(--gaste-blue);}

/* ===== Hero a tutto schermo con immagine di sfondo (stile gestionalere.it) ===== */
.gaste-hero{
  position:relative;overflow:hidden;isolation:isolate;z-index:2;
  min-height:calc(100vh - 150px);display:block;flex-direction:column;justify-content:space-between;
  background:linear-gradient(135deg,var(--gaste-blue) 0%,var(--gaste-blue-dark) 100%);
  padding:40px 0 40px;color:#fff;
}
.gaste-hero-bg{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:url("/images/home/gaste-hero-bg.webp") center right/cover no-repeat;
}
.gaste-hero-bg::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(7,18,32,.42) 0,rgba(13,32,52,.22) 38%,rgba(13,32,52,.2) 72%,rgba(13,32,52,.12) 100%),
    linear-gradient(180deg,rgba(8,20,36,.15) 0,rgba(8,20,36,.62) 100%);
}
.gaste-hero-bg::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 14% 20%,rgba(141,96,120,.32),transparent 34%),
    radial-gradient(circle at 78% 26%,rgba(52,126,176,.16),transparent 34%);
}
.gaste-hero-container{position:relative;z-index:3;}
.gaste-hero-content{}
.gaste-hero-kicker{
  display:inline-flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;
  border-radius:999px;padding:.45rem 1rem;font-size:.75rem;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase;margin-bottom:1.2rem;
}
.gaste-hero-kicker i{color:var(--gaste-green);}
.gaste-hero h1{color:#fff;font-family:var(--gaste-font-heading);font-size:clamp(36px,4.2vw,60px);line-height:1.06;font-weight:800;letter-spacing:-.03em;margin-bottom:18px;}
.gaste-hero h1 span{color:#fff;position:relative;}
.gaste-hero-subtitle{color:rgba(255,255,255,.94);font-size:clamp(18px,1.5vw,22px);line-height:1.55;font-weight:700;margin-bottom:16px;}
.gaste-hero-text{color:rgba(255,255,255,.78);font-size:15px;line-height:1.7;margin-bottom:22px;max-width:520px;}
.gaste-hero-points{list-style:none;padding:0;margin:0 0 26px;display:flex;flex-wrap:wrap;gap:9px 18px;}
.gaste-hero-points li{display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.88);font-size:13px;font-weight:700;}
.gaste-hero-points i{color:var(--gaste-green);}
.gaste-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px;}
.gaste-hero-contact-note{color:rgba(255,255,255,.7);font-size:14px;margin:0;}
.gaste-hero-contact-note a{color:#fff;font-weight:800;text-decoration:underline;text-underline-offset:3px;}

/* Mockup ancorato in basso a destra, fuori dal flusso a colonne */
.gaste-hero-visual {
    position: absolute;
    right: 0;
    bottom: -12%;
    z-index: 2;
    width: 71%;
    max-width: 71%;
    pointer-events: none;
    -webkit-transform: rotate(24deg);
    -ms-transform: rotate(24deg);
    transform: rotate(24deg);
    margin-right: -25%;
}
.gaste-hero-visual img{width:100%;height:auto;display:block;filter: drop-shadow(0 34px 70px rgba(0, 0, 0, .34));border-radius: 22px;
    border: 6px solid rgba(255, 255, 255, 0.90);}

.gaste-hero-stats{position:relative;z-index:3;margin-top:70px;}
.gaste-trust-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  background:#fff;border:1px solid var(--gaste-border);
  border-top:4px solid var(--gaste-vinaccia);
  border-radius:22px;box-shadow:0 24px 60px rgba(0,0,0,.28);overflow:hidden;
}
.gaste-trust-item{display:flex;align-items:center;justify-content:center;gap:16px;padding:28px 22px;position:relative;text-align:left;}
.gaste-trust-item:not(:last-child)::after{content:"";position:absolute;right:0;top:20px;bottom:20px;width:1px;background:var(--gaste-border);}
.gaste-trust-icon{width:56px;height:56px;border-radius:16px;flex:0 0 56px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;}
.gaste-trust-icon.mauve{background:rgba(141,96,120,.12);color:var(--gaste-vinaccia);}
.gaste-trust-icon.blue{background:rgba(24,52,78,.1);color:var(--gaste-blue);}
.gaste-trust-icon.gold{background:rgba(222,169,53,.14);color:var(--gaste-gold);}
.gaste-trust-number{display:block;color:var(--gaste-blue);font-size:clamp(26px,2.4vw,34px);font-weight:900;line-height:1;letter-spacing:-.02em;white-space:nowrap;}
.gaste-trust-number span{font-size:inherit;font-weight:inherit;color:inherit;}
.gaste-trust-label{display:block;color:var(--gaste-muted);font-size:13px;font-weight:700;margin-top:5px;}
.gaste-trust-note{color:rgba(255,255,255,.65);font-size:.8rem;text-align:center;margin:14px 0 0;}

/* Sotto i 992px il testo torna a larghezza piena (fine col-lg-7): l'immagine
   esce dal posizionamento absolute/ruotato ed entra in flusso, sotto al testo,
   per evitare sovrapposizioni su tablet e mobile. */
@media (max-width:991px){
  .gaste-hero{display:flex;flex-direction:column;min-height:auto;padding:40px 0 40px;text-align:center;}
  .gaste-hero-container{order:1;}
  .gaste-hero-stats{order:3;margin-top:40px;}
  .gaste-hero-content{max-width:100%;}
  .gaste-hero-text{max-width:100%;margin-left:auto;margin-right:auto;}
  .gaste-hero-points,.gaste-hero-actions{justify-content:center;}
  .gaste-hero-visual{
    position:static;order:2;
    right:auto;bottom:auto;margin:32px auto 0;
    width:75%;max-width:440px;
    transform:none;
    -webkit-transform:none;-ms-transform:none;
    opacity:1;
  }
}
@media (max-width:767px){
  .gaste-hero{padding:40px 0 32px;}
  .gaste-hero-visual{width:86%;max-width:340px;margin-top:26px;}
  .gaste-trust-grid{grid-template-columns:1fr;}
  .gaste-trust-item{justify-content:flex-start;}
  .gaste-trust-item:not(:last-child)::after{display:none;}
  .gaste-trust-item:not(:last-child){border-bottom:1px solid var(--gaste-border);}
}

/* ===== Link pillola (testo + mockup) ===== */
.gaste-link-primary,.gaste-link-secondary{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;
  padding:12px 22px;border-radius:999px;text-decoration:none;font-size:14px;font-weight:800;
  transition:all .2s ease;
}
.gaste-link-primary{background:var(--gaste-vinaccia);color:#fff;box-shadow:0 14px 30px rgba(141,96,120,.22);}
.gaste-link-primary:hover{background:var(--gaste-vinaccia-dark);color:#fff;}
.gaste-link-secondary{background:#fff;color:var(--gaste-blue);border:1px solid var(--gaste-border);}
.gaste-link-secondary:hover{background:#f2f5f8;color:var(--gaste-blue);}

/* ===== Pannello "finto browser" per i mockup ===== */
.gaste-panel{position:relative;background:#fff;border:1px solid var(--gaste-border);border-radius:24px;box-shadow:0 28px 65px rgba(24,52,78,.13);overflow:hidden;}
.gaste-panel-top{display:flex;align-items:center;gap:8px;padding:16px 20px;border-bottom:1px solid rgba(24,52,78,.09);background:rgba(255,255,255,.85);}
.gaste-panel-top span{width:10px;height:10px;border-radius:999px;background:rgba(24,52,78,.18);}
.gaste-panel-top span:nth-child(1){background:var(--gaste-vinaccia);}
.gaste-panel-top span:nth-child(2){background:var(--gaste-green);}
.gaste-panel-top span:nth-child(3){background:var(--gaste-blue);}
.gaste-panel-top strong{margin-left:auto;color:var(--gaste-blue);font-size:13px;font-weight:800;}
.gaste-panel-body{padding:22px;}

.gaste-feature-row{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid rgba(24,52,78,.09);border-radius:16px;padding:15px;box-shadow:0 8px 22px rgba(24,52,78,.05);margin-bottom:12px;}
.gaste-feature-row:last-child{margin-bottom:0;}
.gaste-feature-row .icon{width:44px;height:44px;border-radius:14px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;}
.gaste-feature-row strong{display:block;color:var(--gaste-blue);font-size:15px;margin-bottom:3px;}
.gaste-feature-row span{display:block;color:var(--gaste-muted);font-size:13px;line-height:1.5;}

/* Scheda asta (mockup con screenshot reale) */
.gaste-auction-card{display:grid;grid-template-columns:140px 1fr auto;gap:16px;align-items:center;background:var(--gaste-soft);border:1px solid var(--gaste-border);border-radius:18px;padding:14px;}
.gaste-auction-card img{width:100%;height:96px;object-fit:cover;border-radius:14px;}
.gaste-auction-card .info span{display:block;color:var(--gaste-vinaccia);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px;}
.gaste-auction-card .info h4{color:var(--gaste-blue);font-size:17px;font-weight:800;margin:0 0 4px;}
.gaste-auction-card .info p{color:var(--gaste-muted);font-size:13px;margin:0;}
.gaste-auction-card .status{text-align:center;background:rgba(120,184,67,.13);color:#4f8f28;border-radius:14px;padding:10px 12px;min-width:100px;}
.gaste-auction-card .status strong{display:block;font-size:14px;font-weight:800;}
.gaste-auction-card .status span{display:block;font-size:10px;font-weight:700;}

.gaste-doc-badges{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px;}
.gaste-doc-badge{background:#fff;border:1px solid var(--gaste-border);border-radius:14px;padding:12px;text-align:center;box-shadow:0 8px 20px rgba(24,52,78,.05);}
.gaste-doc-badge strong{display:block;color:var(--gaste-blue);font-size:13px;font-weight:800;}
.gaste-doc-badge span{display:block;color:#6c7683;font-size:11px;font-weight:700;margin-top:3px;}

/* Incroci richieste/aste: pannello "match" illustrativo */
.gaste-match-area{display:grid;grid-template-columns:1fr 48px 1fr;gap:14px;align-items:stretch;margin-top:16px;}
.gaste-match-box{background:#fff;border:1px solid var(--gaste-border);border-radius:18px;padding:16px;}
.gaste-match-box.request{background:linear-gradient(135deg,#fff,var(--gaste-soft));}
.gaste-match-box.results{background:linear-gradient(135deg,rgba(141,96,120,.08),rgba(255,255,255,.96));border-color:rgba(141,96,120,.2);}
.gaste-match-box-label{display:inline-block;background:rgba(24,52,78,.08);color:var(--gaste-blue);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;border-radius:999px;padding:5px 10px;margin-bottom:12px;}
.gaste-match-box.results .gaste-match-box-label{background:rgba(141,96,120,.14);color:var(--gaste-vinaccia);}
.gaste-match-box ul{list-style:none;padding:0;margin:0;}
.gaste-match-box li{display:flex;justify-content:space-between;gap:10px;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid rgba(24,52,78,.08);font-size:13px;}
.gaste-match-box li:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0;}
.gaste-match-box li strong{color:var(--gaste-blue);font-weight:800;}
.gaste-match-box li span{color:var(--gaste-muted);font-weight:600;text-align:right;}
.gaste-match-line{display:flex;align-items:center;justify-content:center;}
.gaste-match-line span{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--gaste-vinaccia);color:#fff;box-shadow:0 14px 30px rgba(141,96,120,.24);}
.gaste-match-item{position:relative;padding:12px 12px 12px 14px;background:rgba(255,255,255,.8);border:1px solid rgba(24,52,78,.08);border-radius:14px;margin-bottom:8px;}
.gaste-match-item:last-child{margin-bottom:0;}
.gaste-match-item.active{border-color:rgba(120,184,67,.3);background:rgba(120,184,67,.09);}
.gaste-match-item strong{display:block;color:var(--gaste-blue);font-size:13px;margin-bottom:3px;}
.gaste-match-item span{display:block;color:var(--gaste-muted);font-size:11px;margin-bottom:5px;}
.gaste-match-item em{color:var(--gaste-vinaccia);font-size:10px;font-weight:800;font-style:normal;}
.gaste-match-item.active em{color:#4f8f28;}

.gaste-floating-note{position:relative;margin-top:16px;background:#fff;border:1px solid var(--gaste-border);border-radius:16px;padding:14px 18px;box-shadow:0 16px 34px rgba(24,52,78,.12);}
.gaste-floating-note small{display:block;color:var(--gaste-vinaccia);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px;}
.gaste-floating-note strong{display:block;color:var(--gaste-blue);font-size:13px;font-weight:700;line-height:1.4;}

@media (max-width:767px){
  .gaste-match-area{grid-template-columns:1fr;}
  .gaste-match-line{min-height:36px;transform:rotate(90deg);}
  .gaste-auction-card{grid-template-columns:1fr;}
  .gaste-auction-card .status{text-align:left;}
}

/* Riepilogo evidenziato (per lettura rapida umana e AI) */
.gaste-summary{
  background:var(--gaste-soft);
  border-left:4px solid var(--gaste-vinaccia);
  border-radius:8px;padding:1.25rem 1.5rem;margin:1.5rem 0;
  color:var(--gaste-text);
}
.gaste-summary strong{color:var(--gaste-blue);}

/* Service card (funzionalità) */
.gaste-service-card{
  background:#fff;border:1px solid var(--gaste-border);border-radius:14px;
  padding:1.75rem 1.5rem;height:100%;transition:box-shadow .25s ease,transform .25s ease;
}
.gaste-service-card:hover{box-shadow:0 20px 40px -22px rgba(24,52,78,.35);transform:translateY(-3px);}
.gaste-service-card .icon{
  width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:rgba(141,96,120,.12);color:var(--gaste-vinaccia);font-size:1.25rem;margin-bottom:1rem;
}
.gaste-service-card.is-blue .icon{background:rgba(24,52,78,.1);color:var(--gaste-blue);}
.gaste-service-card.is-green .icon{background:rgba(120,184,67,.14);color:var(--gaste-green);}
.gaste-service-card.is-gold .icon{background:rgba(201,144,24,.14);color:var(--gaste-gold);}
.gaste-service-card h4{font-family:var(--gaste-font-heading);color:var(--gaste-blue);}

/* Come funziona: step numerati */
.gaste-step{position:relative;padding-left:3.75rem;margin-bottom:2rem;}
.gaste-step .gaste-step-num{
  position:absolute;left:0;top:0;width:2.75rem;height:2.75rem;border-radius:50%;
  background:var(--gaste-vinaccia);color:#fff;font-weight:700;font-family:var(--gaste-font-heading);
  display:flex;align-items:center;justify-content:center;font-size:1.05rem;
}
.gaste-step h4{font-family:var(--gaste-font-heading);color:var(--gaste-blue);margin-bottom:.35rem;}
.gaste-step p{color:var(--gaste-muted);margin-bottom:0;}

/* FAQ accordion */
.gaste-faq .accordion-item{border:1px solid var(--gaste-border);border-radius:10px !important;margin-bottom:.75rem;overflow:hidden;}
.gaste-faq .accordion-button{font-family:var(--gaste-font-heading);font-weight:600;color:var(--gaste-blue);}
.gaste-faq .accordion-button:not(.collapsed){background:rgba(141,96,120,.08);color:var(--gaste-vinaccia);box-shadow:none;}
.gaste-faq .accordion-button:focus{box-shadow:0 0 0 .2rem rgba(141,96,120,.15);}
.gaste-faq .accordion-body{color:var(--gaste-text);}
