/* =========================================================
   Climatizzazione Milano — Shared Stylesheet
   Font: Plus Jakarta Sans | Framework: Custom CSS
   ========================================================= */

/* ----- Google Font Import ----- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ----- CSS Variables ----- */
:root {
  --blue:        #1A5FAB;
  --blue-dark:   #0f3d73;
  --blue-faint:  #f0f7ff;
  --blue-light:  #dceeff;
  --orange:      #F97316;
  --orange-dark: #ea6200;
  --green-wa:    #25D366;
  --green-wa-dark: #1ebe5a;
  --gray-800:    #1e293b;
  --gray-600:    #475569;
  --gray-400:    #94a3b8;
  --gray-200:    #e2e8f0;
  --gray-100:    #f8fafc;
  --white:       #ffffff;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);

  --container:   1180px;
  --transition:  .22s ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Section Spacing ----- */
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 100px 0; }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue-dark { background: var(--blue-dark); color: var(--white); }
.section--faint { background: var(--blue-faint); }
.section--gray { background: var(--gray-100); }

/* ----- Section Title ----- */
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gray-800);
  margin-bottom: 16px;
}
.section-title--white { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}
.section-subtitle--white { color: rgba(255,255,255,.82); }
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn--orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.btn--blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}
.btn--outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn--green {
  background: var(--green-wa);
  color: var(--white);
  border-color: var(--green-wa);
}
.btn--green:hover {
  background: var(--green-wa-dark);
  border-color: var(--green-wa-dark);
  transform: translateY(-1px);
}
.btn--sm { padding: 9px 18px; font-size: .83rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 16px;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.02em;
}
.logo-text span {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: .01em;
}
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.site-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  background: var(--blue-faint);
}
.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.header-phone svg { color: var(--blue); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,.6); }
.footer-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin: 14px 0 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}
.footer-contact-item strong { display: block; color: var(--white); font-size: .82rem; }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom-links {
  display: flex;
  gap: 18px;
}
.footer-bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ----- WhatsApp Sticky Button ----- */
.wa-sticky {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: wa-pulse 2.4s infinite;
  transition: transform .2s;
}
.wa-sticky:hover { transform: scale(1.08); animation: none; }
.wa-sticky svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  60%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ----- Hero Compact (inner pages) ----- */
.hero-compact {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 64px 0 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-compact .container { position: relative; z-index: 1; }
.hero-compact h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-compact .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.hero-compact .breadcrumb a { color: rgba(255,255,255,.65); transition: var(--transition); }
.hero-compact .breadcrumb a:hover { color: var(--white); }
.hero-compact .breadcrumb span { color: rgba(255,255,255,.4); }
.hero-compact p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 640px;
  line-height: 1.7;
}

/* ----- Cards ----- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-body { padding: 28px; }

/* ----- Grid utilities ----- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ----- Form ----- */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,171,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ----- Checklist ----- */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: .93rem;
  color: var(--gray-600);
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--blue-faint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%231A5FAB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

/* ----- Badge/Pill ----- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge--blue { background: var(--blue-light); color: var(--blue); }
.badge--orange { background: #fff3e8; color: var(--orange); }
.badge--gray { background: var(--gray-200); color: var(--gray-600); }

/* ----- FAQ Accordion ----- */
.faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .97rem;
  font-weight: 700;
  color: var(--gray-800);
  background: var(--white);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { background: var(--blue-faint); color: var(--blue); }
.faq-question.open { background: var(--blue-faint); color: var(--blue); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gray-600);
}
.faq-question.open .faq-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.faq-answer.open { display: block; }

/* ----- Steps ----- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--blue-light);
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
  padding-top: 14px;
}
.step-content p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ----- Placeholder Image Block ----- */
.img-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-faint));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 700;
  font-size: .9rem;
}

/* ----- Star Rating ----- */
.stars { display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: #f59e0b; }

/* ----- Divider ----- */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 32px 0;
}

/* ----- Privacy checkbox ----- */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--gray-600);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--blue);
}
.form-check a { color: var(--blue); text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .header-phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section--lg { padding: 64px 0; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .site-nav.open a { width: 100%; padding: 10px 14px; }
  .menu-toggle { display: flex; }
  .header-cta .btn { display: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }

  .hero-compact h1 { font-size: 1.75rem; }
  .hero-compact { padding: 48px 0 40px; }

  .wa-sticky { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.5rem; }
  .btn--lg { padding: 13px 22px; font-size: .92rem; }
}
