/* ============================================
   GM SERVICE - gmservicemo.it
   Stylesheet principale
   ============================================ */

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  color: #1e2a4a;
  background: #f8f9fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* VARIABILI */
:root {
  --blue-dark: #1e2a4a;
  --blue-medium: #3b4a7a;
  --blue-light: #5b7bb8;
  --bg-light: #f8f9fc;
  --text-gray: #4a5568;
  --text-light: #6b7280;
  --yellow: #ffd54a;
  --white: #ffffff;
  --border-light: #e2e8f0;
  --gradient-blue: linear-gradient(135deg, #1e2a4a 0%, #2a3a5e 50%, #3b4a7a 100%);
  --shadow-sm: 0 2px 8px rgba(30, 42, 74, 0.08);
  --shadow-md: 0 8px 25px rgba(30, 42, 74, 0.12);
  --shadow-lg: 0 15px 40px rgba(30, 42, 74, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 42, 74, 0.08);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 42, 74, 0.08);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(248, 249, 252, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 90px 32px 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -8px 0 30px rgba(30, 42, 74, 0.1);
  transition: right 0.35s ease;
}

.nav-menu.active {
  right: 0;
}

.nav-link {
  display: block;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-dark);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(30, 42, 74, 0.08);
  transform: translateX(4px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: url('../img/hero-bg.jpg') center/cover no-repeat, var(--gradient-blue);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 42, 74, 0.75) 0%, rgba(30, 42, 74, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 0.95;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  color: var(--white);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-down svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   BOTTONI
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 42, 74, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 42, 74, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   COSA FACCIAMO
   ============================================ */
.cosa-facciamo {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.overtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.5;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.service-card-body p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-light);
  font-weight: 600;
  transition: all 0.2s ease;
}

.card-link:hover {
  color: var(--blue-dark);
}

.card-link .arrow {
  transition: transform 0.3s ease;
}

.card-link:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   SERVIZI HERO (fascia blu)
   ============================================ */
.servizi-hero {
  background: var(--gradient-blue);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.overtitle-light {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.servizi-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.servizi-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   SERVIZI BLOCCHI DETTAGLIATI
   ============================================ */
.servizi {
  padding: 80px 0;
  background: var(--bg-light);
}

.servizio-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}

.servizio-block:last-child {
  margin-bottom: 0;
}

.servizio-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.servizio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servizio-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.servizio-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.servizio-content h3 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.servizio-content p {
  font-size: 17px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.servizio-content .btn {
  margin-top: 20px;
}

/* ============================================
   CONTATTI
   ============================================ */
.contatti-hero {
  background: var(--gradient-blue);
  color: var(--white);
  padding: 90px 0 60px;
  text-align: center;
}

.contatti-title {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contatti-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.contatti {
  padding: 60px 0 80px;
  background: var(--bg-light);
  margin-top: -30px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-gray);
}

/* ============================================
   INFO GRID (negozio + social)
   ============================================ */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.shop-card,
.social-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 123, 184, 0.1);
  color: var(--blue-light);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.shop-badge svg {
  width: 16px;
  height: 16px;
}

.shop-card h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.shop-address {
  font-size: 17px;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.shop-divider {
  height: 1px;
  background: var(--border-light);
  margin: 20px 0;
}

.shop-hours {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.clock-icon {
  width: 24px;
  height: 24px;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.shop-hours p {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 4px;
  line-height: 1.5;
}

.shop-hours strong {
  color: var(--blue-dark);
  font-weight: 700;
}

.social-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gradient-blue);
  color: var(--white);
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   MAPPA
   ============================================ */
.map-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  background: var(--white);
}

.map-container iframe {
  display: block;
  border: none;
  width: 100%;
}

.map-link {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--blue-light);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.map-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   FORM
   ============================================ */
.form-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-container h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--blue-dark);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(91, 123, 184, 0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin: 24px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-dark);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--blue-light);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  position: relative;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loader {
  display: block;
}

.btn-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-message {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
}

.footer h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer p {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (min-width: 768px) {
  .container { padding: 0 32px; }

  .nav-menu { background: transparent; }

  .contact-info-grid {
    grid-template-columns: 2fr 1fr;
  }

  .servizio-block {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .servizio-block.reverse .servizio-image {
    order: 2;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .form-container {
    padding: 50px;
  }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    flex-direction: row;
    gap: 4px;
    box-shadow: none;
  }

  .nav-link {
    padding: 10px 18px;
    font-size: 15px;
  }

  .cosa-facciamo,
  .servizi,
  .contatti {
    padding: 100px 0;
  }
}
