
 :root {
      --bg: #f7f4ef;
      --card: #ffffff;
      --text: #1f2933;
      --muted: #667085;
      --primary: #1f5f5b;
      --primary-dark: #174845;
      --line: #e7dfd4;
      --shadow: 0 18px 50px rgba(31, 41, 51, 0.10);
      --radius: 24px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(247, 244, 239, 0.88);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(231, 223, 212, 0.85);
    }

    .nav {
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      font-weight: 800;
      letter-spacing: -0.04em;
      font-size: 1.18rem;
    }

    .logo span {
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      font-size: 0.95rem;
      color: var(--muted);
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 0;
      border-radius: 999px;
      padding: 13px 20px;
      background: var(--primary);
      color: white;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 12px 26px rgba(31, 95, 91, 0.22);
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .button:hover {
      transform: translateY(-2px);
      background: var(--primary-dark);
    }

    .button.secondary {
      background: white;
      color: var(--primary);
      border: 1px solid var(--line);
      box-shadow: none;
    }

    .hero {
      padding: 68px 0 44px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 42px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
      background: rgba(31, 95, 91, 0.10);
      border: 1px solid rgba(31, 95, 91, 0.18);
      padding: 8px 13px;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    h1 {
      font-size: clamp(2.45rem, 6vw, 5rem);
      line-height: 0.96;
      letter-spacing: -0.07em;
      margin-bottom: 22px;
    }

    .hero p {
      color: var(--muted);
      font-size: 1.12rem;
      max-width: 620px;
      margin-bottom: 28px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 28px;
    }

    .mini-info {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      max-width: 650px;
    }

    .mini-card {
      background: rgba(255, 255, 255, 0.62);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 15px;
    }

    .mini-card strong {
      display: block;
      font-size: 1.15rem;
      margin-bottom: 2px;
    }

    .mini-card span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .hero-photo {
      min-height: 540px;
      border-radius: 36px;
      overflow: hidden;
      box-shadow: var(--shadow);
      position: relative;
      background:
        linear-gradient(135deg, rgba(31, 95, 91, 0.82), rgba(240, 199, 127, 0.35)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1300&q=80") center/cover;
    }

    .hero-photo::after {
      content: "Foto provvisoria: qui metteremo una tua immagine reale";
      position: absolute;
      left: 22px;
      bottom: 22px;
      right: 22px;
      background: rgba(255, 255, 255, 0.86);
      color: var(--text);
      padding: 14px 16px;
      border-radius: 18px;
      font-size: 0.92rem;
      font-weight: 700;
    }

    section {
      padding: 56px 0;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 26px;
    }

    .section-head h2 {
      font-size: clamp(2rem, 4vw, 3.2rem);
      line-height: 1;
      letter-spacing: -0.055em;
    }

    .section-head p {
      max-width: 460px;
      color: var(--muted);
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }

    .apartment-card,
    .info-card,
    .contact-box {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
      overflow: hidden;
    }

    .apartment-image {
      min-height: 260px;
      background:
        linear-gradient(135deg, rgba(31, 95, 91, 0.74), rgba(255, 255, 255, 0.12)),
        url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1000&q=80") center/cover;
      display: flex;
      align-items: end;
      padding: 18px;
      color: white;
    }

    .apartment-card:nth-child(2) .apartment-image {
      background:
        linear-gradient(135deg, rgba(31, 95, 91, 0.74), rgba(255, 255, 255, 0.12)),
        url("https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1000&q=80") center/cover;
    }

    .badge {
      background: rgba(255, 255, 255, 0.88);
      color: var(--primary-dark);
      border-radius: 999px;
      padding: 8px 12px;
      font-weight: 800;
      font-size: 0.9rem;
    }

    .apartment-content,
    .info-card,
    .contact-box {
      padding: 24px;
    }

    .apartment-content h3,
    .info-card h3,
    .contact-box h3 {
      font-size: 1.45rem;
      letter-spacing: -0.035em;
      margin-bottom: 10px;
    }

    .apartment-content p,
    .info-card p,
    .contact-box p {
      color: var(--muted);
      margin-bottom: 18px;
    }

    .features {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
    }

    .feature {
      border: 1px solid var(--line);
      background: #fbfaf7;
      color: #3d4b57;
      padding: 8px 11px;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 700;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .gallery {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr 0.8fr;
      gap: 16px;
    }

    .gallery-item {
      min-height: 230px;
      border-radius: 24px;
      background: linear-gradient(135deg, #1f5f5b, #d9b36f);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: white;
      padding: 24px;
      font-weight: 800;
    }

    .gallery-item:first-child {
      min-height: 476px;
      grid-row: span 2;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      gap: 22px;
      align-items: stretch;
    }

    form {
      display: grid;
      gap: 12px;
    }

    input,
    textarea,
    select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px 15px;
      font: inherit;
      background: #fbfaf7;
      color: var(--text);
      outline: none;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: rgba(31, 95, 91, 0.55);
      box-shadow: 0 0 0 4px rgba(31, 95, 91, 0.08);
    }

    footer {
      border-top: 1px solid var(--line);
      padding: 30px 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .mobile-menu-button {
      display: none;
      background: white;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 12px;
      font-weight: 800;
    }
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }

    .calendar-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
      padding: 24px;
      overflow: hidden;
    }

    .calendar-card h3 {
      font-size: 1.45rem;
      letter-spacing: -0.035em;
      margin-bottom: 8px;
    }

    .calendar-card p {
      color: var(--muted);
      margin-bottom: 18px;
    }

    .calendar-frame {
      width: 100%;
      height: 520px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: #ffffff;
    }

    .calendar-frame iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }   
    @media (max-width: 860px) {
      .mobile-menu-button {
        display: inline-flex;
      }

      .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 84px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        display: none;
      }

      .nav-links.open {
        display: flex;
      }

      .hero-grid,
      .cards,
      .info-grid,
      .contact-grid {
        grid-template-columns: 1fr;
      }
      .calendar-grid {
        grid-template-columns: 1fr;
      }
      .hero {
        padding-top: 42px;
      }

      .hero-photo {
        min-height: 380px;
      }

      .mini-info {
        grid-template-columns: 1fr;
      }

      .section-head {
        display: block;
      }

      .section-head h2 {
        margin-bottom: 12px;
      }

      .gallery {
        grid-template-columns: 1fr;
      }

      .gallery-item:first-child {
        min-height: 240px;
        grid-row: auto;
      }
      .calendar-frame {
        height: 430px;
      }      
    }