/* =====================================================================
   ORINGONE - Home (hero, blocchi, footer "Think Big")
   Estratto dagli stili originali del sito Next.js.
   Caricato SOLO sulla front page (vedi core/wordpress/assets.php).
   ===================================================================== */

/* ------------------------------ tokens ------------------------------ */
:root {
  --blue: #0d47a1;
  --dark: #263238;
  --cyan: #1fdbdc;
  --grey: #636569;
  --red: #d31f26;
  --white: #ffffff;
  --black: #000000;

  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --dur: 0.5s;
  --transition: all var(--dur) var(--ease);
}

/* ------------------------------ base -------------------------------- */
body {
  color: var(--black);
  line-height: 1.6;
  font-size: 0.9375rem;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-style: normal;
}
@media (min-width: 992px) {
  body {
    line-height: 2;
    font-size: 1.25rem;
  }
}
a {
  color: inherit;
}
main {
  /* leave room at the bottom so the fixed footer is revealed */
  margin-bottom: 100vh;
}
main .page--wrap,
.page--wrap {
  width: 100%;
  overflow: hidden;
}

/* --------------------------- typography ----------------------------- */
.h1, .h2, .h3, .h4, .h5, .h6,
dl, h1, h2, h3, h4, h5, h6, ol, ul {
  margin: 0;
  padding: 0;
}
.h1, h1 { line-height: 1.3; font-size: 2.5rem; }
@media (min-width: 992px) { .h1, h1 { font-size: 3.75rem; } }

.h2, h2 { line-height: 1.4; font-size: 1.875rem; }
@media (min-width: 992px) { .h2, h2 { font-size: 2.5rem; } }

.h3, h3 { line-height: 1.3; font-size: 1.9375rem; }
@media (min-width: 992px) { .h3, h3 { font-size: 2.4375rem; } }

.h4, h4 { line-height: 1.2; font-size: 1.25rem; }
@media (min-width: 992px) { .h4, h4 { line-height: 1.3; font-size: 1.875rem; } }

li { margin-bottom: 0; }

.text--xs { font-size: 0.75rem; line-height: 1.25; font-weight: 500; }
.text--s  { font-size: 1.25rem; line-height: 1.75; }
.text--m  { line-height: 1.6; font-size: 1.5625rem; }
@media (min-width: 992px) { .text--m { font-size: 1.875rem; } }
.text--l  { line-height: 1.4; font-size: 1.5625rem; }
@media (min-width: 992px) { .text--l { font-size: 2.5rem; } }

.heading--xl { line-height: 1.25; font-size: 2.5rem; }
@media (min-width: 768px) { .heading--xl { font-size: 3.75rem; } }
@media (min-width: 992px) { .heading--xl { font-size: 5rem; } }

.heading--xxl { line-height: 1; font-size: 3.125rem; }
@media (min-width: 768px) { .heading--xxl { font-size: 5rem; } }
@media (min-width: 992px) { .heading--xxl { font-size: 6.25rem; } }

.text--justify { text-align: justify; }
.font--medium  { font-weight: 500; }
.font--semibold { font-weight: 600; }
.underline, .underline:hover, .underline:focus, .underline:active { text-decoration: underline !important; }
.no-underline, .no-underline:hover, .no-underline:focus, .no-underline:active { text-decoration: none; }

/* -------------------------- stroked text ---------------------------- */
/* The solid copy lives in ::before. Adding .show collapses its height,
   wiping the fill and revealing the outline underneath.               */
.text--stroked {
  display: inline-block;
  position: relative;
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 700;
  color: transparent;
}
@media (min-width: 768px) { .text--stroked { font-size: 3.75rem; } }
@media (min-width: 992px) { .text--stroked { font-size: 6.25rem; } }

.palette-light .text--stroked,
.text--stroked.stroke--blue {
  -webkit-text-stroke: 0.0625rem var(--blue);
}
@media (min-width: 992px) {
  .palette-light .text--stroked,
  .text--stroked.stroke--blue { -webkit-text-stroke: 0.125rem var(--blue); }
}
.palette-light .text--stroked:before,
.text--stroked.stroke--blue:before { color: var(--blue); }

.palette-dark .text--stroked,
.text--stroked.stroke--white { -webkit-text-stroke: 0.0625rem #fff; }
@media (min-width: 992px) {
  .palette-dark .text--stroked,
  .text--stroked.stroke--white { -webkit-text-stroke: 0.125rem #fff; }
}
.palette-dark .text--stroked:before,
.text--stroked.stroke--white:before { color: #fff; }

.text--stroked:before {
  content: attr(data-text);
  height: 100%;
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  transition: height 1.5s ease-out 0.5s;
  white-space: pre-line;
}
.text--stroked.show:before { height: 0; }

/* ------------------------- buttons & CTA ---------------------------- */
.btn {
  text-transform: uppercase;
  font-size: 0.75rem;
  line-height: 1.5;
  outline: none;
  -webkit-appearance: none;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
  text-decoration: none;
  padding: 0.9375rem 1.875rem;
  margin: 0;
  color: #fff;
}
.btn:active, .btn:focus, .btn:hover { font-style: normal; }
.btn:active .icon, .btn:focus .icon, .btn:hover .icon { transform: translateX(-5px); }
.btn .icon { transition: var(--transition); display: inline-block; width: 1.5rem; height: 1.5rem; }
.btn--round {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  border: 0.125rem solid #fff;
  text-decoration: none;
}
.btn--round:active, .btn--round:focus, .btn--round:hover { text-decoration: none !important; }

.textbtn {
  background: none;
  text-decoration: none;
  border: none;
  height: auto;
  width: auto;
  padding: 0;
}



/* --------------------------- helpers -------------------------------- */
.svg-wrapper {
  width: 100%;
  display: block;
  height: auto;
  position: relative;
  padding-top: 100%;
  transition: var(--transition);
}
.svg-wrapper svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  vertical-align: top;
}
.list-unstyled, .list-unstyle { list-style: none; }

/* scroll reveal: spostate in assets/css/style.css (globali, tutte le pagine) */

/* ------------------------- custom cursor ---------------------------- */

/* ======================= HOME / HERO / BLOCKS / FOOTER ================= */
/* =====================================================================
   HERO / PAGEHEADER  (fixed behind the blocks, gives the parallax)
   ===================================================================== */
.pageheader {
  height: 120vh;
  width: 100vw;
  position: fixed;
  z-index: 1;
  background: var(--blue);
  opacity: 1;
}
.pageheader.page-is-scrolled { z-index: -1; opacity: 0; }
/* search attiva: porta l'hero sopra l'header/menù (nasconde il menù dietro) */
.pageheader.search-is-active { z-index: 500; opacity: 1; }
@media (min-width: 992px) { .pageheader { height: 100vh; } }

.pageheader-content--wrapper {
  height: 100%;
  position: relative;
  margin-top: 10.625rem;
  color: #fff;
}
@media (min-width: 992px) {
  .pageheader-content--wrapper {
    margin-top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
  }
}
.oringone--title .svg-wrapper { padding-top: 14%; }
.post-content { line-height: 2; text-align: justify; }
@media (min-width: 992px) { .post-content { margin-bottom: 1.5625rem; } }

.pageheader-search--wrapper {
  position: fixed;
  bottom: 3.75rem;
  width: 100%;
  z-index: 999999;
}
@media (min-width: 992px) { .pageheader-search--wrapper { bottom: 1.875rem; } }

/* hero search form */
.algolia-search-form {
  display: grid;
  grid-template-columns: 1fr 2.1875rem;
  border-bottom: 0.125rem solid #fff;
}
.algolia-search-form input { border-radius: 0 !important; }
#algolia_search, .menu-search--modal input[type="search"] {
  line-height: 1.25;
  font-size: 2.5rem;
  background: transparent;
  border: none;
  color: inherit;
  width: 100%;
  outline: none;
}
@media (min-width: 992px) {
  #algolia_search, .menu-search--modal input[type="search"] { font-size: 5rem; }
}
.hits-wrapper { height: 0; overflow: hidden; }
.help-search-label { transition: var(--transition); }

/* the blue hero reserves 100vh before the blocks start */
.pageheader--alt ~ .blocks { padding-top: 120vh; }
@media (min-width: 992px) { .pageheader--alt ~ .blocks { padding-top: 100vh; } }
.pageheader--alt ~ .blocks > .block:first-child { margin-top: 0; padding-top: 3.75rem; }
@media (min-width: 992px) { .pageheader--alt ~ .blocks > .block:first-child { padding-top: 5.625rem; } }

/* =====================================================================
   BLOCKS (stacked, pinned by ScrollTrigger)
   ===================================================================== */
.block { position: relative; z-index: 2; }
.block:first-child { padding-top: 3.75rem; }
@media (min-width: 992px) { .block:first-child { padding-top: 7.5rem; } }

.block.spacing-top--none { padding-top: 0; }
.block.spacing-top--small { padding-top: 1.875rem; }
@media (min-width: 992px) { .block.spacing-top--small { padding-top: 3.75rem; } }
.block.spacing-top--regular { padding-top: 3.75rem; }
@media (min-width: 992px) { .block.spacing-top--regular { padding-top: 5rem; } }
.block.spacing-top--large { padding-top: 5rem; }
@media (min-width: 992px) { .block.spacing-top--large { padding-top: 7.5rem; } }

.block.spacing-bottom--none { padding-bottom: 0; }
.block.spacing-bottom--small { padding-bottom: 1.875rem; }
@media (min-width: 992px) { .block.spacing-bottom--small { padding-bottom: 3.75rem; } }
.block.spacing-bottom--regular { padding-bottom: 3.75rem; }
@media (min-width: 992px) { .block.spacing-bottom--regular { padding-bottom: 5rem; } }
.block.spacing-bottom--large { padding-bottom: 5rem; }
@media (min-width: 992px) { .block.spacing-bottom--large { padding-bottom: 7.5rem; } }

.block:last-child { padding-bottom: 9.375rem; }
@media (min-width: 992px) { .block:last-child { padding-bottom: 12.5rem; } }

.block.palette-dark { background: var(--blue); color: #fff; }
.block.palette-dark mark { background: #fff; color: var(--blue); }
.block.palette-light { background: #fff; color: var(--blue); }

.introBlock {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.introBlock-content { text-align: justify; }
.introBlock-content p { max-width: 42.5rem; }

/* content rendered from Sanity (CMS) */
.sanity p { margin: 0 0 1.25rem; }
.sanity > :last-child { margin-bottom: 0; }

/* =====================================================================
   FOOTER (fixed, revealed as main scrolls away)
   ===================================================================== */
#footer, .footer-inside { width: 100%; height: 100%; top: 0; left: 0; }
#footer {
  position: fixed;
  height: 100vh;
  background: var(--blue);
  color: #fff;
  z-index: 0;
}
#footer a { color: #fff; }
.footer-inside {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-thinkbig {
  display: grid;
  grid-auto-flow: row;
  grid-gap: 0.9375rem;
  align-items: center;
  justify-items: center;
}
.footer-privacy { position: absolute; bottom: 0; left: 0; }
.separator { border-top: 0.0625rem solid #fff; }
.sealcore { width: 3.4375rem; }
.sealcore .svg-wrapper { padding-top: 34%; }
.footer-info--column {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 30px;
  justify-content: flex-start;
}

/* --------------------------- reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition-duration: 0.001s !important; animation-duration: 0.001s !important; }
}

/* ---------------------------- hero search ---------------------------- */
#algolia_search::placeholder { color: #fff; opacity: 1; }
#algolia_search::-webkit-search-cancel-button { -webkit-appearance: none; }
.close-icon--button { background: transparent; border: none; padding: 0; cursor: pointer; display: flex; justify-content: flex-end; align-items: center; }
.close-icon--button[hidden] { display: none; }
.close-icon { display: block; width: 0.9375rem; height: 0.9375rem; }
.close-icon .svg-wrapper { padding-top: 100%; }
.algolia-results { background: #0d47a1; color: #fff; margin-top: 0.9375rem; overflow-x: hidden; overflow-y: auto; max-height: 75vh; }
.algolia-results .hit { list-style: none; margin-bottom: 0.9375rem; padding-bottom: 0.9375rem; border-bottom: 2px solid #fff; }
.algolia-results .hit:last-child { border: none; }
.algolia-results .hit a { text-decoration: none; color: #fff; display: block; transition: var(--transition); }
.algolia-results .hit a:hover { color: #d31f26; }
.algolia-results .hit h6 { margin-bottom: 0.625rem; }
.algolia-results .hit p { font-size: 0.875rem; line-height: 1.2; margin: 0; }
