*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x: hidden;}
body{
    font-family:'DM Sans',sans-serif;
    color:var(--g900);
    background:var(--white);
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;    
}


:root{
    --brand:#1a87e1;
    --brand-dark:#1269b3;
    --brand-deep:#0a4a7f;
    --brand-900:#072a42;
    --brand-light:#e8f4fd;
    --brand-50:#f0f8ff;
    --brand-200:#a8d4f5;
    --brand-400:#4db0f0;
    --dark:#7f7e7f;
    --dark-deep:#6a696a;
    --dark-light:#9a999a;
    --cream:#fdfbf8;
    --warm:#f5efe6;
    --warm-mid:#f0e8dc;
    --g900:#1c1f24;
    --g700:#3a3f47;
    --g500:#6b7280;
    --g400:#9ca3af;
    --g200:#e5e7eb;
    --g100:#f3f4f6;
    --g50:#f9fafb;
    --white:#fff;
}

   /* ═══════════════════════════════════════════
       EFFETTO FADE IN
       ═══════════════════════════════════════════ */
    .fade-in {
      opacity: 0;
      transform: translateY(32px);
      transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .icon-sm {
      width: 15px;
      height: 15px;
    }

    .icon-md {
      width: 18px;
      height: 18px;
    }

    .icon-lg {
      width: 32px;
      height: 32px;
    }

    .icon-xl {
      width: 22px;
      height: 22px;
    }

    /* ═══════════════════════════════════════════
       NAVBAR
       ═══════════════════════════════════════════ */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 60;
      transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
      
    }

    .nav--top {
      background: rgba(255, 255, 255, 1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: 0 1px 0 rgba(11, 42, 77, 0.08);
    }


    .nav__inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 82px;
      transition: height .35s ease;
    }
    .nav__logo {
      display: flex;
      align-items: baseline;
      text-decoration: none;
      position: relative;
      z-index: 1001;
    }

 .logo_img {width:150px;}


    /* Desktop links */
    .nav__links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
    }

    .nav__link {
      font-size: 16px;
      font-weight: 500;
      text-decoration: none;
      transition: color 0.25s;
      padding: 8px 0;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
    }

    .nav__link i {
      font-size:16px;
      transition: transform 0.3s;
    }

    .nav__item--open .nav__link i {
      transform: rotate(180deg);
    }

    .nav--top .nav__link {
      color: var(--g700);
    }

    .nav--top .nav__link:hover {
      color: var(--brand);
    }

    .nav__item--open .nav__link {
      font-weight: 700;
    }

    /* Desktop dropdown */
    .nav__item {
      position: relative;
    }
    .nav__item::after {
      content: "";
      position: absolute;
      top: 100%;
      left: -20px;
      width: 290px;
      height: 16px;
      background: transparent;
    }

    .nav__dropdown {
      position: absolute;
      top: 100%;
      left: -20px;
      min-width: 250px;
      padding: 24px 28px;
      margin-top: 12px;
      background: var(--white);
      border-radius: 10px;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition:
        opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.3s;
      z-index: 100;
    }

    .nav__item--open .nav__dropdown,
    .nav__item:hover .nav__dropdown,
    .nav__item:focus-within .nav__dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .nav__item--open .nav__link i,
    .nav__item:hover .nav__link i {
      transform: rotate(180deg);
    }
    .nav__dropdown-item {
      display: block;
      padding: 12px 0;
      text-decoration: none;
      background:transparent;
      border-left: 3px solid rgba(26, 135, 225, 0);   
      transition: all 0.15s;
    }

    .nav__dropdown-item:first-of-type {
      border-top: none;
    }

    .nav__dropdown-item:hover {
      padding-left: 6px;
      background:var(--brand-light);
       border-left: 3px solid rgba(26, 135, 225, 1);   
    }

    .nav__dropdown-item-name {
      font-size: 15px;
      font-weight: 700;
      color: var(--brand-deep);
      display: inline;
    }

    .nav__cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 28px;
      border-radius: 100px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.3s ease;
      cursor: pointer;
      border: none;
    }

    .nav--top .nav__cta {
      background: #fff;
      color: var(--brand-dark);
    }

    .nav--top .nav__cta:hover {  background: var(--brand-light);  }

    .nav--top .nav__cta {
      background: var(--brand);
      color: #fff;
    }

    .nav--top .nav__cta:hover { background: var(--dark-deep); }

    /* Hamburger */
    .nav__hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      align-items: center;
      justify-content: center;
      z-index: 1001;
      position: relative;
      transition: background 0.2s;
    }

    .nav--top .nav__hamburger {
      color: #fff;
    }

    .nav--top .nav__hamburger {
      color: var(--g900);
      
    }

    @media (max-width: 900px) {
      .nav__links,
      .nav__cta-desktop {
        display: none !important;
      }

      .nav__hamburger {
        display: flex;
      }
    }

    /* ═══════════════════════════════════════════
       MOBILE MENU
       ═══════════════════════════════════════════ */
    .mobile-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.3);
      z-index: 998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s;
    }

    .mobile-overlay--visible {
      opacity: 1;
      pointer-events: all;
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      max-width: 440px;
      background: var(--white);
      z-index: 999;
      display: flex;
      flex-direction: column;
      padding: 28px 32px 32px;
      transform: translateX(100%);
      transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
      box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
    }

    .mobile-menu--open {
      transform: translateX(0);
    }

    /* Mobile header */
    .mobile-menu__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .mobile-menu__brand {
      display: flex;
      flex-direction: column;
    }

    .mobile-menu__close {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: transparent;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--g500);
      transition: all 0.2s;
    }

    .mobile-menu__close:hover {      
      color: var(--g900);
    }


    /* Mobile links */
    .mobile-menu__link {     
      font-size: 22px;
      color: var(--brand-dark);
      text-decoration: none;
      padding: 14px 0;
      display: block;     
      opacity: 0;
      transform: translateX(30px);
      transition: opacity 0.4s, transform 0.4s, color 0.2s;
    }

    .mobile-menu--open .mobile-menu__link {
      opacity: 1;
      transform: translateX(0);
    }

    .mobile-menu__link:hover {
      color: var(--brand);
    }

    /* Mobile toggle (Su Misura / Prodotti) */
    .mobile-menu__toggle {      
      font-size: 22px;
      color: var(--brand-dark);
      padding: 14px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;      
      cursor: pointer;
      opacity: 0;
      transform: translateX(30px);
      transition: opacity 0.4s, transform 0.4s;
    }

    .mobile-menu__toggle:hover, .mobile-menu__toggle:hover i {color:var(--brand);}

    .mobile-menu--open .mobile-menu__toggle {
      opacity: 1;
      transform: translateX(0);
    }

    .mobile-menu__toggle i {
      font-size:16px;
      color: var(--brand-dark);
      transition: transform 0.3s;
    }

    .mobile-menu__toggle.open i {
      transform: rotate(180deg);
    }

    /* Mobile sub cards */
  .mobile-menu__sub {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: var(--g50);
    opacity: 0;
    transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    padding 0.3s ease,
    margin 0.3s ease;
}

.mobile-menu__sub.open {
  max-height: 300px;
  opacity: 1;
  padding: 12px 0 8px;
  margin-bottom: 6px;
}

    .mobile-menu__sub-item {
      display: block;
      padding: 16px 18px;      
      border-radius: 14px;
      text-decoration: none;
      transition: background 0.2s;
      font-size: 18px;      
      color: var(--brand-dark);
      display: block;
      margin-bottom: 2px;
    }

    .mobile-menu__sub-item:hover {      
      color:var(--brand);
    }


    /* Mobile CTA */
    .mobile-menu__cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 36px;
      border-radius: 100px;
      background: var(--brand);
      text-align:center;
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      text-decoration: none;
      margin-top: 28px;
      opacity: 0;
      transform: translateX(30px);
      transition: opacity 0.4s 0.35s, transform 0.4s 0.35s, background 0.2s;
    }

    .mobile-menu--open .mobile-menu__cta {
      opacity: 1;
      transform: translateX(0);
    }

    .mobile-menu__cta:hover {
      background: var(--dark-deep);
    }

/*bottoni */
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 32px;
      background: #fff;
      color: var(--brand-dark);
      font-size: 15px;
      font-weight: 600;
      border-radius: 100px;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 32px;
      background: transparent;
      color: #fff;
      font-size: 15px;
      font-weight: 500;
      border-radius: 100px;
      text-decoration: none;
      border: 1px solid rgba(255, 255, 255, 0.22);
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.4);
    }

    .btn-secondary svg {
      flex-shrink: 0;
    }
    
    /* sezioni comuni */

      .section__eyebrow {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--brand);
      margin-bottom: 5px;
    }

    .section__title {
      font-family: 'Instrument Serif', serif;
      font-size: clamp(30px, 3.8vw, 46px);
      font-weight: 400;
      line-height: 1.15;
      color: var(--g900);
      margin-bottom: 16px;
      letter-spacing: -0.01em;
    }

    .section__desc {
      font-size: 16px;
      line-height: 1.7;
      color: var(--g500);
      max-width: 560px;
      margin-bottom: 56px;
    }


    /* ═══════════════════════════════════════════
    FOOTER
    ═══════════════════════════════════════════ */
    .footer {
      background: var(--dark);
      padding: 64px 32px 28px;
    }

    .footer__inner {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 48px;
    }

    .footer__brand-name {
      font-family: 'Instrument Serif', serif;
      font-size: 22px;
      color: #fff;
      margin-bottom: 12px;
    }

    .footer__brand-text {
      font-size: 14px;
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.45);
      max-width: 280px;
    }

    .footer__col-title {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 20px;
    }

    .footer__link {
      display: block;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.4);
      text-decoration: none;
      margin-bottom: 12px;
      transition: color 0.2s;
    }

    .footer__link:hover {
      color: var(--brand-400);
    }

    .footer__bottom {
      max-width: 1280px;
      margin: 0 auto;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer__copy {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.25);
    }

    .footer__legal {
      display: flex;
      gap: 24px;
    }

    .footer__legal a {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.25);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer__legal a:hover {
      color: rgba(255, 255, 255, 0.5);
    }

    @media (max-width: 900px) {
      .footer {
        padding: 48px 24px 24px;
      }

      .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
      }
    }

    @media (max-width: 500px) {
      .footer__inner {
        grid-template-columns: 1fr;
      }
    }