@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --copper: #c87533;
  --copper-soft: #e09a5a;
  --bg-dark: #050608;
  --bg-dark-alt: #070910;
  --bg-elevated: #101218;
  --bg-chip: #181b24;
  --text-main: #f5f5f5;
  --text-muted: #b3b3b3;
  --accent: #ffb347;
  --accent-soft: rgba(255, 179, 71, 0.18);
  --danger: #ff4b4b;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.85);
  --transition-fast: 0.25s ease;
  --transition-med: 0.4s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1a120b 0, #050608 45%, #020308 100%);
  color: var(--text-main);
}

/* GLOBAL LAYOUT */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 1.5rem 2.8rem;
}

.hero-left {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid rgba(200, 117, 51, 0.6);
  box-shadow: 0 0 22px rgba(200, 117, 51, 0.5);
  margin-bottom: 1rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3cff9b;
  box-shadow: 0 0 12px rgba(60, 255, 155, 0.9);
}

.hero-badge span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-soft);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero-title span {
  background: linear-gradient(120deg, #ffb347, #ffdd99, #c87533);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-primary {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, #ffb347, #c87533);
  color: #1a0f08;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 0 26px rgba(200, 117, 51, 0.8);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 0 32px rgba(200, 117, 51, 1);
}

.btn-ghost {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 117, 51, 0.5);
  background: rgba(5, 6, 8, 0.9);
  color: var(--text-main);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(200, 117, 51, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(200, 117, 51, 0.6);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-metric {
  min-width: 120px;
}

.hero-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-metric-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

/* HERO RIGHT */
.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(200, 117, 51, 0.35), rgba(5, 6, 8, 0.98));
  border: 1px solid rgba(200, 117, 51, 0.6);
  box-shadow: var(--shadow-soft);
  max-width: 420px;
  width: 100%;
}

.hero-card img {
  width: 100%;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.4), transparent);
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-card-chip {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(24, 27, 36, 0.9);
  border: 1px solid rgba(200, 117, 51, 0.6);
}

/* SECTION GENERICA */
.section {
  padding: 1.8rem 1.5rem 2.4rem;
}

.section-contact {
  padding-top: 1.2rem !important;
}

/* FIX DEFINITIVO ALLINEAMENTO CONTATTI */
.section-contact .grid-3 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.section-contact.container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.section-contact .card:last-child {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 900px) {
  .section-contact .grid-3 {
    grid-template-columns: 1fr !important;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper-soft);
}

.section-title {
  font-size: 1.6rem;
  margin: 0.25rem 0;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 28rem;
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

/* CARD */
.card {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 18, 0.98);
  border: 1px solid rgba(200, 117, 51, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  transition: var(--transition-med);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 71, 0.7);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(255, 179, 71, 0.7), rgba(200, 117, 51, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #1a0f08;
  font-size: 1.1rem;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* MAPPA */
.map-section {
  padding: 1.8rem 1.5rem 2.5rem;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(200, 117, 51, 0.5);
  box-shadow: var(--shadow-soft);
}

.map-iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(200, 117, 51, 0.35);
  background: #050608;
  padding: 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(200, 117, 51, 0.7);
  background: rgba(5, 6, 8, 0.98);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .hero-right {
    order: -1;
  }

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

@media (max-width: 600px) {
  .container,
  .section,
  .map-section {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }
}

/* FIX PULSANTE WHATSAPP SU TUTTE LE PAGINE */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: #25d366;
  color: #050608;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 1rem;
  transition: 0.25s ease;
  width: fit-content;
}

.whatsapp-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* VERSIONE MOBILE */
@media (max-width: 768px) {
  .whatsapp-btn {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 16px 22px;
    font-size: 1rem;
  }
}
