/**
 * Copyright (c) 2025 Massimo Ghisalberti
 *
 * This software is released under the MIT License.
 * https://opensource.org/licenses/MIT
 */

@font-face {
  font-family: "Arsenal";
  font-stretch: 100%;
  font-style: "normal";
  font-weight: 400;
  src: url("../fonts/Arsenal-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Arsenal-Bold";
  font-stretch: 100%;
  font-style: "normal";
  font-weight: 700;
  src: url("../fonts/Arsenal-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Arsenal-BoldItalic";
  font-stretch: 100%;
  font-style: "italic";
  font-weight: 700;
  src: url("../fonts/Arsenal-BoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Arsenal-Italic";
  font-stretch: 100%;
  font-style: "normal";
  font-weight: 400;
  src: url("../fonts/ArsenalSC-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "ArsenalSC";
  font-stretch: 100%;
  font-style: "normal";
  font-weight: 400;
  src: url("../fonts/ArsenalSC-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "ArsenalSC-Bold";
  font-stretch: 100%;
  font-style: "normal";
  font-weight: 700;
  src: url("../fonts/ArsenalSC-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "ArsenalSC-BoldItalic";
  font-stretch: 100%;
  font-style: "italic";
  font-weight: 700;
  src: url("../fonts/ArsenalSC-BoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "ArsenalSC-Italic";
  font-stretch: 100%;
  font-style: "normal";
  font-weight: 400;
  src: url("../fonts/Arsenal-Italic.woff2") format("woff2");
}

:root {
  --menu-height-pad: 15em;
  --color-blue: #0e2141;
  --color-gray: #6f6f6e;
  --color-introduce: var(--color-gray);
  --color-introduce-about: #72b7ab;

  --color-fg: #111111;
  --color-fg2: var(--color-gray);
  --color-fg-inverted: #ffffff;
  --color-bg-band1: #ffffff;
  --color-bg-band2: #d6e7e4;
  --color-bg-band3: #ededed;
  --color-bg-band4: #555454;
  --color-bg-band5: #1d1d1b;
  --color-bg-band6: #313130;
}

body {
  font-family: Arsenal, Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--color-fg2);
  width: 100%;
}

.footer-1,
.footer-2 {
  span {
    &:after {
      content: " - ";
    }

    &:last-child:after {
      content: "";
    }

    &:first-child {
      text-transform: uppercase;
    }
  }
}

.footer-1 {
  background-color: var(--color-bg-band5);
  color: var(--color-fg-inverted);
  padding: 5rem 10rem 5rem 10rem;

  span {
    font-size: 2rem;
  }
}

.footer-2 {
  background-color: var(--color-bg-band6);
  color: var(--color-fg-inverted);
  padding: 2rem 10rem 2rem 10rem;

  span {
    font-size: 1.4rem;
  }
}

.container.is-fluid.is-full {
  padding-top: 0rem;
  padding-left: 0rem;
  padding-right: 0rem;
  width: 100%;
}

.is-full {
  padding-top: 0rem;
  padding-left: 0rem;
  padding-right: 0rem;
  width: 100vw;
  max-width: 100vw;
}

.container.is-fluid.is-internal {
  padding-top: 6rem;
  padding-left: 4%;
  padding-right: 4%;
  width: 90%;
  margin-top: 4rem;
}

.is-align-content-left {
  text-align: left !important;

  * {
    text-align: left !important;
  }
}

.is-1div3 {
  max-width: 33%;
}

.is-200x200 {
  width: 200px !important;
  height: 200px !important;
}

.is-align-content-bottom {
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: baseline !important;

  * {
    flex-grow: 0;
    align-items: baseline !important;
  }
}

.is-internal-body {
  margin-top: 3rem;
  padding: 0rem 0rem 6rem 0rem;
  width: 100%;
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  grid-template-columns: 50% 50%;

  &.three-cells {
    grid-template-columns: 20% 40% 25%;
  }

  &.left-body {
    grid-template-columns: 70% 30%;
  }

  &.right-body {
    grid-template-columns: 30% 70%;
  }

  &.full-body {
    grid-template-columns: 100%;
  }

  &.left-bg-50 {
    background-image: url(../media/img/logo-bg.svg);
    background-repeat: no-repeat;
  }

  ul {
    list-style-type: decimal;
    list-style-position: inside;
  }

  strong {
    color: #6f6f6e !important;
    font-family: "Arsenal-Bold";
  }

  p {
    margin-top: 2rem;
    color: var(--color-fg2);

    &:has(+ ul) {
      margin-bottom: 1rem;
    }

    &:first-child {
      margin-top: 0rem;
    }
  }
}

.hero {
  margin-top: -2em;
}

.hero-image {
  position: relative;
  /*top: calc(var(--menu-height-pad) * -1 - 1.5rem);
  margin-bottom: calc(var(--menu-height-pad) * -1);*/
  filter: brightness(70%);
}

.hero-logo__ {
  height: 10rem;
  width: 10rem;

  img {
    height: 10rem;
    width: 10rem;
  }
}

.hero-head {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-flow: row;
  width: 100vw;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 0rem 0rem 0rem;
}

.hero-logo {
  width: 20vw;
  /*top: 8vh;*/
  left: 8vw;
  position: relative;
  z-index: 5;
}

.navbar-menu {
  /*margin-top: 6.5em;*/
  /*margin-top: 11.6vh;*/
  margin-right: 6rem;
  height: 3rem;
  width: 100%;

  a {
    font-family: "Arsenal-Bold";
    font-size: 1.4rem;
    color: white;
    margin-right: 1.5rem;

    &:hover {
      background-color: var(--color-blue);
    }
  }
}

.introduce {
  font-size: 1.5rem;
  font-family: "ArsenalSC-Bold";
  letter-spacing: 0.5rem;
  color: var(--color-introduce);

  &.about {
    color: var(--color-introduce-about);
  }

  margin-bottom: 2rem;

  &.pad-more {
    margin-top: 6rem;
  }
}

.title-left {
  font-family: "Arsenal";
  font-weight: 400 !important;
  font-size: 4.5rem;
  letter-spacing: 0.2rem;
  color: var(--color-gray);
}

.title-right {
  font-family: "Arsenal-Bold";
  font-weight: 700 !important;
  font-size: 4.5rem;
  letter-spacing: 0.2rem;
  color: var(--color-introduce);

  &.monochrome {
    color: var(--color-gray) !important;
  }
}

.is-pulled-left {
  img {
    padding: 0rem 1rem 0rem 0rem;
  }
}

.is-pulled-right {
  img {
    padding: 0rem 0rem 0rem 1rem;
  }
}

figure.image {
  img {
    width: 100%;
  }

  img.logo-sae {
    width: 15.6rem;
  }

  figcaption {
    text-align: center;
    width: 100%;
    font-family: Arsenal;
    font-size: 1.2rem;
  }
}

.contact-refs {
  margin-top: -18rem;

  &:last-child {
    padding-top: 0.5rem;
  }

  figure {
    margin-bottom: 1.8rem;
    display: flex;
    width: 100%;
    align-items: center;

    figcaption {
      margin-left: 1rem;
      white-space: nowrap;
      font-family: Arsenal;
      font-size: 2rem;

      a {
        color: var(--color-fg-inverted);
      }
    }
  }
}

.stefano_taddei,
.procedure_concorsuali,
.danni_avarie_veicoli,
.ricostruzione_sinistri,
.servizi_industria,
.contatti {}

.stefano_taddei,
.procedure_concorsuali,
.danni_avarie_veicoli {
  background-color: var(--color-bg-band1);
}

.ricostruzione_sinistri {
  background-color: var(--color-bg-band2);
}

.servizi_industria {
  background-color: var(--color-bg-band3);
}

.contatti {
  margin-top: -4rem;
  background-color: var(--color-bg-band4);

  p,
  figcaption,
  .title-left {
    color: var(--color-fg-inverted);
  }
}

/**********/

.navbar-burger {
  width: 100%;
  box-shadow: 0 0.1rem 0.3rem rgb(146 161 176 / 15%);
}

.navbar-burger-slide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  width: 100vw;
}

.navbar {
  background-color: transparent;

  .menu-items {
    transition: transform 0.5s ease-in-out;
    /*background-color: var(--color-bg-band5);*/
    background-image: linear-gradient(to left, var(--color-bg-band5), transparent);
    opacity: 0.8;
    position: relative;
    transform: translate(150%);
    top: -1.5rem;
    padding-top: 2rem !important;
    text-align: right;
    padding-right: 4rem;

    li {
      padding-bottom: 0.2rem;
      font-size: 1.4rem;
      font-weight: 500;

      &:last-child {
        padding-bottom: 3rem !important;
      }
    }
  }

  .navbar-burger-slide {
    display: block;
    position: relative;
    height: 4rem;

    a {
      text-decoration: none;
      color: var(--color-fg-inverted);
      font-family: ArsenalSC;
      font-weight: 600;
      font-size: 2rem;
      padding: 0.7rem;
    }

    a:hover {
      font-weight: bolder;
    }

    li {
      list-style: none;
    }

    .checkbox {
      position: absolute;
      display: block;
      height: 2rem;
      width: 2rem;
      top: 1.2rem;
      /*left: 1.2rem;*/
      right: 1.2rem;
      z-index: 5;
      opacity: 0;
      cursor: pointer;
    }

    .hamburger-lines {
      position: absolute;
      display: block;
      height: 1.6rem;
      width: 2rem;
      top: 1.2rem;
      /*left: 1.2rem;*/
      right: 1.2rem;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .line {
        display: block;
        height: 0.25rem;
        width: 100%;
        border-radius: 0.8rem;
        background: var(--color-fg-inverted);
      }

      .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
      }

      .line2 {
        transition: transform 0.2s ease-in-out;
      }

      .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
      }
    }

    input[type="checkbox"]:checked~.menu-items {
      transform: translateX(0);
    }

    input[type="checkbox"]:checked~.hamburger-lines .line1 {
      transform: rotate(45deg);
    }

    input[type="checkbox"]:checked~.hamburger-lines .line2 {
      transform: scaleY(0);
    }

    input[type="checkbox"]:checked~.hamburger-lines .line3 {
      transform: rotate(-45deg);
    }
  }
}

.navbar-burger-container {
  /*display: none;*/
  position: absolute;
  top: 2em;
  display: none;
  overflow: hidden;
}

.navbar-menu {
  /*display: block;*/
}

#email_info_small,
#phone_info_small {
  display: none;
}

@media screen and (max-width: 1342px) {
  .navbar-burger-container {
    display: block;
    position: absolute;
    top: 2em;
    height: 12rem;
  }

  .navbar-menu {
    display: none;
  }
}

@media screen and (max-width: 1279px) {

  #email_info_small,
  #phone_info_small {
    display: flex;
  }

  #email_info_big,
  #phone_info_big {
    display: none;
  }

  .contatti {
    margin-top: 0rem;
  }

  .menu-items {
    padding-left: 0rem !important;
    padding-top: 0rem !important;

    li {
      margin-bottom: 0rem !important;

      a {
        font-size: 1.2rem !important;
      }
    }
  }

  .stefano_taddei.container.is-fluid.is-internal {
    margin-top: 4rem;
  }

  .introduce {
    font-size: 1.5rem;
    margin-top: 1rem !important;

    &.pad-more {
      margin-top: 1rem !important;
    }
  }

  .title-left,
  .title-right {
    font-size: 2.5rem;
  }

  p,
  ul {
    font-size: 1.1rem !important;
    margin-top: 1rem !important;
  }

  .container.is-fluid.is-internal {
    padding-left: 2%;
    padding-right: 2%;
    width: 96%;
    margin-top: 1rem;
    padding-top: 0.5rem;
  }

  .is-internal-body {
    display: block;
    padding-bottom: 0rem;
  }

  .contact-refs {
    margin-top: 1rem;
    padding-bottom: 1rem;
  }

  figure.image {
    margin-top: 1rem;

    figcaption {
      font-size: 1.2rem;
    }
  }

  .footer-1 {
    padding: 1rem 2rem 1rem 2rem;
    margin-top: 0rem;

    span {
      display: block;
      font-size: 1.1rem;

      &::after {
        content: "";
      }
    }
  }

  .footer-2 {
    padding: 1rem 2rem 1rem 2rem;

    span {
      font-size: 1.1rem;
    }
  }

  .cell:has(figure) {
    figure:has(img[src*="logo-sae"]) {
      float: none !important;
      display: inline-block;
    }

    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 374px) {
  .contact-refs {
    figure::last-child {
      padding-bottom: 4rem;
    }

    figcaption {
      font-size: 0.9rem !important;
    }
  }
}

@media screen and (min-width: 1280px) and (max-width: 1919px) {

  #email_info_small,
  #phone_info_small {
    display: flex;
  }

  #email_info_big,
  #phone_info_big {
    display: none;
  }

  .is-internal-body {
    &.three-cells {
      grid-template-columns: 40% 0% 50%;
    }
  }
}

.hero-logo-compact {
  display: none;
}

@media screen and (max-width: 430px) {

  .hero-logo {
    display: none;
  }

  .hero-logo-compact {
    display: block !important;
    position: absolute;
    width: 54vw;
    top: 30vh;
    left: calc(100vw - 54vw - 23vw);
    z-index: 10;
  }

  .hero-image {
    overflow: hidden;

    img {
      margin-top: 1rem;
      top: 0rem;
      min-width: unset !important;
      max-width: unset !important;
      width: unset !important;
      height: 100vh !important;
    }
  }
}
