/* ===========================
   PETRARCA DIARY - MAIN CSS
   =========================== */

:root {
  --red:        #8B0000;
  --red-light:  #B22222;
  --red-pale:   #fdf0f0;
  --red-mid:    #e8c5c5;
  --white:      #ffffff;
  --off-white:  #fafafa;
  --grey-50:    #f8f9fa;
  --grey-100:   #f1f3f5;
  --grey-200:   #e9ecef;
  --grey-300:   #dee2e6;
  --grey-400:   #ced4da;
  --grey-500:   #adb5bd;
  --grey-600:   #868e96;
  --grey-700:   #495057;
  --grey-800:   #343a40;
  --grey-900:   #212529;
  --green:      #2e7d32;
  --green-light:#e8f5e9;
  --orange:     #e65100;
  --orange-light:#fff3e0;
  --yellow:     #f9a825;
  --yellow-light:#fffde7;
  --blue:       #1565c0;
  --blue-light: #e3f2fd;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --nav-height: 72px;
  --header-height: 64px;
  --font: 'Inter', sans-serif;

  --bg: var(--off-white);
  --surface: var(--white);
  --text-primary: var(--grey-900);
  --text-secondary: var(--grey-600);
  --border: var(--grey-200);
}

/* DARK THEME */
body.dark {
  --bg:           #121212;
  --surface:      #1e1e1e;
  --text-primary: #f1f1f1;
  --text-secondary: #9e9e9e;
  --border:       #2e2e2e;
  --grey-50:      #1a1a1a;
  --grey-100:     #222222;
  --grey-200:     #2e2e2e;
  --red-pale:     #1a0a0a;
  --red-mid:      #3a1010;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ===== SPLASH ===== */
#splash {
  position: fixed; inset: 0;
  background: linear-gradient(145deg, var(--red) 0%, #6b0000 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: splashFade 0.6s ease 2.2s forwards;
}
@keyframes splashFade {
  to { opacity: 0; pointer-events: none; }
}
.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: splashIn .8s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes splashIn {
  from { transform: scale(0.7) translateY(30px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
.splash-logo {
  width: 110px; height: 110px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: logoPulse 1.5s ease-in-out infinite alternate;
}
@keyframes logoPulse {
  from { box-shadow: 0 8px 32px rgba(0,0,0,.4); }
  to   { box-shadow: 0 8px 48px rgba(255,255,255,.25); }
}
.splash-title {
  font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.5px;
}
.splash-title span { font-weight: 300; opacity: .85; }
.splash-sub { color: rgba(255,255,255,.7); font-size: .9rem; }
.splash-loader {
  margin-top: 16px;
  width: 40px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px; overflow: hidden;
}
.splash-loader div {
  height: 100%; width: 0;
  background: #fff;
  border-radius: 4px;
  animation: loadBar 2s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ===== APP WRAPPER ===== */
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== HEADER ===== */
.app-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(139,0,0,.35);
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-logo {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  object-fit: cover;
}
.header-titles { display: flex; flex-direction: column; }
.header-name {
  font-size: 1.05rem; color: #fff; letter-spacing: -.3px;
  font-weight: 400;
}
.header-name strong { font-weight: 700; }
.header-date { font-size: .72rem; color: rgba(255,255,255,.75); margin-top: 1px; }
.icon-btn {
  background: rgba(255,255,255,.15); border: none; cursor: pointer;
  color: #fff; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.25); }

/* ===== PAGE CONTENT ===== */
.page-content {
  flex: 1;
  padding: 16px 16px calc(var(--nav-height) + 16px);
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.page { display: none; animation: pageIn .35s ease both; }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION HERO ===== */
.section-hero {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.section-hero-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(139,0,0,.3);
  flex-shrink: 0;
}
.section-hero h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 2px; }
.section-hero p  { font-size: .82rem; color: var(--text-secondary); }

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.card-header {
  margin-bottom: 14px;
}
.card-header h3 {
  font-size: .95rem; font-weight: 600;
  color: var(--red);
  display: flex; align-items: center; gap: 8px;
}

/* ===== FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full-span { grid-column: 1 / -1; }
label {
  font-size: .78rem; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .4px;
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select, textarea {
  background: var(--grey-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(139,0,0,.1);
}
textarea { resize: vertical; min-height: 64px; }
select { cursor: pointer; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; border: none; border-radius: var(--radius-md);
  padding: 12px 20px; font-family: var(--font);
  font-size: .92rem; font-weight: 600;
  cursor: pointer; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(139,0,0,.3);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(139,0,0,.35); }
.btn-primary:active { transform: scale(.97); }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
  background: var(--grey-100); color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px; font-family: var(--font);
  font-size: .88rem; font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.btn-secondary:hover { background: var(--grey-200); }

.btn-danger {
  background: #c62828; color: #fff; border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px; font-family: var(--font);
  font-size: .88rem; font-weight: 600; cursor: pointer;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 100;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--grey-500); font-size: .68rem; font-family: var(--font);
  font-weight: 500; padding: 8px 4px;
  border-radius: var(--radius-md);
  transition: color .2s, background .2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-item i { font-size: 1.35rem; transition: transform .2s; }
.nav-item.active {
  color: var(--red);
}
.nav-item.active i { transform: scale(1.15); }
.nav-item.active span:first-of-type { font-weight: 700; }
.nav-item::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 3px; border-radius: 0 0 4px 4px;
  background: var(--red);
  transform: scaleX(0); transition: transform .25s;
}
.nav-item.active::before { transform: scaleX(1); }
.nav-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--red);
  color: #fff; font-size: .62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  background: var(--grey-100); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 7px 16px;
  font-family: var(--font); font-size: .82rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  color: var(--text-secondary); transition: all .2s;
}
.filter-tab.active {
  background: var(--red); border-color: var(--red);
  color: #fff; font-weight: 600;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.stat-chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-chip span { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.stat-chip small { font-size: .7rem; color: var(--text-secondary); }
.stat-chip.accent { border-color: var(--yellow); }
.stat-chip.accent span { color: var(--yellow); }
.stat-chip.success { border-color: var(--green); }
.stat-chip.success span { color: var(--green); }
.stat-chip.danger { border-color: var(--red); }
.stat-chip.danger span { color: var(--red); }

/* ===== LIST CONTAINER ===== */
.list-container { display: flex; flex-direction: column; gap: 10px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 48px 16px; color: var(--text-secondary);
  text-align: center;
}
.empty-state i { font-size: 3rem; opacity: .35; }
.empty-state p { font-size: .9rem; line-height: 1.6; }

/* ===== ITEM CARDS ===== */
.item-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-start; gap: 12px;
  transition: box-shadow .2s, transform .2s;
  animation: itemIn .3s ease both;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.item-card:hover { box-shadow: var(--shadow-md); }

.item-left { flex: 1; min-width: 0; }
.item-right { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }

.item-subject {
  font-size: .78rem; font-weight: 700;
  color: var(--red);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 3px;
}
.item-title {
  font-size: .92rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-meta {
  font-size: .78rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.item-meta i { font-size: .72rem; }

/* COMPITO CHECKBOX */
.checkbox-wrap {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; margin-top: 2px;
}
.checkbox-wrap.checked {
  background: var(--green); border-color: var(--green);
  color: #fff;
}
.item-card.done .item-title { text-decoration: line-through; opacity: .6; }
.item-card.done .item-subject { opacity: .5; }

/* PRIORITY DOT */
.priority-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-right: 4px;
}
.p-alta   { background: #c62828; }
.p-media  { background: var(--yellow); }
.p-bassa  { background: var(--green); }

/* BADGE TIPO */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: .72rem; font-weight: 600;
  gap: 4px;
}
.badge-scritta  { background: var(--blue-light); color: var(--blue); }
.badge-orale    { background: var(--orange-light); color: var(--orange); }
.badge-pratica  { background: var(--green-light); color: var(--green); }
.badge-default  { background: var(--grey-100); color: var(--grey-700); }

/* SMALL ACTION BUTTONS */
.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--grey-400); font-size: .9rem;
  padding: 4px; border-radius: 6px; transition: color .2s, background .2s;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
}
.btn-icon:hover { color: #c62828; background: rgba(198,40,40,.08); }

/* ===== ORARIO / TIMETABLE ===== */
.timetable-container { margin-top: 4px; }
.day-block { margin-bottom: 14px; }
.day-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 8px;
  padding-left: 4px;
}
.day-label::after {
  content: ''; flex: 1; height: 1px; background: var(--red-mid);
}
.lesson-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
  border-top: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  animation: itemIn .3s ease both;
}
.lesson-time {
  font-size: .8rem; font-weight: 700; color: var(--red);
  min-width: 82px; text-align: center;
  background: var(--red-pale);
  padding: 6px 8px; border-radius: var(--radius-sm);
  line-height: 1.4;
}
.lesson-info { flex: 1; }
.lesson-subject { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.lesson-detail { font-size: .78rem; color: var(--text-secondary); }

/* ===== VOTI ===== */
.avg-banner {
  background: linear-gradient(135deg, var(--red) 0%, #6b0000 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 6px 24px rgba(139,0,0,.35);
  color: #fff;
}
.avg-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 3px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avg-circle span { font-size: 1.6rem; font-weight: 800; }
.avg-info strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.avg-info small  { font-size: .8rem; opacity: .8; }

/* Materia voti group */
.materia-group {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.materia-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer; user-select: none;
  transition: background .2s;
}
.materia-header:hover { background: var(--grey-50); }
.materia-name { font-size: .95rem; font-weight: 700; }
.materia-avg-badge {
  padding: 4px 14px; border-radius: 20px;
  font-size: .88rem; font-weight: 700;
  min-width: 52px; text-align: center;
}
.avg-great  { background: var(--green-light); color: var(--green); }
.avg-good   { background: #e8f5e9; color: #388e3c; }
.avg-ok     { background: var(--yellow-light); color: #f57f17; }
.avg-low    { background: var(--orange-light); color: var(--orange); }
.avg-fail   { background: #ffebee; color: #c62828; }

.materia-voti-list { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.voto-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
}
.voto-bubble {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; flex-shrink: 0;
}
.voto-info { flex: 1; }
.voto-tipo { font-size: .75rem; color: var(--text-secondary); }
.voto-data { font-size: .72rem; color: var(--text-secondary); }
.voto-note { font-size: .78rem; color: var(--text-primary); margin-top: 1px; }

/* ===== ESAMI - COUNTDOWN ===== */
.esame-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
  animation: itemIn .3s ease both;
  position: relative; overflow: hidden;
}
.esame-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--red);
  border-radius: 2px 0 0 2px;
}
.esame-card.oggi::before  { background: var(--orange); }
.esame-card.domani::before{ background: var(--yellow); }
.esame-card.passato::before { background: var(--grey-400); }
.esame-card.passato { opacity: .6; }

.countdown-box {
  min-width: 68px;
  background: var(--red-pale);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 6px;
  text-align: center;
}
.countdown-box.oggi  { background: var(--orange-light); }
.countdown-box.domani { background: var(--yellow-light); }
.countdown-box.passato{ background: var(--grey-100); }

.countdown-num {
  font-size: 1.6rem; font-weight: 800;
  color: var(--red); line-height: 1;
}
.countdown-box.oggi .countdown-num   { color: var(--orange); }
.countdown-box.domani .countdown-num { color: var(--yellow); }
.countdown-box.passato .countdown-num{ color: var(--grey-500); }
.countdown-label {
  font-size: .65rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: .4px; margin-top: 2px;
}
.esame-info { flex: 1; }
.esame-subject { font-size: .8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.esame-tipo-badge {
  display: inline-block; padding: 2px 8px;
  background: var(--red-pale); color: var(--red);
  border-radius: 20px; font-size: .72rem; font-weight: 600;
  margin-bottom: 5px;
}
.esame-date { font-size: .78rem; color: var(--text-secondary); margin-bottom: 5px; }
.esame-argomenti {
  font-size: .8rem; color: var(--text-secondary);
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  border-left: 2px solid var(--grey-300);
  margin-top: 4px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  max-width: 320px; width: 100%;
  text-align: center;
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: var(--shadow-lg);
}
@keyframes modalIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #ffebee; color: #c62828;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.modal p  { font-size: .88rem; color: var(--text-secondary); margin-bottom: 20px; }
.modal-btns { display: flex; gap: 10px; justify-content: center; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: calc(var(--nav-height) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--grey-800); color: #fff;
  padding: 10px 20px; border-radius: 24px;
  font-size: .85rem; font-weight: 500;
  z-index: 9998; white-space: nowrap;
  opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--green); }
.toast.error   { background: #c62828; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .avg-circle { width: 58px; height: 58px; }
  .avg-circle span { font-size: 1.3rem; }
}
@media (min-width: 600px) {
  .page-content { padding: 20px 20px calc(var(--nav-height) + 20px); }
  .section-hero h2 { font-size: 1.5rem; }
}
