@charset "UTF-8";
/*
Theme Name: Square_theme v 0.1
Theme URI:
Author: Square Marketing
Author URI:
Description: Starter Theme with a standalone custom CSS system (no framework)
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: sq

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@layer reset, tokens, base, layout, components, utilities;

/* Font
-------------------------------------------------------- */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Reset
-------------------------------------------------------- */

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  * {
    margin: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

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

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    overflow-wrap: break-word;
  }
}

/* Token
-------------------------------------------------------- */

@layer tokens {
  :root {
    --blue: #0b4e81;
    --dark-blue: #202754;
    --black: #10142a;
    --accent: #e9571a;
    --light-blue: #cedce6;
    --white: #fff;

    --video-bg: #fcfcfc;

    --font-brand: "Nunito", system-ui, sans-serif;
    --font-info: "Nunito Sans", system-ui, sans-serif;

    --fs-display: clamp(3.25rem, 1rem + 7vw, 8rem);
    --fs-headline: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
    --fs-title: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
    --fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
    --fs-body: 1rem;
    --fs-ui: 0.875rem;
    --fs-legal: 0.6875rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --gutter: clamp(1.25rem, 5vw, 6rem);

    --measure: 65ch;
  }
}

/* Base
-------------------------------------------------------- */

@layer base {
  body {
    min-height: 100vh;
    background-color: var(--white);
    color: var(--dark-blue);
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
}

/* Layout
-------------------------------------------------------- */

@layer layout {
  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap, var(--space-5));
  }

  /* homepage segnaposto: contenuto centrato a tutto schermo */
  .placeholder {
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: var(--space-6) var(--gutter);
    text-align: center;
  }

  .placeholder .logo {
    align-self: center;
  }

  .split {
    position: relative;
    display: grid;
    min-height: 100svh;
    background-color: var(--video-bg);
  }

  .split__media {
    display: flex;
    justify-content: center;
  }

  .split__media video {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 30%;
  }

  .split__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
    padding: var(--space-6) var(--gutter) var(--space-7);
  }

  .split__content > .stack {
    align-self: center;
    max-width: var(--measure);
  }

  .logo {
    justify-self: center;
    padding-block: var(--space-5);
    color: var(--blue);
  }

  @media (min-width: 48em) {
    .split {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto 1fr;
      grid-template-areas:
        "media logo"
        "media content";
    }

    .split::before {
      content: "";
      grid-column: 2;
      grid-row: 1 / 3;
      background-color: var(--blue);
    }

    .split__media {
      grid-area: media;
      justify-content: flex-start;
      position: sticky;
      top: 0;
      height: 100svh;
    }

    .split__media video {
      width: 100%;
      height: 100svh;
      aspect-ratio: auto;
      object-fit: contain;
    }

    .logo {
      grid-area: logo;
      justify-self: start;
      padding: var(--space-6) 0 0 var(--gutter);
      color: var(--white);
    }

    .split__content {
      grid-area: content;
      display: grid;
      grid-template-columns: minmax(0, var(--measure));
      grid-template-rows: 1fr auto;
      justify-content: center;
      padding-block: 0 var(--space-8);
      background-color: var(--blue);
      color: var(--white);
    }

    .legal {
      color: var(--light-blue);
    }
  }
}

/* Componenti
-------------------------------------------------------- */

@layer components {
  .logo {
    display: inline-block;
    width: clamp(160px, 14vw, 220px);
    text-decoration: none;
  }

  .logo img {
    width: 100%;
  }

  .logo__placeholder {
    font-size: var(--fs-title);
    font-weight: 700;
  }

  .display {
    font-size: var(--fs-display);
    line-height: 1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .lead {
    font-size: var(--fs-lead);
    text-wrap: pretty;
  }

  .legal {
    max-width: var(--measure);
    font-family: var(--font-info);
    font-size: var(--fs-legal);
    line-height: 1.45;
    letter-spacing: 0.015em;
  }

  .accent-dot {
    color: var(--accent);
  }

  /* "i" senza puntino (ı, U+0131) + puntino arancio disegnato a parte,
     per colorare solo il puntino e non tutta la lettera */
  .i-dot {
    position: relative;
    display: inline;
  }

  .i-dot::before {
    content: "";
    position: absolute;
    top: 0.22em;
    left: 50%;
    width: 0.16em;
    height: 0.16em;
    border-radius: 50%;
    background-color: var(--accent);
    transform: translateX(-50%);
  }
}

/* Utility
-------------------------------------------------------- */

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