/* ==========================================================
   ANDREA WEB DESIGNER — DESIGN SYSTEM GLOBALE
   ========================================================== */

:root {
  --awd-red: #d11328;
  --awd-red-hover: #ad0f20;
  --awd-red-soft: #fcecef;

  --awd-heading: #111827;
  --awd-text: #374151;
  --awd-muted: #6b7280;

  --awd-white: #ffffff;
  --awd-bg: #ffffff;
  --awd-bg-alt: #f8fafc;
  --awd-dark: #111827;
  --awd-border: #e5e7eb;

  --awd-font-heading: "Manrope", system-ui, sans-serif;
  --awd-font-body: "Inter", system-ui, sans-serif;

  --awd-container: 1200px;
  --awd-gutter: 24px;

  --awd-radius-sm: 8px;
  --awd-radius-md: 14px;
  --awd-radius-lg: 24px;
  --awd-radius-pill: 999px;

  --awd-shadow-sm: 0 3px 14px rgba(17, 24, 39, .06);
  --awd-shadow-md: 0 18px 48px rgba(17, 24, 39, .10);

  --awd-transition: 220ms ease;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--awd-bg);
  color: var(--awd-text);
  font-family: var(--awd-font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--awd-red);
  text-underline-offset: .18em;
}

a:hover,
a:focus-visible {
  color: var(--awd-red-hover);
}

:focus-visible {
  outline: 3px solid rgba(209, 19, 40, .25);
  outline-offset: 4px;
}

::selection {
  background: var(--awd-red);
  color: var(--awd-white);
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .7em;
  color: var(--awd-heading);
  font-family: var(--awd-font-heading);
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2.125rem, 4vw, 2.8125rem);
  font-weight: 800;
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.375rem, 2.3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.4em;
}

/* Container e sezioni */
.grid-container,
.inside-header,
.inside-navigation,
.site-content,
.awd-container {
  width: min(calc(100% - (var(--awd-gutter) * 2)), var(--awd-container));
  max-width: var(--awd-container);
  margin-inline: auto;
}

.site-content {
  padding-inline: 0;
}

.awd-section {
  padding-block: 96px;
}

.awd-section--alt {
  background: var(--awd-bg-alt);
}

.awd-section--dark {
  background: var(--awd-dark);
  color: rgba(255,255,255,.78);
}

.awd-section--dark h1,
.awd-section--dark h2,
.awd-section--dark h3,
.awd-section--dark h4 {
  color: var(--awd-white);
}

.awd-grid {
  display: grid;
  gap: 28px;
}

.awd-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.awd-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.awd-section-head {
  max-width: 820px;
  margin-bottom: 48px;
}

.awd-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--awd-red);
  font-family: var(--awd-font-heading);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.awd-lead {
  max-width: 760px;
  color: var(--awd-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

/* Pulsanti */
.awd-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--awd-radius-md);
  background: var(--awd-red);
  color: var(--awd-white);
  font-family: var(--awd-font-heading);
  font-size: .95rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    transform var(--awd-transition),
    background-color var(--awd-transition),
    border-color var(--awd-transition),
    box-shadow var(--awd-transition);
}

.awd-btn:hover,
.awd-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--awd-red-hover);
  color: var(--awd-white);
  box-shadow: var(--awd-shadow-sm);
}

.awd-btn--secondary {
  border-color: var(--awd-red);
  background: transparent;
  color: var(--awd-red);
}

.awd-btn--secondary:hover,
.awd-btn--secondary:focus-visible {
  background: var(--awd-red);
  color: var(--awd-white);
}

/* Card */
.awd-card {
  height: 100%;
  padding: 30px;
  border: 1px solid var(--awd-border);
  border-radius: var(--awd-radius-lg);
  background: var(--awd-white);
  box-shadow: var(--awd-shadow-sm);
  transition:
    transform var(--awd-transition),
    border-color var(--awd-transition),
    box-shadow var(--awd-transition);
}

.awd-card:hover {
  transform: translateY(-5px);
  border-color: rgba(209, 19, 40, .3);
  box-shadow: var(--awd-shadow-md);
}

/* Header GeneratePress */
.site-header {
  border-bottom: 1px solid var(--awd-border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}

.inside-header {
  min-height: 84px;
}

.main-navigation {
  background: transparent;
}

.main-navigation .main-nav ul li a {
  color: var(--awd-heading);
  font-family: var(--awd-font-heading);
  font-size: .92rem;
  font-weight: 650;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  background: transparent;
  color: var(--awd-red);
}

/* Form */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: var(--awd-radius-md);
  background: var(--awd-white);
  color: var(--awd-text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--awd-red);
  outline: none;
  box-shadow: 0 0 0 4px rgba(209,19,40,.12);
}

/* Footer */
.site-footer {
  background: var(--awd-dark);
  color: rgba(255,255,255,.72);
}

.site-footer a {
  color: rgba(255,255,255,.88);
}

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

/* Mobile */
@media (max-width: 900px) {
  :root {
    --awd-gutter: 20px;
  }

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

  .awd-section {
    padding-block: 72px;
  }
}

@media (max-width: 600px) {
  :root {
    --awd-gutter: 16px;
  }

  body {
    font-size: 17px;
  }

  .awd-section {
    padding-block: 56px;
  }

  .awd-btn {
    width: 100%;
  }
}
