/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwkT9nA2.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwAT9nA2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwgT9nA2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwcT9nA2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwsT9nA2.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwoT9nA2.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwQT9g.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvmYwYL8g.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvuYwYL8g.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvhYwYL8g.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvtYwYL8g.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.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;
}

/* vietnamese */
@font-face {
  font-family: 'Josefin Sans';
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/josefinsans/v34/Qw3EZQNVED7rKGKxtqIqX5EUCEx1XHgciw.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Josefin Sans';
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/josefinsans/v34/Qw3EZQNVED7rKGKxtqIqX5EUCEx0XHgciw.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;
}

/* latin */
@font-face {
  font-family: 'Josefin Sans';
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/josefinsans/v34/Qw3EZQNVED7rKGKxtqIqX5EUCEx6XHg.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;
}

/* vietnamese */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/josefinsans/v34/Qw3aZQNVED7rKGKxtqIqX5EUAnx4RHw.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/josefinsans/v34/Qw3aZQNVED7rKGKxtqIqX5EUA3x4RHw.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;
}

/* latin */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/josefinsans/v34/Qw3aZQNVED7rKGKxtqIqX5EUDXx4.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;
}

/* ------------------------------------ */

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

:root {
  --color-accent: #FF4747;
  --color-dark: #1a1a18;
  --color-dark2: #222220;
  --color-warm: #f5f3ef;
  --color-mid: #e2dfd9;
  --color-text: #2a2a27;
  --color-muted: #888880;
  --color-white: #ffffff;
  --font-title: 'Josefin Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}


ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
#chi-siamo,
#servizi,
#ambiti,
#team,
#clienti,
#contatti {
    scroll-margin-top: 84px;
}
body {
  background-color: var(--color-light);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  scroll-behavior: smooth;
}

.btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-title);
  padding: 14px 28px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}
.btn-primary:hover{
   background: #d94140;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .55);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, .55);
    color: var(--color-white);
}

h1,
h2 {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -.02em;
  margin: 35px 0 15px;
}

.subtitle {
  display: block;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

strong {
  font-weight: 700;
}




/* ------- NAVBAR ------- */
.H-1 {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 2px;
  width: 100%;
  position: fixed;
  z-index: 10;
  background-color: transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}

.H-1.scrolled {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--color-mid);
    backdrop-filter: blur(10px);
}

.H-1.scrolled .logo-text {
    color: var(--color-dark);
}

.H-1.scrolled #nav li a {
    color: var(--color-text);
}
.H-1.scrolled #nav li a:hover,
.H-1.scrolled #nav li a.on {
    color: var(--color-accent);
}


.H-1.scrolled #L431 p a {
    color: var(--color-muted);
}

.H-1.scrolled #L431 p a.on {
    color: var(--color-text);
}

.H-1 .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
}

#nav {
    display: flex;
    gap: 32px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#nav li a {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .2s;
}
#nav li a.on {
    color: var(--color-accent);
}
#nav li a:hover {
    color: var(--color-accent);
}

#L431 p{
    display: flex;
    gap: 5px;
    font-family: var(--font-title);
    font-size: 10px;
    letter-spacing: .1em;
}

#L431 p a {
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: color .2s;
}

#L431 p a.on {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
}

#L431 p span {
    color: rgba(255, 255, 255, .25);
}

.H-1,
.H-1 a {
  color: white;
}

.H-1 #L430 {
  max-width: 60px;
}

.H-1 #L198 #nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}



/* ─── FOOTER ─── */
.F-1 {
    background: var(--color-dark2);
    padding: 52px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.foot-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.foot-inner img{
    width: 40%;
    height: max-content;
    object-fit: contain;
}

.foot-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.foot-brand-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-white);
}

.foot-tagline {
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, .28);
    line-height: 1.7;
}

.fc-title {
    font-family: var(--font-title);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .28);
    margin-bottom: 14px;
}

.fc p,
.fc a {
    display: block;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 1.6;
    transition: color .2s;
}

.fc a:hover {
    color: var(--color-accent);
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot-copy {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, .22);
}

.foot-social {
    display: flex;
    gap: 18px;
}

.foot-social a {
    font-family: var(--font-title);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .28);
    text-decoration: none;
    transition: color .2s;
}

.foot-social a:hover {
    color: var(--color-accent);
}


/* ─── FADE UP ─── */
.fu {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.fu.in {
    opacity: 1;
    transform: translateY(0);
}

.d1 {
    transition-delay: .1s
}

.d2 {
    transition-delay: .2s
}

.d3 {
    transition-delay: .3s
}

.d4 {
    transition-delay: .4s
}

/* =========================================================
   RESPONSIVE HEADER + HAMBURGER
   ========================================================= */
.H-1 #L430,
.H-1 #L198,
.H-1 #L431 {
  width: auto;
  padding-left: 0;
  padding-right: 0;
  float: none;
}

.H-1 #L198 {
  flex: 1 1 auto;
}

.contenitore-hamburger {
  display: none;
}

.menu-open-body {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .container,
  .H-1 .container {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }

  #nav,
  .H-1 #L198 #nav {
    gap: 18px;
  }

  #nav li a {
    font-size: 9px;
    letter-spacing: .11em;
  }
}

@media (max-width: 980px) {
    body.menu-open {
        overflow: hidden;
    }

    .H-1 {
        height: 64px;
        z-index: 9999;
    }

    .H-1 .wrap {
        width: 100%;
        height: 64px;
        max-width: none;
        padding: 0 22px;

        display: grid;
        grid-template-columns: 52px 1fr auto 32px;
        column-gap: 16px;
        align-items: center;
    }

    .H-1 #L430,
    .H-1 #L198,
    .H-1 #L431 {
        float: none !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative;
    }

    /* Logo a sinistra */
    .H-1 #L430 {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        z-index: 10002;
    }

    .H-1 #L430 p {
        margin: 0;
    }

    .H-1 #L430 a {
        display: block;
        line-height: 0;
    }

    .H-1 #L430 img {
        display: block;
        width: 46px;
        height: auto;
    }

    /* Lingue prima dell’hamburger */
    .H-1 #L431 {
        display: block !important;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        z-index: 10002;
    }

    .H-1 #L431 p {
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0;
        white-space: nowrap;
    }

    /* Hamburger a destra */
    .H-1 #L198 {
        display: block;
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        z-index: 10002;
    }

    .H-1 #bs-example-navbar-collapse-1 {
        position: static;
        display: block !important;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .contenitore-hamburger {
        display: flex;
        width: 32px;
        height: 24px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        position: relative;
        z-index: 10003;
    }

    .contenitore-hamburger .linea1,
    .contenitore-hamburger .linea2,
    .contenitore-hamburger .linea3 {
        width: 100%;
        height: 2px;
        background: var(--color-white);
        transition:
            transform .3s ease,
            opacity .3s ease,
            background .3s ease;
    }

    .H-1.scrolled .contenitore-hamburger .linea1,
    .H-1.scrolled .contenitore-hamburger .linea2,
    .H-1.scrolled .contenitore-hamburger .linea3,
    body.menu-open .contenitore-hamburger .linea1,
    body.menu-open .contenitore-hamburger .linea2,
    body.menu-open .contenitore-hamburger .linea3 {
        background: var(--color-dark);
    }

    body.menu-open .contenitore-hamburger .linea1 {
        transform: translateY(11px) rotate(45deg);
    }

    body.menu-open .contenitore-hamburger .linea2 {
        opacity: 0;
    }

    body.menu-open .contenitore-hamburger .linea3 {
        transform: translateY(-11px) rotate(-45deg);
    }

    .H-1 #nav {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100% !important;
        height: calc(100vh - 64px);

        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 26px;

        padding: 40px 24px;
        margin: 0;
        list-style: none;

        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(14px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);

        transition:
            opacity .3s ease,
            visibility .3s ease,
            transform .3s ease;

        z-index: 10000;
    }

    body.menu-open .H-1 #nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .H-1 #nav li {
        display: block;
        width: 100%;
        text-align: center;
    }

    .H-1 #nav li a {
        display: inline-block;
        position: relative;

        font-family: var(--font-title);
        font-size: 18px;
        font-weight: 600;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--color-dark);
        text-decoration: none;

        padding: 8px 0;

        transition:
            color .25s ease,
            transform .25s ease;
    }

    .H-1 #nav li a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;

        width: 0;
        height: 1px;

        background: var(--color-accent);
        transform: translateX(-50%);
        transition: width .25s ease;
    }

    .H-1 #nav li a:hover,
    .H-1 #nav li a.on {
        color: var(--color-accent);
    }

    .H-1 #nav li a:hover {
        transform: translateY(-2px);
    }

    .H-1 #nav li a:hover::after {
        width: 100%;
    }
}
