/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
:root {
  /* Palette edizione 2026/27 - "Salute Circolare" (azzurro) */
  --color-skyTop: #eaf7fd;
  --color-skyBottom: #b9e3f6;
  --color-navy: #2a357c;
  --color-blue: #2f6394;
  --color-red: #e30613;
  /* alias retrocompatibili */
  --color-dGreen: var(--color-navy);
  --color-lGreen: var(--color-skyTop);
}

html {
  color: #222;
  background-color: #fff;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Gotham', sans-serif;
  box-sizing: border-box;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--color-lGreen);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border: 2px solid var(--color-lGreen);
  border-radius: 10px;
}

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
  background: #222;
} */

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

body.locked {
  position: relative;
  overflow: hidden;
}

.main-container {
  margin: 0 auto;
}

/* ===== Hero (sezione superiore, cielo azzurro) ===== */
.upper-section {
  background: transparent;
  width: 100%;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
  z-index: 10;
}

.hero-graphic {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4%;
  box-sizing: border-box;
  pointer-events: none;
}

.top-logo-wrapper, 
.hero-text-block {
  pointer-events: auto;
  margin-top: -15px;
}

.top-logo-wrapper {
  margin-bottom: 3%;
}

.top-logo {
  width: clamp(110px, 16vw, 190px);
  height: auto;
  display: block;
}

.hero-text-block {
  text-align: center;
  padding: 0 5%;
  font-family: 'Londrina Solid', sans-serif;
  isolation: isolate; 
  width: 100%;
  max-width: clamp(320px, 75vw, 1100px); 
  margin: 0 auto;
  box-sizing: border-box;
}

.main-title-img {
  width: 100%;
  max-width: clamp(240px, 42vw, 900px);
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: clamp(5px, 1.5vw, 20px); 
}

.sub-title {
  color: var(--color-navy);
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Londrina Solid', sans-serif;
  font-size: clamp(22px, 2.2vw, 46px);
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== Footer (copia del sito live www.coopperlascuola.it) ===== */
.main-footer {
  color: #fff;
  width: 100%;
  background-color: #e20512; /* red-26 */
  position: relative;
  z-index: 5;
  padding-bottom: 60px;
  padding-top: 0;
  font-family: 'Gotham', sans-serif;
}

.footer-magma-layer {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -120px;
  margin-bottom: 40px; 
  position: relative;
  z-index: 4;
}

.footer-content-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  gap: 40px;
  position: relative;
  z-index: 6;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 180px;
}

.main-footer .footer-logo {
  width: 200px;
  height: auto;
  display: block;
}

.main-footer .footer-copy {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: flex-start;
  gap: 170px;
  flex: 1;
}

.footer-links-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links-col li {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

.main-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.main-footer a:hover {
  text-decoration-color: #fff;
}

.footer-social-col {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
}

.footer-social-col a {
  text-decoration: none;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.footer-social-col a img,
.footer-social-col svg.icon-x {
  width: 16px;
  height: 16px;
  display: block;
  fill: #fff;
}

.footer-social-col a:hover {
  transform: scale(0.95);
  opacity: 0.9;
}

.btn {
  padding: 10px 20px;
  border-radius: 15px;
  color: #fff;
  display: block;
  font-weight: bold;
  text-decoration: none;
  background-color: var(--color-red);
}

.hidden,
[hidden] {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

@media screen and (max-width: 768px) {
  .hero-overlay-content {
    padding-top: 1%;
  }

  .footer-content-row {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  
  .footer-links-row {
    flex-direction: column !important;
    align-items: center;
    gap: 25px;
    width: 100%;
  }
  
  .footer-social-col {
    margin-left: 0;
    justify-content: center;
  }

  .sub-title {
    white-space: normal; 
    font-size: clamp(16px, 4vw, 24px); 
  }
}