:root {
  --blue-900: #003b67;
  --blue-700: #005a9c;
  --blue-500: #0078d4;
  --ink: #17202a;
  --muted: #586574;
  --line: #dbe3ea;
  --surface: #ffffff;
  --page: #f4f7f9;
  --soft: #eaf4fb;
  --warning: #fff4ce;
  --warning-border: #d69e00;
  --success: #e8f6ed;
  --success-border: #27864b;
  --shadow: 0 12px 32px rgba(23, 32, 42, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.65 "Segoe UI", Arial, sans-serif;
}
a { color: #005ea6; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(1080px, calc(100% - 36px)); margin: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 0; }
.brand { color: var(--blue-700); font-weight: 800; text-decoration: none; }
.service { color: var(--muted); font-size: 14px; }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-nav .wrap { display: flex; gap: 25px; overflow: auto; padding: 13px 0; white-space: nowrap; }
.site-nav a { color: var(--blue-900); font-size: 15px; font-weight: 700; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue-500); }

.hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-500)); color: #fff; padding: 62px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 38px; align-items: center; }
.eyebrow { margin: 0 0 9px; font-size: 13px; font-weight: 800; letter-spacing: 0.09em; opacity: 0.9; text-transform: uppercase; }
h1 { margin: 0 0 17px; font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.025em; line-height: 1.08; }
.lead { margin: 0; max-width: 760px; font-size: 20px; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-card small { color: var(--muted); display: block; margin-bottom: 5px; }
.hero-card code { color: var(--blue-700); display: block; font: 800 22px/1.35 Consolas, monospace; overflow-wrap: anywhere; }
.hero-card p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.hero-home { background: linear-gradient(90deg, rgba(0,43,79,.96) 0%, rgba(0,72,125,.86) 48%, rgba(0,43,79,.52) 100%), url("education-teaching.jpg") center 42% / cover no-repeat; min-height: 510px; padding: 88px 0; }
.hero-home .hero-grid { min-height: 334px; }
.hero-home .hero-card { background: rgba(255,255,255,.95); backdrop-filter: blur(5px); }
.freshman-hero { background: linear-gradient(90deg, rgba(0,43,79,.94) 0%, rgba(0,72,125,.82) 48%, rgba(0,43,79,.48) 100%), url("brucosi-studenti.jpg") center 43% / cover no-repeat; min-height: 510px; padding: 88px 0; }
.freshman-hero .hero-grid { min-height: 334px; }
.freshman-hero .hero-card { background: rgba(255,255,255,.95); backdrop-filter: blur(5px); }
.hero-actions { margin-bottom: 0; }
.button.light { background: #fff; color: var(--blue-900); }
.button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.65); color: #fff; }
.status-pill { background: #dff6e7; border-radius: 999px; color: #176b38; display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; margin-bottom: 14px; padding: 5px 10px; text-transform: uppercase; }

.freshman-feature { background: #fff; border: 1px solid rgba(0,90,156,.18); border-radius: 22px; box-shadow: 0 18px 44px rgba(23,32,42,.13); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; }
.freshman-feature-content { align-self: center; padding: clamp(28px, 5vw, 52px); }
.freshman-feature h2 { color: var(--ink); font-size: clamp(31px, 4vw, 46px); letter-spacing: -.025em; margin-bottom: 16px; }
.freshman-feature p:not(.section-kicker) { color: var(--muted); font-size: 18px; max-width: 650px; }
.freshman-feature .actions { margin-bottom: 0; }
.freshman-feature-media { min-height: 330px; overflow: hidden; position: relative; }
.freshman-feature-media::after { background: linear-gradient(180deg, transparent 42%, rgba(0,43,79,.9)); bottom: 0; content: ""; left: 0; position: absolute; right: 0; top: 0; }
.freshman-feature-media img { height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.freshman-feature-media:hover img { transform: scale(1.035); }
.freshman-feature-media:focus-visible { outline: 4px solid #ffcf40; outline-offset: -4px; }
.freshman-feature-media span { bottom: 22px; color: #fff; font-size: 17px; font-weight: 800; left: 24px; letter-spacing: .04em; position: absolute; text-shadow: 0 2px 8px rgba(0,0,0,.65); z-index: 1; }
.freshman-resource-note { margin-top: 20px; }
.community-card { align-items: center; display: grid; gap: 24px; grid-template-columns: 1fr auto; }
.community-card .actions { margin: 0; }
.migration-updates { background: linear-gradient(180deg, #fff, #eef6fb); border: 1px solid rgba(0,90,156,.14); border-radius: 22px; padding: clamp(26px, 4vw, 42px); }
.migration-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.migration-card { border-top: 5px solid var(--blue-500); box-shadow: 0 10px 26px rgba(23,32,42,.08); display: flex; flex-direction: column; }
.migration-card h3 { color: var(--ink); font-size: 22px; line-height: 1.25; margin: 16px 0 10px; }
.migration-card p { color: var(--muted); flex: 1; font-size: 15px; }
.migration-card .text-link { margin-top: 14px; }
.migration-label { align-items: center; color: var(--blue-700); display: flex; font-size: 12px; font-weight: 800; gap: 9px; letter-spacing: .07em; text-transform: uppercase; }
.migration-label .icon { flex: 0 0 38px; font-size: 14px; height: 38px; width: 38px; }
.migration-card-warning { border-top-color: #d69e00; }
.migration-card-warning .migration-label { color: #855d00; }
.migration-card-warning .icon { background: var(--warning); color: #855d00; }
.migration-card-neutral { border-top-color: var(--success-border); }
.migration-card-neutral .migration-label { color: #176b38; }
.migration-card-neutral .icon { background: var(--success); color: #176b38; }

main { padding: 42px 0 68px; }
section { margin-top: 48px; scroll-margin-top: 74px; }
section:first-child { margin-top: 0; }
h2 { color: var(--blue-700); font-size: 30px; line-height: 1.2; margin: 0 0 20px; }
h3 { color: #174f79; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.method-card { display: flex; flex-direction: column; height: 100%; }
.method-card h3 { font-size: 23px; line-height: 1.25; margin: 8px 0 10px; }
.method-label { color: var(--blue-700); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.method-intro { color: var(--muted); margin: 0 0 22px; min-height: 56px; }
.method-card .steps { flex: 1; }
.method-note { background: var(--success); border-left: 4px solid var(--success-border); border-radius: 7px; color: #185f35; font-size: 14px; margin: 4px 0 0; padding: 10px 12px; }
.action-card h2 { margin: 8px 0 22px; }
.action-card .notice + .steps { margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-link { color: inherit; display: block; text-decoration: none; transition: transform 0.16s ease, border-color 0.16s ease; }
.card-link:hover { border-color: #86bde3; transform: translateY(-2px); }
.card-link .arrow { color: var(--blue-700); font-weight: 800; }
.icon { align-items: center; background: var(--soft); border-radius: 50%; color: var(--blue-700); display: inline-flex; font-size: 23px; height: 46px; justify-content: center; width: 46px; }
.notice { background: var(--warning); border-left: 5px solid var(--warning-border); border-radius: 8px; padding: 17px 20px; }
.notice.success { background: var(--success); border-color: var(--success-border); }
.notice.critical { background: #fde7e9; border-color: #c42b1c; color: #64170f; font-size: 18px; }
.notice p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.button { background: var(--blue-700); border-radius: 7px; color: #fff; display: inline-block; font-weight: 800; padding: 11px 17px; text-decoration: none; }
.button.secondary { background: #fff; border: 1px solid var(--blue-700); color: var(--blue-700); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; min-height: 46px; padding: 0 0 25px 58px; position: relative; }
.steps li::before { align-items: center; background: var(--blue-500); border-radius: 50%; color: #fff; content: counter(step); display: flex; font-weight: 800; height: 38px; justify-content: center; left: 0; position: absolute; top: 0; width: 38px; }
.steps li:not(:last-child)::after { background: var(--line); bottom: 4px; content: ""; left: 18px; position: absolute; top: 41px; width: 2px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 9px; margin: 10px 0; padding: 15px 18px; }
.faq summary { color: #174f79; cursor: pointer; font-weight: 800; }
.faq details p { color: var(--muted); margin: 12px 0 2px; }
.support { background: var(--blue-700); border-radius: var(--radius); color: #fff; padding: 30px; }
.support h2, .support a { color: #fff; }
.support-kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; margin: 0 0 6px; opacity: .86; text-transform: uppercase; }
.support-intro { max-width: 850px; }
.support-warning { align-items: center; background: #fff4ce; border-left: 5px solid #ffb900; border-radius: 8px; color: #4f3300; display: flex; gap: 10px; margin: 18px 0 24px; padding: 13px 16px; }
.support-warning > span { font-size: 22px; }
.support-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.support-card { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; display: flex; gap: 13px; min-width: 0; padding: 16px; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.support-card:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.support-card:focus-visible { outline: 3px solid #ffcf40; outline-offset: 3px; }
.support-card > span:last-child { min-width: 0; }
.support-card small, .support-card strong { display: block; }
.support-card small { color: #d5e8f7; font-size: 13px; margin-bottom: 3px; }
.support-card strong { font-size: 14px; overflow-wrap: anywhere; }
.support-icon { align-items: center; background: #fff; border-radius: 50%; color: var(--blue-700); display: inline-flex; flex: 0 0 42px; font-size: 19px; height: 42px; justify-content: center; width: 42px; }
.support-icon-365 { font-size: 12px; font-weight: 900; }
.phone-support { align-items: center; background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; display: grid; gap: 20px; grid-template-columns: minmax(250px,.8fr) 1.2fr; margin: 0 0 20px; padding: 17px; }
.phone-support > div { align-items: center; display: flex; gap: 13px; }
.phone-support small, .phone-support strong { display: block; }
.phone-support small { color: #d5e8f7; }
.phone-support .phones { justify-content: flex-end; margin: 0; }
.phone-support .phones a { background: rgba(255,255,255,.12); border-radius: 7px; display: inline-block; padding: 5px 9px; text-decoration: none; }
.phone-support .phones a:hover { background: rgba(255,255,255,.22); }
.support-meta { border-top: 1px solid rgba(255,255,255,.25); display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin-top: 8px; padding-top: 20px; }
.support-meta p { margin: 0; }
.phones { display: flex; flex-wrap: wrap; gap: 9px 18px; list-style: none; padding: 0; }
.phones li { font-weight: 800; }
.fine { color: var(--muted); font-size: 14px; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.link-fixer { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.link-fixer textarea { background: #f8fafc; border: 1px solid #9aabb8; border-radius: 9px; color: var(--ink); display: block; font: 14px/1.5 Consolas, "Courier New", monospace; margin-top: 8px; min-height: 112px; padding: 12px; resize: vertical; width: 100%; }
.link-fixer textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(0,120,212,.18); outline: none; }
.link-fixer button { border: 0; cursor: pointer; font: inherit; }
.privacy-note { align-items: center; background: var(--success); border-radius: 9px; color: #185f35; display: flex; gap: 9px; margin: 18px 0; padding: 11px 14px; }
.link-fixer-message { border-radius: 8px; font-weight: 700; margin: 10px 0; padding: 0; }
.link-fixer-message.error { background: #fde7e9; color: #8a1c12; padding: 11px 14px; }
.link-fixer-message.success { background: var(--success); color: #185f35; padding: 11px 14px; }
.fixed-link-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 20px; }
.link-fixer .notice { margin-top: 22px; }
.section-kicker { color: var(--blue-700); font-size: 13px; font-weight: 800; letter-spacing: .09em; margin: 0 0 8px; text-transform: uppercase; }
.section-intro { color: var(--muted); max-width: 790px; margin: -7px 0 25px; }
.feature-section { background: linear-gradient(180deg, #edf7fd, #dff2fc); border-radius: 24px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 58px max(18px, calc((100vw - 1080px) / 2)); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-card { background: #fff; border: 1px solid rgba(0,90,156,.15); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.audience-card:hover { box-shadow: 0 18px 42px rgba(23, 32, 42, .14); transform: translateY(-4px); }
.audience-media { display: block; overflow: hidden; position: relative; }
.audience-media::after { background: linear-gradient(180deg, transparent 38%, rgba(0,27,51,.88) 100%); bottom: 0; content: ""; left: 0; pointer-events: none; position: absolute; right: 0; top: 0; }
.audience-media img { aspect-ratio: 16/9; display: block; height: auto; max-width: 100%; object-fit: cover; transition: transform .28s ease; width: 100%; }
.audience-media:hover img { transform: scale(1.035); }
.audience-media:focus-visible { outline: 4px solid #ffcf40; outline-offset: -4px; }
.audience-overlay { bottom: 16px; color: #fff; font-size: clamp(16px, 1.7vw, 21px); font-weight: 800; left: 18px; line-height: 1.2; max-width: calc(100% - 36px); position: absolute; text-shadow: 0 2px 8px rgba(0,0,0,.75); z-index: 1; }
.audience-content { padding: 22px; }
.audience-card h3 { color: var(--ink); font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.audience-card p { color: var(--muted); font-size: 15px; }
.text-link { font-weight: 800; text-decoration: none; }
.resource-band { align-items: start; background: #092f4f; border-radius: 20px; color: #fff; display: grid; gap: 34px; grid-template-columns: .72fr 1.28fr; padding: 38px; }
.resource-band h2, .resource-band .section-kicker { color: #fff; }
.resource-band p { color: #d5e8f7; }
.resource-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.resource-links li { margin: 0; }
.resource-links a { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; display: grid; gap: 16px; grid-template-columns: 42px 1fr auto; padding: 15px 17px; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.resource-links a:hover { background: rgba(255,255,255,.15); transform: translateX(3px); }
.resource-links a:focus-visible { outline: 3px solid #ffcf40; outline-offset: 2px; }
.resource-number { color: #7fc8fa; font: 800 13px/1 "Segoe UI", sans-serif; letter-spacing: .08em; }
.resource-links strong, .resource-links small { display: block; }
.resource-links small { color: #c9dfef; font-size: 14px; margin-top: 3px; }
.resource-arrow { color: #7fc8fa; font-size: 24px; font-weight: 800; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 25px 0 38px; }
.footer-grid { align-items: center; display: flex; gap: 28px; justify-content: space-between; }
.footer-grid::before { background: url("ffzg-logo-2025.jpg") left center / contain no-repeat; content: ""; display: block; flex: 0 0 auto; height: 68px; width: min(330px, 38vw); }
.signature { color: var(--blue-900); white-space: nowrap; }
.signature strong { color: var(--blue-500); }

@media (max-width: 820px) {
  .hero-grid, .two, .grid, .method-grid, .audience-grid, .resource-band, .support-grid, .support-meta, .phone-support, .freshman-feature, .community-card, .migration-grid { grid-template-columns: 1fr; }
  .freshman-feature-media { min-height: 230px; order: -1; }
  .phone-support .phones { justify-content: flex-start; }
  .audience-media img { aspect-ratio: 16/10; }
  .resource-links a { gap: 11px; grid-template-columns: 34px 1fr auto; padding: 14px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-grid::before { height: 62px; width: min(330px, 88vw); }
  .hero { padding: 44px 0; }
  .hero-home { background-position: 62% center; min-height: auto; }
  .freshman-hero { background-position: 58% center; min-height: auto; }
  .service { display: none; }
}
@media print {
  .site-nav, .actions { display: none; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .card, .hero-card { box-shadow: none; }
  body { background: #fff; }
  .wrap { width: 100%; }
}
.inquiry-section {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.inquiry-form {
  margin-top: 1.5rem;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.form-field {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}

.form-field label,
.form-confirm {
  font-weight: 700;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(18, 99, 160, .2);
  border-color: var(--blue-500);
}

.form-confirm {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.form-confirm input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  flex: 0 0 auto;
}

.inquiry-message {
  min-height: 1.5rem;
  margin-top: .75rem;
  font-weight: 700;
}

.inquiry-message.success { color: #176b3a; }
.inquiry-message.error { color: #a02727; }

@media (max-width: 720px) {
  .inquiry-grid { grid-template-columns: 1fr; }
}
