/* =========================================================
   STUDIO TECNICO
   DOTT. ING. LUIGI MIGLIARETTI
========================================================= */

/* =========================================================
   RESET
========================================================= */

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

html {
  margin: 0;
  padding: 0;

  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  background: #ffffff;
  color: #3f3f3f;

  font-family: "PT Sans Narrow", Arial, sans-serif;

  font-size: 18px;
  line-height: 1.55;
}

img {
  display: block;

  width: 100%;
  max-width: 100%;
}

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

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

/* =========================================================
   VARIABILI
========================================================= */

:root {
  --charcoal: #252325;

  --charcoal-light: #3a3c41;

  --black: #111111;

  --gold: #b49b61;

  --gold-light: #c5ad72;

  --grey: #808080;

  --grey-light: #f0f0f0;

  --grey-medium: #d3dadd;

  --white: #ffffff;

  --container: 1150px;
}

/* =========================================================
   GENERAL
========================================================= */

.container {
  width: min(var(--container), calc(100% - 60px));

  margin: 0 auto;
}

.section-light {
  background: #f0f0f0;
}

.section-dark {
  background: var(--charcoal);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 7px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.22em;
}

.section-heading {
  display: flex;

  align-items: flex-start;

  gap: 24px;

  margin-bottom: 65px;
}

.section-number {
  margin-top: 8px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 13px;
}

.section-heading h2 {
  margin: 0;

  color: #333333;

  font-family: "Ubuntu", sans-serif;

  font-size: clamp(42px, 5vw, 68px);

  font-weight: 300;

  letter-spacing: -0.035em;

  line-height: 1;
}

.section-heading-light h2 {
  color: #ffffff;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  height: 85px;

  background: rgba(0, 0, 0, 0.96);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  width: min(var(--container), calc(100% - 50px));

  height: 85px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  display: flex;

  align-items: baseline;

  color: white;

  font-family: "Ubuntu", sans-serif;
}

.logo-small {
  margin-right: 2px;

  font-size: 17px;
}

.logo-main {
  color: var(--gold);

  font-size: 21px;

  font-weight: 700;
}

.logo-plus {
  margin: 0 8px;

  color: var(--gold);

  font-size: 20px;
}

.logo-description {
  color: #d8d8d8;

  font-size: 14px;

  font-weight: 300;
}

/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
  display: flex;

  align-items: center;

  gap: 4px;
}

.main-nav a {
  padding: 13px 18px;

  color: #e0e0e0;

  font-family: "Ubuntu", sans-serif;

  font-size: 13px;

  font-weight: 400;

  transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
  background: var(--gold);

  color: white;
}

.menu-toggle,
.hamburger {
  display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;

  align-items: center;

  overflow: hidden;

  background: #222222;
}

.hero-background {
  position: absolute;

  inset: 0;

  background: linear-gradient(
      120deg,
      rgba(20, 20, 20, 0.2),
      rgba(20, 20, 20, 0.4)
    ),
    url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=2000&q=85")
      center center / cover no-repeat;

  animation: heroZoom 15s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-content {
  position: relative;

  z-index: 2;

  width: min(var(--container), calc(100% - 60px));

  margin: 85px auto 0;
}

.hero-eyebrow {
  margin: 0 0 22px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 13px;

  font-weight: 500;

  letter-spacing: 0.34em;
}

.hero h1 {
  max-width: 850px;

  margin: 0;

  color: white;

  font-family: "Ubuntu", sans-serif;

  font-size: clamp(55px, 7vw, 94px);

  font-weight: 300;

  letter-spacing: -0.055em;

  line-height: 0.96;
}

.hero h1 strong {
  color: var(--gold);

  font-weight: 500;
}

.hero-line {
  width: 65px;

  height: 2px;

  margin: 30px 0;

  background: var(--gold);
}

.hero-subtitle {
  margin: 0 0 18px;

  color: white;

  font-family: "Ubuntu", sans-serif;

  font-size: 19px;

  font-weight: 300;

  letter-spacing: 0.025em;
}

.hero-description {
  max-width: 620px;

  margin: 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 18px;
}

.hero-buttons {
  display: flex;

  gap: 15px;

  margin-top: 38px;
}

/* =========================================================
   BUTTON
========================================================= */

.button {
  min-width: 170px;

  padding: 13px 22px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 12px;

  font-weight: 500;

  letter-spacing: 0.12em;

  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);

  color: white;
}

.button-gold:hover {
  background: var(--gold-light);
}

.button-outline {
  background: transparent;

  color: white;
}

.button-outline:hover {
  background: var(--gold);
}

/* =========================================================
   SCROLL DOWN
========================================================= */

.scroll-down {
  position: absolute;

  left: 50%;

  bottom: 35px;

  z-index: 3;

  width: 27px;

  height: 47px;

  border: 1px solid rgba(255, 255, 255, 0.5);

  border-radius: 20px;

  transform: translateX(-50%);
}

.scroll-down span {
  position: absolute;

  top: 9px;

  left: 50%;

  width: 3px;

  height: 7px;

  border-radius: 10px;

  background: var(--gold);

  transform: translateX(-50%);

  animation: mouseScroll 1.8s infinite;
}

@keyframes mouseScroll {
  0% {
    opacity: 0;

    transform: translate(-50%, 0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform: translate(-50%, 17px);
  }
}

/* =========================================================
   STUDIO
========================================================= */

.studio {
  padding: 120px 0;
}

.studio-grid {
  display: grid;

  grid-template-columns:
    0.95fr
    1.05fr;

  gap: 90px;
}

.studio-intro h3 {
  margin: 0 0 25px;

  color: #333333;

  font-family: "Ubuntu", sans-serif;

  font-size: 36px;

  font-weight: 300;

  line-height: 1.15;
}

.studio-intro p {
  margin: 0 0 20px;

  color: #555555;

  font-size: 18px;
}

.studio-intro strong {
  color: var(--gold);

  font-weight: 700;
}

.text-link {
  display: inline-flex;

  gap: 15px;

  margin-top: 20px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.text-link span {
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translateX(6px);
}

/* =========================================================
   QUALIFICHE
========================================================= */

.qualifiche {
  padding: 45px;

  background: white;

  border-left: 4px solid var(--gold);

  box-shadow: 0 15px 55px rgba(0, 0, 0, 0.06);
}

.small-title {
  margin: 0 0 25px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.16em;
}

.qualification-list {
  list-style: none;

  margin: 0;

  padding: 0;
}

.qualification-list li {
  position: relative;

  padding: 11px 0 11px 30px;

  border-bottom: 1px solid #eeeeee;

  color: #444444;
}

.qualification-list li:last-child {
  border-bottom: none;
}

.qualification-list li::before {
  content: "✓";

  position: absolute;

  left: 0;

  top: 10px;

  color: var(--gold);

  font-weight: 700;
}

/* =========================================================
   STATEMENT
========================================================= */

.statement {
  padding: 100px 0;

  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=2000&q=85")
      center / cover fixed;

  color: white;
}

.statement p {
  margin: 0 0 15px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 13px;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.statement h2 {
  max-width: 800px;

  margin: 0;

  font-family: "Ubuntu", sans-serif;

  font-size: clamp(42px, 6vw, 70px);

  font-weight: 300;

  letter-spacing: -0.045em;

  line-height: 1;
}

.statement h2 span {
  color: var(--gold);
}

/* =========================================================
   COMPETENZE
========================================================= */

.competenze {
  padding: 120px 0;

  background: #252325;
}

.competence-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1px;

  background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   CARD COMPETENZE CON FOTO
========================================================= */

.competence-card {
  position: relative;

  min-height: 420px;

  padding: 48px;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  isolation: isolate;

  transition: transform 0.4s ease;
}

/* overlay scuro */

.competence-card::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: -2;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.38) 40%,
    rgba(0, 0, 0, 0.88) 100%
  );

  transition: background 0.4s ease;
}

/* leggero effetto oro */

.competence-card::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: -1;

  background: linear-gradient(
    125deg,
    rgba(180, 155, 97, 0.12),
    transparent 42%,
    transparent 100%
  );

  opacity: 0;

  transition: opacity 0.4s ease;
}

.competence-card:hover {
  z-index: 5;

  transform: scale(1.015);
}

.competence-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.32) 40%,
    rgba(0, 0, 0, 0.84) 100%
  );
}

.competence-card:hover::after {
  opacity: 1;
}

.card-number {
  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 12px;

  font-weight: 500;

  letter-spacing: 0.15em;
}

.card-content {
  position: relative;

  z-index: 2;

  max-width: 90%;
}

.competence-card h3 {
  margin: 0 0 22px;

  color: white;

  font-family: "Ubuntu", sans-serif;

  font-size: 35px;

  font-weight: 300;

  line-height: 1.05;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.competence-card ul {
  list-style: none;

  margin: 0;

  padding: 0;
}

.competence-card li {
  position: relative;

  margin: 9px 0;

  padding-left: 25px;

  color: rgba(255, 255, 255, 0.88);

  line-height: 1.4;

  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
}

.competence-card li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--gold);

  font-weight: 700;
}

/* =========================================================
   LE 4 IMMAGINI

   SE VUOI CAMBIARE LE FOTO,
   CAMBIA SOLTANTO GLI URL QUI SOTTO
========================================================= */

/* SICUREZZA */

.safety-card {
  background-image: url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1500&q=85");
}

/* PROGETTAZIONE */

.design-card {
  background-image: url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1500&q=85");
}

/* CONSULENZA TECNICA */

.consulting-card {
  background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1500&q=85");
}

/* ENERGIA E ACUSTICA */

.energy-card {
  background-image: url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1500&q=85");
}

/* =========================================================
   SERVIZI
========================================================= */

.servizi {
  padding: 120px 0;
}

.services-list {
  border-top: 1px solid #cfcfcf;
}

.service-row {
  display: grid;

  grid-template-columns:
    70px
    1fr
    50px;

  gap: 30px;

  align-items: center;

  padding: 32px 0;

  border-bottom: 1px solid #cfcfcf;

  transition: padding 0.25s ease, background 0.25s ease;
}

.service-row:hover {
  padding-left: 20px;

  padding-right: 20px;

  background: white;
}

.service-number {
  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 13px;
}

.service-row h3 {
  margin: 0 0 7px;

  color: #333333;

  font-family: "Ubuntu", sans-serif;

  font-size: 27px;

  font-weight: 300;
}

.service-row p {
  margin: 0;

  color: #777777;
}

.service-arrow {
  color: var(--gold);

  font-size: 30px;

  transition: transform 0.25s ease;
}

.service-row:hover .service-arrow {
  transform: translate(3px, -3px);
}

/* =========================================================
   NUMERI / DATI
========================================================= */

.professional-data {
  padding: 75px 0;

  background: var(--gold);
}

.data-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);
}

.data-grid div {
  padding: 10px 35px;

  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.data-grid div:last-child {
  border-right: none;
}

.data-grid span {
  display: block;

  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.7);

  font-family: "Ubuntu", sans-serif;

  font-size: 11px;

  letter-spacing: 0.16em;
}

.data-grid strong {
  display: block;

  color: white;

  font-family: "Ubuntu", sans-serif;

  font-size: 28px;

  font-weight: 300;
}

/* =========================================================
   CONTATTI
========================================================= */

.contatti {
  padding: 120px 0;
}

.contact-grid {
  display: grid;

  grid-template-columns:
    1.3fr
    0.7fr;

  gap: 100px;
}

.contact-intro {
  max-width: 600px;

  margin: 0 0 40px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 21px;
}

.contact-big-link {
  display: inline-block;

  padding-bottom: 10px;

  border-bottom: 1px solid var(--gold);

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: clamp(22px, 3vw, 37px);

  font-weight: 300;

  word-break: break-word;

  transition: color 0.25s ease;
}

.contact-big-link:hover {
  color: white;
}

.contact-block {
  margin-bottom: 28px;

  padding-bottom: 22px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-block span {
  display: block;

  margin-bottom: 5px;

  color: var(--gold);

  font-family: "Ubuntu", sans-serif;

  font-size: 11px;

  letter-spacing: 0.16em;
}

.contact-block p {
  margin: 0;

  color: rgba(255, 255, 255, 0.75);
}

.contact-block a:hover {
  color: var(--gold);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #121212;

  color: #aaaaaa;
}

.footer-inner {
  min-height: 190px;

  display: grid;

  grid-template-columns:
    1fr
    1.4fr
    1fr;

  gap: 50px;

  align-items: center;
}

.footer-logo {
  color: white;

  font-family: "Ubuntu", sans-serif;
}

.footer-logo span {
  font-size: 17px;
}

.footer-logo strong {
  color: var(--gold);

  font-size: 23px;
}

.footer-logo i {
  color: var(--gold);

  font-size: 21px;

  font-style: normal;
}

.footer-copy p {
  margin: 4px 0;

  font-size: 15px;
}

.footer-contact {
  display: flex;

  flex-direction: column;

  gap: 5px;

  font-size: 15px;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;

  color: #666666;

  font-size: 13px;
}

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

@media (max-width: 900px) {
  .container {
    width: calc(100% - 40px);
  }

  .logo-description {
    display: none;
  }

  /* MENU */

  .hamburger {
    display: flex;

    width: 48px;

    height: 48px;

    flex-direction: column;

    justify-content: center;

    gap: 6px;

    cursor: pointer;
  }

  .hamburger span {
    width: 29px;

    height: 2px;

    margin-left: auto;

    background: white;

    transition: 0.3s;
  }

  .main-nav {
    position: fixed;

    top: 85px;

    right: 0;

    bottom: 0;

    width: min(350px, 100%);

    padding: 40px;

    flex-direction: column;

    align-items: stretch;

    background: #1c1c1c;

    transform: translateX(100%);

    transition: transform 0.35s ease;
  }

  .main-nav a {
    padding: 17px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle:checked ~ .main-nav {
    transform: translateX(0);
  }

  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* STUDIO */

  .studio-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  /* COMPETENZE */

  .competence-card {
    min-height: 390px;

    padding: 38px;
  }

  /* CONTATTI */

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  /* DATI */

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

  .data-grid div {
    margin: 15px 0;
  }

  /* FOOTER */

  .footer-inner {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 45px 0;
  }
}

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

@media (max-width: 650px) {
  body {
    font-size: 17px;
  }

  .container {
    width: calc(100% - 30px);
  }

  .header-inner {
    width: calc(100% - 30px);
  }

  /* HERO */

  .hero-content {
    width: calc(100% - 35px);
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: flex-start;
  }

  /* SEZIONI */

  .studio,
  .competenze,
  .servizi,
  .contatti {
    padding: 80px 0;
  }

  .section-heading {
    margin-bottom: 45px;

    gap: 15px;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  /* STUDIO */

  .studio-intro h3 {
    font-size: 30px;
  }

  .qualifiche {
    padding: 28px;
  }

  /* STATEMENT */

  .statement {
    padding: 80px 0;

    background-attachment: scroll;
  }

  /* COMPETENZE */

  .competence-grid {
    grid-template-columns: 1fr;
  }

  .competence-card {
    min-height: 390px;

    padding: 30px;
  }

  .competence-card h3 {
    font-size: 30px;
  }

  .card-content {
    max-width: 100%;
  }

  /* SERVIZI */

  .service-row {
    grid-template-columns:
      40px
      1fr;

    gap: 15px;
  }

  .service-arrow {
    display: none;
  }

  .service-row h3 {
    font-size: 23px;
  }

  /* DATI */

  .data-grid {
    grid-template-columns: 1fr;
  }

  .data-grid div {
    padding: 20px 10px;

    border-right: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .data-grid div:last-child {
    border-bottom: none;
  }

  /* CONTACT */

  .contact-big-link {
    font-size: 22px;
  }

  /* FOOTER */

  .footer-inner {
    text-align: center;
  }
}

/* =========================================================
   TELEFONI PICCOLI
========================================================= */

@media (max-width: 400px) {
  .hero h1 {
    font-size: 43px;
  }

  .logo-small {
    font-size: 15px;
  }

  .logo-main {
    font-size: 19px;
  }

  .competence-card {
    min-height: 380px;
  }
}
