﻿/* ====== Scoped CasaRev Hero (crh-*) ====== */
.crh-cover{
    /* Variabili locali allo scope */
    --crh-container-max: 1100px;
    --crh-radius: 22px;
    --crh-accent: #f59e0b;
    --crh-card-bg: rgba(255,255,255,.8);
    --crh-shadow: 0 20px 60px rgba(0,0,0,.35);
  
    position: relative;
    background: center/cover no-repeat var(--cover-url);
    height: 700px;
    display: grid;
    place-items: center;
    padding: 72px 16px; /* spazio per header fisso */
    color: #fff;
  }
  
  /* Card centrale bianco opaco */
  .crh-card{
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: min(var(--crh-container-max), calc(100% - 32px));
    max-width: 950px;
    background: var(--crh-card-bg);
    color: #111;
    border-radius: var(--crh-radius);
    padding: 40px 48px;
    box-shadow: var(--crh-shadow);
    backdrop-filter: blur(4px);
  }
  
  /* Badge giallo */
  .crh-badge{
    display: inline-block;
    background: var(--crh-accent);
    color: #fff;
    font: 700 24px/1 "Montserrat", sans-serif;
    padding: 8px 24px;
    border-radius: 999px;
    margin-bottom: 18px;
    letter-spacing: .02em;
  }
  
  /* Titolo */
  .crh-title{
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.1;
    margin: 0 0 14px 0;
    color: #000;
  }
  .crh-title span{ color: var(--crh-accent); }
  
  /* Testo */
  .crh-text{
    font-size: clamp(16px, 1.7vw, 20px);
    color: #666;
    margin: 10px 0 26px;
    font-weight: 500;
  }
  .crh-text span{ font-weight: 700; }
  .crh-text span small{
    font: inherit;
    text-decoration: underline;
  }
  
  /* CTA & Bottoni */
  .crh-cta{ display:flex; gap:16px; flex-wrap:wrap; }
  
  .crh-btn{
    display:inline-flex; align-items:center; justify-content:center;
    height:52px; padding:0 22px;
    border-radius:999px;
    font-weight:700; letter-spacing:.01em;
    text-transform:uppercase;
    text-decoration:none;
    transition:.12s ease;
    box-shadow: 0 4px 7px rgba(0,0,0,.25);
  }
  
  .crh-btn-primary{
    background: var(--crh-accent);
    color:#111;
    border: 1px solid #000;
  }
  .crh-btn-primary:hover{
    color:#fff;
    background:#d97706;
    transform: translateY(-1px);
    box-shadow: 0 7px 10px rgba(0,0,0,.45);
  }
  
  .crh-btn-ghost{
    background:#fff;
    color:#111;
    border:1px solid #000;
  }
  .crh-btn-ghost:hover{
    color: var(--crh-accent);
    border-color:var(--crh-accent);
    transform: translateY(-1px);
    box-shadow: 0 7px 10px rgba(0,0,0,.45);
  }
  
  /* Responsive */
  @media (max-width: 640px){
    .crh-card{ padding:28px 22px; bottom:40px; }
  }
  
  @media (max-width: 600px){
    .crh-cover{ height: 560px; }
  }
  

  