/* =========================================================
   STUDENTATO RIMINI
   Bozza moderna desktop + mobile
========================================================= */

:root {
  --studentato-ink: #13233f;
  --studentato-blue: #1f63ff;
  --studentato-blue-dark: #164fd6;
  --studentato-sky: #dfeaff;
  --studentato-mint: #c9f7df;
  --studentato-lime: #d8ff73;
  --studentato-orange: #ff8a5b;
  --studentato-white: #ffffff;
  --studentato-soft: #f6f8fc;
  --studentato-border: rgba(19, 35, 63, .10);
  --studentato-shadow: 0 24px 70px rgba(25, 53, 103, .14);
  --studentato-radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 220px;
}

body {
  margin: 0;
  color: var(--studentato-ink);
  background: var(--studentato-white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.studentato-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Fascia loghi e menu restano insieme durante lo scorrimento. */
.studentato-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* FASCIA LOGHI ISTITUZIONALI */

.studentato-funding {
  background: #2c64a8;
}

.studentato-funding-inner {
  max-width: 1350px;
  min-height: 122px;
  margin: 0 auto;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.25fr .9fr;
  align-items: center;
}

.studentato-funding-item {
  min-width: 0;
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studentato-funding-item + .studentato-funding-item {
  border-left: 2px solid #fff;
}

.studentato-funding-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.studentato-funding-beneficiary img {
  max-height: 72px;
}

/* HEADER E MENU */

.studentato-header {
  position: relative;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(19, 35, 63, .07);
  backdrop-filter: blur(18px);
}

.studentato-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.studentato-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.studentato-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--studentato-blue), #6a8dff);
  font: 700 23px/1 "Space Grotesk", sans-serif;
  box-shadow: 0 10px 30px rgba(31, 99, 255, .28);
}

.studentato-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.studentato-brand-text strong {
  font: 700 19px/1 "Space Grotesk", sans-serif;
}

.studentato-brand-text small {
  margin-top: 5px;
  color: #6d7890;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.studentato-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.studentato-menu a {
  font-weight: 600;
  font-size: 14px;
  transition: .25s ease;
}

.studentato-menu a:hover {
  color: var(--studentato-blue);
}

/* BUTTONS */

.studentato-btn {
  min-height: 54px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--studentato-blue);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(31, 99, 255, .24);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.studentato-btn:hover {
  transform: translateY(-3px);
  background: var(--studentato-blue-dark);
  box-shadow: 0 18px 38px rgba(31, 99, 255, .30);
}

.studentato-btn-small {
  min-height: 44px;
  padding: 0 19px;
  border-radius: 14px;
  font-size: 13px;
}

.studentato-btn-light {
  color: var(--studentato-blue-dark);
  background: #fff;
}

.studentato-btn-light:hover {
  color: var(--studentato-blue-dark);
  background: #f4f7ff;
}

/* HERO */

.studentato-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 90px;
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 255, 115, .55), transparent 25%),
    radial-gradient(circle at 8% 85%, rgba(201, 247, 223, .78), transparent 27%),
    linear-gradient(180deg, #f9fbff, #ffffff);
}

.studentato-hero::before {
  content: "";
  position: absolute;
  top: 90px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(31, 99, 255, .05);
}

.studentato-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: center;
  gap: 70px;
}

.studentato-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--studentato-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.studentato-hero-copy h1,
.studentato-section h2,
.studentato-cta h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.studentato-hero-copy h1 {
  max-width: 680px;
  font-size: clamp(48px, 5.4vw, 78px);
}

.studentato-hero-copy h1 span {
  color: var(--studentato-blue);
}

.studentato-hero-copy > p {
  max-width: 640px;
  margin: 28px 0 0;
  color: #59657c;
  font-size: 18px;
}

.studentato-hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.studentato-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.studentato-link span {
  color: var(--studentato-blue);
  font-size: 20px;
}

.studentato-stats {
  margin-top: 45px;
  display: flex;
  gap: 38px;
}

.studentato-stats div {
  display: flex;
  flex-direction: column;
}

.studentato-stats strong {
  font: 700 24px/1 "Space Grotesk", sans-serif;
}

.studentato-stats span {
  margin-top: 7px;
  color: #7a8497;
  font-size: 13px;
}

.studentato-hero-visual {
  position: relative;
  min-height: 610px;
}

.studentato-photo {
  background-size: cover;
  background-position: center;
}

.studentato-photo-main {
  position: absolute;
  inset: 0 45px 0 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, transparent 52%, rgba(13, 27, 55, .72)),
    url("https://www.studenthousingrimini.it/img/hotel-miro-rimini.jpg")
    center/cover no-repeat;
  box-shadow: var(--studentato-shadow);
}

.studentato-photo-label {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  color: #fff;
}

.studentato-photo-label span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.studentato-photo-label strong {
  font: 700 28px/1.15 "Space Grotesk", sans-serif;
}

.studentato-floating-card {
  position: absolute;
  min-width: 230px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(32, 54, 92, .17);
  backdrop-filter: blur(14px);
}

.studentato-floating-card strong,
.studentato-floating-card small {
  display: block;
}

.studentato-floating-card strong {
  font-size: 14px;
}

.studentato-floating-card small {
  color: #707b91;
  font-size: 11px;
}

.studentato-floating-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--studentato-sky);
}

.studentato-floating-card-one {
  top: 46px;
  right: -5px;
}

.studentato-floating-card-two {
  right: 4px;
  bottom: 65px;
}

/* STRIP */

.studentato-strip {
  background: var(--studentato-ink);
  color: #fff;
}

.studentato-strip-grid {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 25px;
}

.studentato-strip-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  justify-content: center;
}

.studentato-strip-grid span {
  color: var(--studentato-lime);
}

/* GENERAL SECTIONS */

.studentato-section {
  padding: 105px 0;
}

.studentato-section-soft {
  background: var(--studentato-soft);
}

.studentato-section-heading {
  margin-bottom: 45px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.studentato-section-heading h2 {
  max-width: 670px;
  font-size: clamp(38px, 4.3vw, 58px);
}

.studentato-section-heading > p {
  max-width: 430px;
  margin: 0 0 6px;
  color: #6a7589;
}

.studentato-section-heading-center {
  display: block;
  text-align: center;
}

.studentato-section-heading-center h2,
.studentato-section-heading-center p {
  margin-left: auto;
  margin-right: auto;
}

.studentato-section-heading-center p {
  margin-top: 18px;
}

/* ROOMS */

.studentato-room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .82fr;
  gap: 24px;
}

.studentato-room-card {
  overflow: hidden;
  border: 1px solid var(--studentato-border);
  border-radius: var(--studentato-radius);
  background: #fff;
  box-shadow: 0 15px 44px rgba(31, 55, 95, .08);
}

.studentato-room-image {
  position: relative;
  height: 290px;
  background-size: cover;
  background-position: center;
}

.studentato-room-image-one {
  background-image: url("https://www.studenthousingrimini.it/img/camera-singola.avif");
}

.studentato-room-image-two {
  background-image: url("https://www.studenthousingrimini.it/img/camera-doppia.jpg");
}

.studentato-room-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.studentato-room-body {
  padding: 28px;
}

.studentato-room-body h3,
.studentato-room-card-accent h3 {
  margin: 0;
  font: 700 28px/1.15 "Space Grotesk", sans-serif;
}

.studentato-room-body p {
  color: #667187;
}

.studentato-room-body ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.studentato-room-body li {
  position: relative;
  padding: 8px 0 8px 25px;
  border-bottom: 1px solid var(--studentato-border);
  font-size: 14px;
}

.studentato-room-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--studentato-blue);
  font-weight: 800;
}

.studentato-room-body a {
  color: var(--studentato-blue);
  font-weight: 800;
}

.studentato-room-card-accent {
  display: flex;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(216,255,115,.35), transparent 30%),
    linear-gradient(155deg, #19325f, #1f63ff);
}

.studentato-room-content-accent {
  padding: 34px;
}

.studentato-room-card-accent .studentato-eyebrow {
  color: var(--studentato-lime);
}

.studentato-room-card-accent p {
  margin: 20px 0 28px;
  color: rgba(255,255,255,.78);
}

/* SERVICES */

.studentato-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.studentato-service-card {
  padding: 30px;
  border: 1px solid var(--studentato-border);
  border-radius: 24px;
  background: #fff;
  transition: .25s ease;
}

.studentato-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(29, 51, 92, .10);
}

.studentato-service-card > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--studentato-sky);
  font-size: 22px;
}

.studentato-service-card h3 {
  margin: 23px 0 8px;
  font: 700 21px/1.2 "Space Grotesk", sans-serif;
}

.studentato-service-card p {
  margin: 0;
  color: #6b768a;
  font-size: 14px;
}

/* COMMUNITY */

.studentato-community-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: 80px;
}

.studentato-community-visual {
  position: relative;
}

.studentato-community-photo {
  min-height: 590px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, transparent 55%, rgba(12, 25, 48, .35)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1100&q=85")
    center/cover no-repeat;
  box-shadow: var(--studentato-shadow);
}

.studentato-community-badge {
  position: absolute;
  right: -25px;
  bottom: 35px;
  max-width: 250px;
  padding: 24px;
  border-radius: 22px;
  background: var(--studentato-lime);
  box-shadow: 0 18px 45px rgba(54, 80, 27, .19);
}

.studentato-community-badge strong,
.studentato-community-badge span {
  display: block;
}

.studentato-community-badge strong {
  font: 700 22px/1.1 "Space Grotesk", sans-serif;
}

.studentato-community-badge span {
  margin-top: 7px;
  font-size: 13px;
}

.studentato-community-copy h2 {
  font-size: clamp(38px, 4.3vw, 58px);
}

.studentato-community-copy > p {
  margin: 25px 0 35px;
  color: #647086;
  font-size: 17px;
}

.studentato-check-list {
  display: grid;
  gap: 18px;
}

.studentato-check-list > div {
  padding: 19px 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 17px;
  border-bottom: 1px solid var(--studentato-border);
}

.studentato-check-list span {
  color: var(--studentato-blue);
  font: 700 14px/1 "Space Grotesk", sans-serif;
}

.studentato-check-list p {
  margin: 0;
}

/* CTA */

.studentato-cta {
  padding: 100px 0;
  background: var(--studentato-soft);
}

.studentato-cta-box {
  padding: 60px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 65px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(216,255,115,.22), transparent 26%),
    linear-gradient(145deg, #17325f, #1f63ff);
  box-shadow: var(--studentato-shadow);
}

.studentato-cta h2 {
  font-size: clamp(38px, 4.2vw, 58px);
}

.studentato-cta p {
  color: rgba(255,255,255,.76);
}

.studentato-cta .studentato-eyebrow {
  color: var(--studentato-lime);
}

.studentato-form {
  padding: 30px;
  border-radius: 26px;
  color: var(--studentato-ink);
  background: #fff;
}

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

.studentato-form label {
  display: block;
  margin-bottom: 16px;
}

.studentato-form label > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.studentato-form input,
.studentato-form select,
.studentato-form textarea {
  width: 100%;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  outline: none;
  background: #f8faff;
  transition: .2s ease;
}

.studentato-form input,
.studentato-form select {
  height: 50px;
  padding: 0 14px;
}

.studentato-form textarea {
  min-height: 110px;
  padding: 13px 14px;
  resize: vertical;
}

.studentato-form input:focus,
.studentato-form select:focus,
.studentato-form textarea:focus {
  border-color: var(--studentato-blue);
  box-shadow: 0 0 0 4px rgba(31,99,255,.10);
}

.studentato-btn-submit {
  width: 100%;
}

/* FOOTER: LOGHI, FINANZIAMENTO E DATI DEL PROGETTO */
.studentato-footer {
	padding: 0 0 28px;
	background: #0f1d35;
	color: #fff;
}
.studentato-footer-logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	gap: 30px;
	padding: 38px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.studentato-footer-logos img {
	display: block;
	width: 100%;
	height: 80px;
	object-fit: contain;
}
.studentato-footer-pnrr { padding: 38px 0 30px; }
.studentato-footer-eyebrow {
	display: block;
	color: #a9c5ff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.7;
	text-transform: uppercase;
}
.studentato-footer h2, .studentato-footer h3 {
	font-family: "Space Grotesk", sans-serif;
	color: #fff;
	line-height: 1.25;
}
.studentato-footer h2 { margin: 12px 0 16px; font-size: clamp(25px, 3vw, 36px); }
.studentato-footer h3 { margin: 12px 0 22px; font-size: clamp(23px, 2.4vw, 29px); }
.studentato-footer h4 { margin: 24px 0 10px; font-size: 14px; }
.studentato-footer p, .studentato-footer address {
	margin: 0;
	color: #d0d8e7;
	font-size: 15px;
	font-style: normal;
	line-height: 1.8;
}
.studentato-footer .studentato-footer-mission { margin-bottom: 5px; color: #fff; font-weight: 700; }
.studentato-footer-project-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 24px;
	margin-bottom: 35px;
}
.studentato-footer-project, .studentato-footer-objective {
	min-width: 0;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 20px;
	background: rgba(255, 255, 255, .04);
}
.studentato-footer .studentato-footer-cup {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 12px 16px;
	border-radius: 10px;
	background: rgba(169, 197, 255, .1);
	color: #fff;
}
.studentato-footer-cup span { font-size: 12px; text-transform: uppercase; }
.studentato-footer-cup strong { font-size: 17px; overflow-wrap: anywhere; }
.studentato-footer-objective h3 strong { display: block; font-size: 64px; color: #a9c5ff; }
.studentato-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.studentato-brand-footer .studentato-brand-text small { color: #c1cbde; }
.studentato-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.studentato-footer-links a { font-size: 13px; color: #d0d8e7; }
.studentato-footer a:focus-visible { outline: 2px solid #a9c5ff; outline-offset: 6px; }
@media (max-width: 767px) {
	.studentato-footer-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: 28px 0; }
	.studentato-footer-logos img { height: 68px; }
	.studentato-footer-project-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.studentato-footer-bottom { flex-direction: column; }
	.studentato-footer-links { justify-content: center; }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
  .studentato-funding-inner {
    padding: 18px 16px;
  }

  .studentato-funding-item {
    padding: 0 16px;
  }

  .studentato-menu {
    display: none;
  }

  .studentato-hero-grid,
  .studentato-community-grid,
  .studentato-cta-box {
    grid-template-columns: 1fr;
  }

  .studentato-hero-visual {
    min-height: 560px;
  }

  .studentato-room-grid {
    grid-template-columns: 1fr 1fr;
  }

  .studentato-room-card-accent {
    grid-column: 1 / -1;
    min-height: 350px;
  }

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

  .studentato-community-grid {
    gap: 55px;
  }

  .studentato-community-badge {
    right: 25px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  html {
    scroll-padding-top: 270px;
  }

  .studentato-funding-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding: 10px 12px;
  }

  .studentato-funding-item {
    min-height: 82px;
    padding: 10px 12px;
  }

  .studentato-funding-item + .studentato-funding-item {
    border-left: 0;
  }

  .studentato-funding-item:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, .8);
  }

  .studentato-funding-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, .8);
  }

  .studentato-funding-item img {
    max-height: 62px;
  }

  .studentato-container {
    width: min(100% - 28px, 1180px);
  }

  .studentato-nav {
    min-height: 70px;
  }

  .studentato-btn-small {
    display: none;
  }

  .studentato-brand-mark {
    width: 42px;
    height: 42px;
  }

  .studentato-hero {
    padding: 58px 0 65px;
  }

  .studentato-hero-grid {
    gap: 45px;
  }

  .studentato-hero-copy h1 {
    font-size: 45px;
  }

  .studentato-hero-copy > p {
    margin-top: 22px;
    font-size: 16px;
  }

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

  .studentato-link {
    justify-content: center;
  }

  .studentato-stats {
    gap: 20px;
    justify-content: space-between;
  }

  .studentato-stats strong {
    font-size: 19px;
  }

  .studentato-stats span {
    font-size: 11px;
  }

  .studentato-hero-visual {
    min-height: 470px;
  }

  .studentato-photo-main {
    inset: 0;
    border-radius: 25px;
  }

  .studentato-photo-label {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .studentato-photo-label strong {
    font-size: 22px;
  }

  .studentato-floating-card {
    display: none;
  }

  .studentato-strip-grid {
    padding: 22px 0;
    grid-template-columns: 1fr 1fr;
    gap: 18px 10px;
  }

  .studentato-strip-grid div {
    justify-content: flex-start;
    font-size: 13px;
  }

  .studentato-section {
    padding: 75px 0;
  }

  .studentato-section-heading {
    margin-bottom: 34px;
    display: block;
  }

  .studentato-section-heading h2,
  .studentato-community-copy h2,
  .studentato-cta h2 {
    font-size: 39px;
  }

  .studentato-section-heading > p {
    margin-top: 18px;
  }

  .studentato-room-grid,
  .studentato-service-grid {
    grid-template-columns: 1fr;
  }

  .studentato-room-card-accent {
    grid-column: auto;
  }

  .studentato-room-image {
    height: 260px;
  }

  .studentato-community-grid {
    gap: 40px;
  }

  .studentato-community-photo {
    min-height: 450px;
    border-radius: 26px;
  }

  .studentato-community-badge {
    right: 18px;
    left: 18px;
    bottom: 18px;
    max-width: none;
  }

  .studentato-cta {
    padding: 70px 0;
  }

  .studentato-cta-box {
    padding: 32px 20px;
    gap: 35px;
    border-radius: 28px;
  }

  .studentato-form {
    padding: 20px;
  }

  .studentato-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .studentato-brand-footer {
    justify-content: center;
  }

  .studentato-footer-links {
    justify-content: center;
  }
}

/* PICCOLI SCHERMI */

@media (max-width: 390px) {
  html {
    scroll-padding-top: 250px;
  }

  .studentato-funding-item {
    min-height: 70px;
    padding: 8px;
  }

  .studentato-funding-item img {
    max-height: 54px;
  }

  .studentato-hero-copy h1 {
    font-size: 39px;
  }

  .studentato-section-heading h2,
  .studentato-community-copy h2,
  .studentato-cta h2 {
    font-size: 34px;
  }

  .studentato-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}


/* STRUTTURE PER STUDENTI */
.sh-residenze {
	padding: clamp(40px, 6vw, 80px) 20px;
	background: #f4f7f9;
	color: #183446;
	font-family: inherit;
}
.sh-residenze, .sh-residenze * { box-sizing: border-box; }
.sh-residenze__container { max-width: 1200px; margin: 0 auto; }
.sh-residenze__intro { text-align: center; margin-bottom: 32px; }
.sh-residenze__eyebrow { color: #386479; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sh-residenze__intro h2 { margin: 12px 0; color: #183446; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; font-weight: 700; }
.sh-residenze__intro p { margin: 0; font-size: 16px; line-height: 1.6; color: #526875; }
.sh-residenze__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.sh-residenza { --sh-accent: #25556b; overflow: hidden; min-width: 0; background: #fff; border: 1px solid #e0e8ec; border-radius: 18px; box-shadow: 0 8px 24px rgba(24, 52, 70, .07); transition: transform .25s ease, box-shadow .25s ease; }
.sh-residenza--marittima { --sh-accent: #146e80; }
.sh-residenza--fellini { --sh-accent: #675382; }
.sh-residenza--felicity { --sh-accent: #95623c; }
.sh-residenza__visual { position: relative; isolation: isolate; display: flex; align-items: center; height: 150px; padding: 24px; overflow: hidden; color: #fff; background: var(--sh-accent); }
.sh-residenza__visual::before, .sh-residenza__visual::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; right: -35px; top: -50px; }
.sh-residenza__visual::after { width: 240px; height: 240px; right: -65px; top: -80px; }
.sh-residenza__visual > span { font-family: Georgia, serif; font-size: 80px; line-height: 1; }
.sh-residenza__visual small { position: absolute; right: 20px; bottom: 20px; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.sh-residenza__body { padding: 24px 20px; }
.sh-residenza__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #526875; line-height: 1.5; }
.sh-residenza h3 { margin: 0 0 22px; color: #183446; font-size: 22px; line-height: 1.3; font-weight: 700; }
.sh-residenza__code { margin: 0; padding: 14px; border-radius: 10px; background: #f1f5f7; }
.sh-residenza__code span { display: block; margin-bottom: 5px; color: #526875; font-size: 12px; line-height: 1.4; }
.sh-residenza__code strong { display: block; color: #183446; font-size: 16px; line-height: 1.4; letter-spacing: .02em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.sh-residenza:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(24,52,70,.13); }
}
@media (max-width: 991px) {
	.sh-residenze__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.sh-residenze { padding: 40px 16px; }
	.sh-residenze__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.sh-residenza__visual { height: 110px; padding: 18px 22px; }
	.sh-residenza__visual > span { font-size: 64px; }
	.sh-residenza__body { padding: 22px; }
	.sh-residenza h3 { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.sh-residenza { transition: none; }
}

/* Colori e caratteri coordinati al sito Studentato Rimini. */
.sh-residenze { background: var(--studentato-soft); color: var(--studentato-ink); }
.sh-residenze__container { max-width: 1180px; }
.sh-residenze__intro h2, .sh-residenza h3 { font-family: "Space Grotesk", sans-serif; color: var(--studentato-ink); }
.sh-residenze__eyebrow { color: var(--studentato-blue-dark); }
.sh-residenza--miro { --sh-accent: #164fd6; }
.sh-residenza--marittima { --sh-accent: #146e80; }
.sh-residenza--fellini { --sh-accent: #675382; }
.sh-residenza--felicity { --sh-accent: #95623c; }

/* Nome completo accanto al monogramma. */
.sh-residenza__name-rest {
	align-self: center;
	margin-left: 3px;
	margin-top: 25px;
	color: #fff;
	font-family: Georgia, serif;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 400;
	line-height: 1;
}
@media (max-width: 575px) {
	.sh-residenza__name-rest { margin-top: 19px; font-size: 23px; }
}

/* TELEFONO NEL BLOCCO CONTATTACI */
.studentato-contact-phone {
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	padding: 30px 16px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 24px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease;
}
.studentato-contact-phone span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.studentato-contact-phone strong {
	color: var(--studentato-lime);
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(25px, 3.2vw, 46px);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}
.studentato-contact-phone small { font-size: 15px; font-weight: 600; }
.studentato-contact-phone:hover { background: rgba(255, 255, 255, .18); border-color: var(--studentato-lime); }
.studentato-contact-phone:focus-visible { outline: 3px solid var(--studentato-lime); outline-offset: 5px; }
@media (max-width: 767px) {
	.studentato-contact-phone { padding: 26px 10px; }
	.studentato-contact-phone strong { font-size: clamp(22px, 6.8vw, 38px); }
}
@media (prefers-reduced-motion: reduce) {
	.studentato-contact-phone { transition: none; }
}

/* RIGHE INFORMATIVE: FINANZIAMENTO E RISULTATI */
.studentato-footer-details {
	margin: 0 0 30px;
	padding: 8px clamp(18px, 3vw, 30px);
	border: 1px solid rgba(169, 197, 255, .22);
	border-radius: 20px;
	background: linear-gradient(120deg, rgba(169, 197, 255, .09), rgba(255, 255, 255, .025));
}
.studentato-footer-detail-row {
	display: grid;
	grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr);
	align-items: start;
	gap: 20px 32px;
	padding: 24px 0;
}
.studentato-footer-detail-row + .studentato-footer-detail-row {
	border-top: 1px solid rgba(169, 197, 255, .16);
}
.studentato-footer-detail-row dt {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}
.studentato-footer-detail-row dt span {
	display: inline-flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(169, 197, 255, .14);
	color: #a9c5ff;
	font-size: 12px;
	font-weight: 700;
}
.studentato-footer-detail-row dd {
	min-width: 0;
	min-height: 42px;
	margin: 0;
	padding: 5px 0 12px;
	border-bottom: 1px solid rgba(169, 197, 255, .45);
	color: #d0d8e7;
	font-size: 15px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}
@media (max-width: 767px) {
	.studentato-footer-detail-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0; }
	.studentato-footer-detail-row dd { min-height: 48px; }
}

/* ITALIA DOMANI: MAGGIORE SPAZIO E LEGGIBILITÀ */
@media (min-width: 768px) {
	.studentato-funding-inner { grid-template-columns: 1.1fr 1.1fr 1.6fr .9fr; }
	.studentato-funding-item:nth-child(3) { padding-left: 12px; padding-right: 12px; }
	.studentato-funding-item .studentato-logo-italiadomani { width: 100%; max-height: 88px; }
	.studentato-footer-logos { grid-template-columns: 1fr 1fr 1.45fr 1fr; gap: 20px; }
	.studentato-footer-logos .studentato-logo-italiadomani { height: 100px; }
}
@media (max-width: 767px) {
	.studentato-funding-item:nth-child(3) { padding-left: 3px; padding-right: 3px; }
	.studentato-funding-item .studentato-logo-italiadomani { width: 100%; max-height: 72px; }
	.studentato-footer-logos { column-gap: 12px; }
	.studentato-footer-logos .studentato-logo-italiadomani { height: 82px; }
}
