/* ==========================================================
   Studio Dentistico Dr. Bianchi — Portfolio Demo
   Palette: #0EA5E9 blu medicale | #10B981 verde menta
            #FFFFFF bianco | #F1F5F9 grigio chiaro
   Font: Inter (Google Fonts)
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1E293B;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* --- CSS Variables --- */
:root {
  --blue: #0EA5E9;
  --blue-dark: #0284C7;
  --blue-light: #E0F2FE;
  --blue-xlight: #F0F9FF;
  --green: #10B981;
  --green-dark: #059669;
  --green-light: #D1FAE5;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
  --transition: 0.25s ease;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-100);
}

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

.section-header h2 {
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.7; }

/* --- Badges --- */
.section-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.badge-light {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 12px 28px;
  box-shadow: 0 2px 8px rgba(14,165,233,0.35);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(14,165,233,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 10px 24px;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--blue-xlight);
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Focus visibility for accessibility */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* --- Rounded image helper --- */
.rounded-lg { border-radius: var(--radius-lg); }

/* ====================================================
   NAVBAR
   ==================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo-icon { font-size: 1.25rem; }

.nav-logo-text { color: var(--blue-dark); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--blue-dark);
  background: var(--blue-xlight);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(14,165,233,0.3);
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.82) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content > p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-legal {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  margin-top: 0;
}

/* ====================================================
   CHI SIAMO
   ==================================================== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.section-text h2 {
  margin: 12px 0 20px;
}

.section-text p + p {
  margin-top: 14px;
}

.check-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.check-list-light li { color: rgba(255,255,255,0.9); }

.check-list-light li::before {
  background-color: rgba(255,255,255,0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.section-visual { position: relative; }

.section-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tech strip */
.tech-strip {
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.tech-strip-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tech-icon { font-size: 1.1rem; }

/* ====================================================
   PRESTAZIONI
   ==================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-light);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  background: var(--blue-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  flex: 1;
  font-size: 0.9rem;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

.card-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ====================================================
   TECNOLOGIE
   ==================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tech-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.tech-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tech-card-body {
  padding: 20px 22px 24px;
}

.tech-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  color: var(--blue-dark);
}

.tech-card-body p {
  font-size: 0.9rem;
}

/* ====================================================
   TEAM
   ==================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.team-photo-wrap {
  overflow: hidden;
  height: 240px;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.04);
}

.team-info {
  padding: 20px 22px 24px;
}

.team-info h3 {
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.team-role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.team-info p {
  font-size: 0.875rem;
}

.team-albo {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ====================================================
   CONVENZIONI
   ==================================================== */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.conv-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.conv-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.conv-logo-placeholder {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: var(--blue-xlight);
  border-radius: var(--radius-sm);
}

.conv-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.conv-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ====================================================
   PRENOTA
   ==================================================== */
.section-prenota {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0369A1 100%);
  color: #fff;
}

.prenota-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.prenota-text h2 {
  color: #fff;
  margin: 12px 0 16px;
}

.prenota-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

.prenota-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.prenota-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

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

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-check label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.link-text {
  color: var(--blue);
  text-decoration: underline;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ====================================================
   FAQ
   ==================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.08);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--blue-xlight);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  min-width: 24px;
  text-align: center;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  border-top: 1px solid var(--gray-100);
}

.faq-answer p {
  font-size: 0.9375rem;
  padding-top: 16px;
}

/* ====================================================
   RECENSIONI
   ==================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.review-stars {
  color: #F59E0B;
  font-size: 1.125rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card > p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.review-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reviews-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ====================================================
   CONTATTI
   ==================================================== */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.info-block {
  margin-bottom: 28px;
}

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

.info-block h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.info-block p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-block a {
  color: var(--blue-dark);
  font-weight: 500;
}

.info-block a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.orari-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.orari-table td {
  padding: 5px 0;
  color: var(--text-secondary);
}

.orari-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  padding-right: 16px;
  white-space: nowrap;
}

.legal-note {
  font-size: 0.8125rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6;
}

.mappa-placeholder {
  background: var(--blue-xlight);
  border: 2px dashed var(--blue-light);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mappa-inner {
  text-align: center;
  padding: 32px;
}

.mappa-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.mappa-inner p {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer-logo {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand-col p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

.footer-brand-col p + p {
  margin-top: 12px;
}

.footer-legal-small {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}

.footer-bottom p:last-child { margin-bottom: 0; }

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

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

.footer-legal-disclaimer {
  font-size: 0.75rem !important;
  font-style: italic;
}

/* --- DEMO BADGE --- */
.demo-badge {
  background: linear-gradient(90deg, var(--blue-dark) 0%, #0369A1 100%);
  padding: 14px 20px;
  text-align: center;
}

.demo-badge p {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.demo-badge a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.demo-badge a:hover {
  opacity: 0.85;
}

/* ====================================================
   SCROLL TO TOP
   ==================================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ====================================================
   RESPONSIVE — TABLET (max 1024px)
   ==================================================== */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }

  .section-grid { gap: 40px; }

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

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

  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }

  .prenota-inner { gap: 40px; }
}

/* ====================================================
   RESPONSIVE — MOBILE (max 768px)
   ==================================================== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero { min-height: 100svh; padding: 80px 0 48px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg { width: 100%; max-width: 320px; justify-content: center; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }

  /* Grid layouts */
  .section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .reverse-on-mobile .section-visual { order: -1; }

  .section-img { height: 260px; }

  .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .stat-card { padding: 12px 8px; }

  .stat-num { font-size: 1.25rem; }

  .tech-list { gap: 10px; }

  .tech-item { font-size: 0.8125rem; padding: 6px 14px; }

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

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

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

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

  /* Prenota */
  .prenota-inner { grid-template-columns: 1fr; gap: 32px; }

  .prenota-form-wrap { padding: 24px 20px; }

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

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Contatti */
  .contatti-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; }

  /* Scroll top */
  .scroll-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .conv-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .stat-card { display: flex; gap: 12px; align-items: center; text-align: left; }
}
