/* === RESET E BASE === */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Montserrat', Arial, sans-serif;
      scroll-behavior: smooth;
      background: linear-gradient(to bottom, #a3c3d9, #c5d8e9);
      color: #333;
      line-height: 1.6;
    }

    /* === HEADER === */
    header {
      position: relative;
      background: url('finance.png') center/cover no-repeat;
      color: white;
      padding: 60px 40px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 40px;
      min-height: 350px;
    }

    header::before {
      content: "";
      position: absolute;
      inset: 0;
      background-color: rgba(0, 65, 100, 0.6);
      z-index: 0;
    }

    header > * {
      position: relative;
      z-index: 1;
    }

    .logo {
      background-color: white;
      border-radius: 50%;
      width: 250px;
      height: 250px;
      min-width: 250px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      margin-left: 150px;
      overflow: hidden;
    }

    .logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .header-text h1 {
      font-family: 'Montserrat', Georgia, serif;
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1.4;
    }

    /* === MENU HAMBURGER === */
    .menu-btn {
      position: fixed;
      top: 50px;
      left: 90px;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 12px;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      z-index: 1001;
      transition: transform 0.3s ease, background 0.3s ease;
      border: none;
    }

    .menu-btn span {
      width: 35px;
      height: 5px;
      background-color: #1f4e63;
      border-radius: 2px;
      transition: all 0.3s ease;
      display: block;
    }

    .menu-btn:hover {
      transform: scale(1.08);
      background: rgba(255, 255, 255, 0.35);
    }

    .menu-btn.open span:nth-child(1) {
      transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-btn.open span:nth-child(2) {
      opacity: 0;
    }

    .menu-btn.open span:nth-child(3) {
      transform: rotate(-45deg) translate(8px, -8px);
    }

    /* === MENU LATERALE === */
    nav {
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100%;
      background: linear-gradient(to bottom, #ffffff, #96b8d4, #4682b4);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 80px;
      transition: left 0.3s ease;
      z-index: 1000;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    nav.open {
      left: 0;
    }

    .menu-close {
      position: absolute;
      top: 25px;
      right: 25px;
      width: 30px;
      height: 30px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
    }

    .menu-close::before,
    .menu-close::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 3px;
      background-color: #003b57;
      transition: background-color 0.2s ease;
    }

    .menu-close::before {
      transform: rotate(45deg);
    }

    .menu-close::after {
      transform: rotate(-45deg);
    }

    .menu-close:hover::before,
    .menu-close:hover::after {
      background-color: #0059a6;
    }

    nav a {
      font-family: 'Cormorant Garamond', serif;
      color: #003b57;
      text-decoration: none;
      padding: 18px 0;
      font-size: 1.6rem;
      font-weight: 800;
      width: 100%;
      text-align: center;
      transition: all 0.2s ease;
    }

    nav a:hover {
      background-color: rgba(255, 255, 255, 0.2);
      color: #001f2e;
    }

    /* === SIDEBAR SOCIAL === */
    .social-sidebar {
      position: fixed;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 999;
    }

    .social-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      border-radius: 0 8px 8px 0;
      transition: all 0.3s ease;
      box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    }

    .social-icon img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .social-icon:hover {
      transform: translateX(5px);
      box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
    }

    .instagram {
      background: radial-gradient(circle at 30% 107%, 
                  #fdf497 0%, 
                  #fdf497 5%, 
                  #fd5949 45%, 
                  #d6249f 60%, 
                  #285AEB 90%);
    }

    .linkedin {
      background: #0077b5;
    }

    .facebook {
      background: #38569e;
    }

    /* === MAIN CONTENT === */
    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    .main-content {
      margin-left: 60px;
    }

    section {
      margin-bottom: 30px;
    }

    .mainsection {
      background: linear-gradient(to bottom, #e1edf5, #c5d8e9);
      border-radius: 12px;
      padding: 40px 30px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .mainsection h2 {
      color: #003b57;
      font-size: 2rem;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .mainsection p {
      color: #444;
      font-size: 1.1rem;
      line-height: 1.8;
      text-align: justify;
      margin-bottom: 15px;
    }

    .mainsection ul {
      list-style-type: none;
      max-width: 800px;
      margin: 20px auto;
      text-align: left;
      font-size: 1.05rem;
      color: #333;
      line-height: 1.7;
    }

    .mainsection ul li {
      margin-bottom: 12px;
      padding-left: 5px;
    }

    .mainsection a {
      color: #0059a6;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s ease;
    }

    .mainsection a:hover {
      color: #003b57;
      text-decoration: underline;
    }

    .ultimascritta {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      text-align: center;
      font-weight: 400;
      color: #003b57;
      margin: 40px 0;
      font-style: italic;
    }

    /* === COOKIE BANNER === */
    .cookie-banner {
      position: fixed;
      bottom: 25px;
      right: 25px;
      max-width: 420px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      animation: fadeIn 0.8s ease;
      z-index: 10000;
      display: none;
    }

    .cookie-banner.show {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .cookie-banner h3 {
      font-size: 18px;
      font-weight: 600;
      color: #111827;
      margin-bottom: 12px;
    }

    .cookie-banner p {
      font-size: 14px;
      color: #374151;
      line-height: 1.5;
      margin-bottom: 18px;
    }

    .cookie-buttons {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .cookie-buttons button {
      border: none;
      border-radius: 8px;
      padding: 10px 18px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .cookie-buttons button:hover {
      transform: scale(1.05);
    }

    #acceptCookies {
      background: #2563eb;
      color: white;
    }

    #acceptCookies:hover {
      background: #1d4ed8;
    }

    #denyCookies {
      background: #e5e7eb;
      color: #111827;
    }

    #denyCookies:hover {
      background: #d1d5db;
    }

    /* === FOOTER === */
    footer {
      background-color: #003b57;
      color: white;
      text-align: center;
      padding: 40px 20px;
      margin-top: 60px;
    }

    footer > div {
      max-width: 900px;
      margin: auto;
    }

    footer h3 {
      font-size: 1.4rem;
      margin-bottom: 15px;
      font-weight: 600;
    }

    footer p {
      margin: 8px 0;
      font-size: 0.95rem;
      line-height: 1.6;
    }

    .footer-links {
      margin-top: 25px;
      display: flex;
      justify-content: center;
      gap: 20px;
    }

    .footer-links a {
      color: white;
      text-decoration: none;
      font-size: 1.5rem;
      transition: transform 0.2s ease;
      display: inline-block;
    }

    .footer-links a:hover {
      transform: scale(1.2);
    }

    footer hr {
      border: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      margin: 30px auto;
      width: 80%;
    }

    .footer-copyright {
      font-size: 0.85rem;
      color: #cfd8dc;
      margin-top: 20px;
    }

    /* === RESPONSIVE === */
    @media (max-width: 768px) {
      header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        min-height: auto;
      }

      .logo {
        width: 120px;
        height: 120px;
        min-width: 120px;
        margin-left: 0;
      }

      .header-text h1 {
        font-size: 1.6rem;
      }

      .menu-btn {
        top: 20px;
        left: 20px;
      }

      .main-content {
        margin-left: 0;
      }

      /* Social sidebar ridimensionata per mobile */
      .social-sidebar {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 15px;
        background: rgba(255, 255, 255, 0.9);
        padding: 10px 15px;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      }

      .social-icon {
        width: 45px;
        height: 45px;
        border-radius: 50%;
      }

      .social-icon:hover {
        transform: scale(1.1);
      }

      .mainsection {
        padding: 25px 20px;
      }

      .mainsection h2 {
        font-size: 1.6rem;
      }

      .mainsection p,
      .mainsection ul {
        font-size: 1rem;
      }

      .ultimascritta {
        font-size: 1.4rem;
      }

      .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
      }
    }

    @media (max-width: 480px) {
      .header-text h1 {
        font-size: 1.3rem;
      }

      .mainsection {
        padding: 20px 15px;
      }

      nav {
        width: 250px;
        left: -250px;
      }
    }