/* Header */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 14px; padding: 14px 0; }
  .logo-mark { height: 54px; }
  .logo-link { font-size: 19px; }
  .main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .main-nav a { margin-left: 0; }
}

@media (max-width: 480px) {
  .logo-mark { height: 50px; }
  .logo-link { font-size: 18px; }
  .main-nav a { padding: 9px 11px; }
}

/* Home */
@media (max-width: 1024px) {
  .hero { padding-top: 14px; }
  .hero-inner { min-height: 58vh; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 20px; }
  .hero-content { padding: 56px 32px; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 12px 0 40px; text-align: left; }
  .hero-inner { min-height: 520px; }
  .hero-content { padding: 42px 20px; max-width: 100%; align-items: flex-start; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero p { font-size: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .workshop img { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .btn-primary { padding: 12px 18px; }
}

/* Footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }
  .footer-brand,
  .footer-contacts {
    grid-column: 1 / -1;
  }
  .footer-logo { width: min(220px, 74vw); }
  .footer-col h4 { font-size: 14px; text-align: center; }
  .footer-links a,
  .footer-contacts address,
  .footer-contacts span,
  .footer-contacts a,
  .footer-col p { font-size: 13.5px; }
}

@media (max-width: 480px) {
  .site-footer { padding: 46px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .footer-col,
  .footer-links,
  .footer-contacts,
  .footer-contacts address {
    align-items: center;
    text-align: center;
  }
  .footer-logo { width: min(205px, 78vw); }
  .footer-brand {
    padding-bottom: 24px;
  }
  .footer-links,
  .footer-contacts {
    width: 100%;
    padding-top: 22px;
    margin-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, .13);
  }
  .footer-links a,
  .footer-contacts address,
  .footer-contacts span,
  .footer-contacts a { font-size: 13px; }
  .footer-bottom { font-size: 12px; line-height: 1.45; }
}

/* Auth (register) */
@media (max-width: 640px) {
  .form-row { flex-direction: column; }
}

/* Login mobile: immagine = background */
@media (max-width: 768px) {
  .page-template-page-login .login-page {
    grid-template-columns: 1fr;
    min-height: 100svh;
    background-image: url('../images/login-left.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .page-template-page-login .login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(2,6,23,0.95),
      rgba(2,6,23,0.85),
      rgba(2,6,23,0.6),
      rgba(2,6,23,0.3)
    );
    z-index: 1;
  }

  .page-template-page-login .login-left { display: none; }

  .page-template-page-login .login-right {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    min-height: 100svh;
  }

  .page-template-page-login .login-card {
    background: rgba(2,6,23,0.85);
    backdrop-filter: blur(8px);
    padding: 32px 24px;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  }
}
body {
  font-family: var(--ydea-font-sans);
  font-weight: var(--ydea-weight-normal);
}

h1,
h2,
h3,
h4,
h5,
h6,
.home-hero h1,
.home-section h2,
.services-overview .section-kicker {
  font-family: var(--ydea-font-mono);
  font-weight: var(--ydea-weight-bold);
}

p,
li,
td,
th,
label,
input,
select,
textarea {
  font-family: var(--ydea-font-sans);
}

.section-kicker,
.services-kicker,
.home-kicker,
.home-hero__lead,
.home-final-cta__lead,
.service-lead,
.section-heading p,
.home-section-heading p,
.hero-subtitle,
.subtitle,
.lead {
  font-weight: var(--ydea-weight-medium);
}

.home-page .home-kicker,
.home-page .home-kicker span {
  color: var(--ydea-orange) !important;
  font-family: var(--ydea-font-mono) !important;
  font-weight: var(--ydea-weight-bold) !important;
}

.home-page .home-kicker {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

button,
.btn-primary,
.btn-secondary,
.home-btn,
.nav-cta,
.service-section-button,
input[type="button"],
input[type="submit"] {
  font-family: var(--ydea-font-sans);
  font-weight: var(--ydea-weight-semibold);
}

.site-header,
.site-header *,
.page-template-page-login,
.page-template-page-login *,
.page-template-page-register,
.page-template-page-register *,
.admin-panel,
.admin-panel *,
.admin-detail-panel,
.admin-detail-panel *,
.quotes-dashboard,
.quotes-dashboard * {
  font-family: var(--ydea-font-sans);
}

.site-header h1,
.site-header h2,
.site-header h3,
.page-template-page-login h1,
.page-template-page-login h2,
.page-template-page-register h1,
.page-template-page-register h2,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-detail-panel h1,
.admin-detail-panel h2,
.admin-detail-panel h3,
.quotes-dashboard h1,
.quotes-dashboard h2,
.quotes-dashboard h3 {
  font-weight: var(--ydea-weight-bold);
}

.site-header a,
.site-header button,
.page-template-page-login button,
.page-template-page-login .btn-primary,
.page-template-page-register button,
.page-template-page-register .btn-primary,
.admin-panel button,
.admin-panel .admin-nav a,
.admin-detail-panel button,
.quotes-dashboard button,
.quotes-dashboard .new-quote-button {
  font-weight: var(--ydea-weight-semibold);
}

.page-template-page-login .login-sub,
.page-template-page-login .login-left-text p,
.page-template-page-register p,
.admin-panel p,
.admin-panel label,
.admin-detail-panel p,
.admin-detail-panel label,
.quotes-dashboard p,
.quotes-dashboard label {
  font-weight: var(--ydea-weight-medium);
}
