/*
Theme Name: IKIBLU Gelato d'Autore
Author: IKIBLU
Description: Tema WordPress bilingue IT/EN per IKIBLU Gelato d'Autore Sorrento.
Version: 1.0
Text Domain: ikiblu
*/

:root {
      --blu: #00558f;
      --blu-notte: #003f70;
      --azzurro: #dff3ff;
      --oro: #d6b65f;
      --limone: #ffd84d;
      --crema: #fff9ee;
      --bianco: #ffffff;
      --testo: #142033;
      --muted: #64748b;
      --ombra: 0 22px 70px rgba(0, 63, 112, .18);
      --radius: 28px;
      --max: 1180px;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--testo);
      background: linear-gradient(180deg, #fff 0%, #fff9ee 45%, #ffffff 100%);
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 30;
      padding: 16px 22px;
      transition: .25s ease;
    }
    .topbar.scrolled {
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(16px);
      box-shadow: 0 10px 40px rgba(0,0,0,.08);
      padding: 10px 22px;
    }
    .topbar .nav-links a {
        color: #fff;
    }
    .topbar.scrolled .nav-links a {
        color: #17324d;
    }
    .topbar.scrolled .nav-links a.btn {
        color: #fff !important;
    }
    .nav {
      max-width: var(--max);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      font-weight: 800;
      letter-spacing: .08em;
      color: var(--blu);
    }
    .brand img {
      width: 54px; height: 54px;
      object-fit: contain;
      border-radius: 14px;
      background: rgba(255,255,255,.9);
      box-shadow: 0 10px 24px rgba(0,85,143,.18);
      padding: 6px;
    }
    .brand-text { line-height: 1.02; text-transform: uppercase; }
    .brand-text b { display: block; font-size: 24px; letter-spacing: .12em; }
    .brand-text small {
      display: block; font-size: 10px; color: var(--oro);
      letter-spacing: .28em; margin-top: 3px;
    }
    .nav-right { display: flex; align-items: center; gap: 18px; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      font-size: 14px;
      font-weight: 700;
      color: #17324d;
    }
    .nav-links a:hover { color: var(--blu); }
    .language-switch {
      display: inline-flex;
      align-items: center;
      padding: 4px;
      gap: 4px;
      border-radius: 999px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(0,85,143,.16);
      box-shadow: 0 10px 26px rgba(0,63,112,.10);
    }
    .language-switch button {
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--blu);
      cursor: pointer;
      font-weight: 900;
      padding: 8px 11px;
      letter-spacing: .05em;
    }
    .language-switch button.active {
      background: var(--blu);
      color: white;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 0;
      border-radius: 999px;
      padding: 13px 22px;
      background: var(--blu);
      color: #fff;
      font-weight: 800;
      box-shadow: 0 16px 35px rgba(0,85,143,.26);
      transition: .2s ease;
      cursor: pointer;
    }
    .btn:hover { transform: translateY(-2px); background: var(--blu-notte); }
    .btn.alt {
      background: rgba(255,255,255,.9);
      color: var(--blu);
      box-shadow: none;
      border: 1px solid rgba(0,85,143,.14);
    }
    .hero {
      min-height: 100svh;
      position: relative;
      isolation: isolate;
      display: grid;
      align-items: center;
      overflow: hidden;
      padding: 130px 22px 70px;
      color: white;
      background: #072f54;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -3;
      background: url('assets/hero-gelateria.jpg') center / cover no-repeat;
      transform: scale(1.03);
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background:
        radial-gradient(circle at 18% 18%, rgba(255,216,77,.46), transparent 24%),
        radial-gradient(circle at 84% 22%, rgba(214,182,95,.20), transparent 18%),
        linear-gradient(90deg, rgba(0,31,59,.90) 0%, rgba(0,54,96,.73) 48%, rgba(0,63,112,.18) 100%),
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.34));
    }
    .hero-decor, .hero-decor-two {
      position: absolute;
      border-radius: 999px;
      pointer-events: none;
      z-index: -1;
      box-shadow: 0 20px 50px rgba(0,0,0,.18);
      overflow: hidden;
      border: 8px solid rgba(255,255,255,.78);
    }
    .hero-decor {
      width: clamp(130px, 17vw, 220px);
      height: clamp(130px, 17vw, 220px);
      right: 7%; top: 15%;
    }
    .hero-decor-two {
      width: clamp(140px, 15vw, 210px);
      height: clamp(140px, 15vw, 210px);
      right: 10%; bottom: 10%;
    }
    .hero-decor img, .hero-decor-two img { width: 100%; height: 100%; object-fit: cover; }
    .hero-inner {
      max-width: var(--max);
      margin: 0 auto;
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 720px) 1fr;
      gap: 36px;
      align-items: end;
      position: relative;
      z-index: 2;
    }
    .hero-logo-panel {
      width: min(100%, 320px);
      padding: 18px 18px 16px;
      border-radius: 34px;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(255,255,255,.4);
      box-shadow: 0 22px 58px rgba(0, 34, 67, .24);
      backdrop-filter: blur(16px);
      margin-bottom: 24px;
    }
    .hero-logo-panel img { width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
    .logo-note {
      margin-top: 12px;
      color: var(--blu);
      font-weight: 800;
      text-align: center;
      letter-spacing: .05em;
      text-transform: uppercase;
      font-size: 12px;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 9px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(12px);
      color: #fff3c5;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    h1 {
      margin: 22px 0 18px;
      font-size: clamp(46px, 8vw, 94px);
      line-height: .95;
      letter-spacing: -.06em;
    }
    .hero p {
      max-width: 680px;
      margin: 0 0 30px;
      font-size: clamp(18px, 2.1vw, 25px);
      color: rgba(255,255,255,.92);
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
    .hero-flavors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
    .flavor-chip {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 11px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(10px);
      color: #ffffff;
      font-size: 14px;
      font-weight: 700;
    }
    .flavor-chip .dot {
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--limone);
      box-shadow: 0 0 0 6px rgba(255,216,77,.18);
      flex: 0 0 auto;
    }
    .hero-card {
      align-self: end;
      justify-self: end;
      width: min(100%, 360px);
      padding: 26px;
      border-radius: 34px;
      background: rgba(255,255,255,.92);
      color: var(--testo);
      box-shadow: var(--ombra);
      backdrop-filter: blur(18px);
    }
    .hero-card strong { color: var(--blu); font-size: 22px; display: block; line-height: 1.2; }
    .hero-card span { color: var(--muted); font-weight: 700; }
    .hero-card .line { height: 1px; background: rgba(0,85,143,.12); margin: 18px 0; }
    .hero-card .mini-list { display: grid; gap: 12px; margin-top: 16px; }
    .hero-card .mini-item { display: flex; gap: 12px; align-items: flex-start; color: #30445f; font-weight: 700; }
    .sorrento-strip {
      margin-top: 26px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      max-width: 720px;
    }
    .strip-card {
      padding: 16px 18px;
      border-radius: 22px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(10px);
    }
    .strip-card b { display: block; font-size: 15px; margin-bottom: 4px; color: #fff8d6; }
    .strip-card span { color: rgba(255,255,255,.86); font-size: 14px; }
    section { padding: 92px 22px; }
    .wrap { max-width: var(--max); margin: 0 auto; }
    .section-title { max-width: 800px; margin-bottom: 42px; }
    .kicker {
      color: var(--oro);
      text-transform: uppercase;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .18em;
      margin-bottom: 12px;
    }
    h2 {
      margin: 0;
      font-size: clamp(34px, 5vw, 62px);
      line-height: 1.02;
      letter-spacing: -.045em;
      color: var(--blu-notte);
    }
    .lead { font-size: 19px; color: #34445a; margin-top: 18px; max-width: 760px; }
    .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
    .photo-stack { position: relative; min-height: 590px; }
    .photo-main, .photo-small {
      position: absolute;
      overflow: hidden;
      border-radius: 34px;
      box-shadow: var(--ombra);
      background: white;
    }
    .photo-main { inset: 0 80px 70px 0; }
    .photo-small { right: 0; bottom: 0; width: 44%; border: 10px solid white; }
    .photo-main img, .photo-small img { width: 100%; height: 100%; object-fit: cover; }
    .text-card {
      padding: 34px;
      border-radius: var(--radius);
      background: rgba(255,255,255,.82);
      box-shadow: 0 18px 55px rgba(0,63,112,.1);
      border: 1px solid rgba(0,85,143,.08);
    }
    .text-card p { margin: 0 0 16px; color: #30445f; font-size: 17px; }
    .text-card p:last-child { margin-bottom: 0; }
    .signature { margin-top: 20px; font-weight: 900; color: var(--blu); letter-spacing: .02em; }
    .features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .feature {
      padding: 26px;
      border-radius: 24px;
      background: #fff;
      border: 1px solid rgba(0,85,143,.08);
      box-shadow: 0 18px 46px rgba(0,63,112,.08);
    }
    .feature .icon {
      width: 48px; height: 48px; display: grid; place-items: center;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--azzurro), #fff4b8);
      margin-bottom: 18px;
      font-size: 24px;
    }
    .feature h3 { margin: 0 0 10px; color: var(--blu-notte); font-size: 20px; }
    .feature p { margin: 0; color: var(--muted); font-size: 15px; }
    .blue-band {
      background:
        radial-gradient(circle at 14% 20%, rgba(255,216,77,.25), transparent 28%),
        linear-gradient(135deg, var(--blu-notte), var(--blu));
      color: white;
    }
    .blue-band h2 { color: white; }
    .blue-band .lead { color: rgba(255,255,255,.82); }
    .products { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
    .product-large, .product-side { position: relative; overflow: hidden; border-radius: 34px; min-height: 520px; box-shadow: 0 25px 80px rgba(0,0,0,.2); }
    .product-side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; min-height: 520px; box-shadow: none; border-radius: 0; }
    .tile { position: relative; overflow: hidden; border-radius: 30px; box-shadow: 0 25px 70px rgba(0,0,0,.18); }
    .product-large img, .tile img { width: 100%; height: 100%; object-fit: cover; }
    .caption {
      position: absolute;
      left: 20px; right: 20px; bottom: 20px;
      padding: 18px;
      border-radius: 22px;
      background: rgba(255,255,255,.88);
      backdrop-filter: blur(14px);
      color: var(--testo);
    }
    .caption strong { display: block; color: var(--blu); font-size: 21px; }
    .caption span { color: #52657b; font-weight: 700; font-size: 14px; }
    .menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .menu-card {
      overflow: hidden;
      border-radius: 30px;
      background: white;
      box-shadow: var(--ombra);
      border: 1px solid rgba(0,85,143,.08);
    }
    .menu-card img { height: 310px; width: 100%; object-fit: cover; }
    .menu-card .body { padding: 24px; }
    .menu-card h3 { margin: 0 0 8px; font-size: 22px; color: var(--blu-notte); }
    .menu-card p { margin: 0; color: var(--muted); }
    .quote {
      padding: 48px;
      border-radius: 38px;
      background: #fff;
      box-shadow: var(--ombra);
      border: 1px solid rgba(0,85,143,.08);
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 34px;
      align-items: center;
    }
    .quote img { border-radius: 28px; height: 560px; width: 100%; object-fit: cover; }
    blockquote {
      margin: 0;
      font-size: clamp(25px, 3.5vw, 44px);
      line-height: 1.12;
      letter-spacing: -.04em;
      color: var(--blu-notte);
      font-weight: 850;
    }
    .quote p { color: #485a70; font-size: 18px; margin: 22px 0 0; }
    .gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 270px; gap: 16px; }
    .gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: 0 16px 46px rgba(0,63,112,.1); }
    .gallery .tall { grid-row: span 2; }
    .contact { background: var(--crema); }
    .contact-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      padding: 38px;
      border-radius: 38px;
      background: #fff;
      box-shadow: var(--ombra);
      border: 1px solid rgba(0,85,143,.08);
    }
    .info-list { display: grid; gap: 16px; margin-top: 24px; }
    .info-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      padding: 18px;
      border-radius: 20px;
      background: #f8fbff;
      border: 1px solid rgba(0,85,143,.08);
    }
    .info-item b { display: block; color: var(--blu-notte); }
    .info-item span { color: var(--muted); }
    .mapbox {
      min-height: 420px;
      border-radius: 30px;
      overflow: hidden;
      position: relative;
      background: linear-gradient(135deg, rgba(0,85,143,.95), rgba(0,63,112,.72)), url('assets/maestro-cono.jpg') center / cover;
      color: white;
      padding: 32px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    .mapbox h3 { font-size: 34px; line-height: 1; margin: 0 0 12px; }
    .mapbox p { margin: 0 0 22px; color: rgba(255,255,255,.88); }
    footer { padding: 42px 22px; background: var(--blu-notte); color: rgba(255,255,255,.78); }
    .footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
    .footer-brand { color: #fff; font-weight: 900; letter-spacing: .18em; }
    .reveal { opacity: 0; transform: translateY(24px); transition: .65s ease; }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    @media (max-width: 1100px) {
      .sorrento-strip { grid-template-columns: 1fr; max-width: 520px; }
    }
    @media (max-width: 980px) {
      .nav-links { display: none; }
      .hero-inner, .split, .products, .quote, .contact-card { grid-template-columns: 1fr; }
      .hero-card { justify-self: start; }
      .features { grid-template-columns: repeat(2, 1fr); }
      .menu-grid { grid-template-columns: 1fr 1fr; }
      .photo-stack { min-height: 520px; }
      .hero-decor, .hero-decor-two { display: none; }
    }
    @media (max-width: 640px) {
      section { padding: 68px 18px; }
      .hero { padding: 112px 18px 54px; }
      .hero-actions .btn { width: 100%; }
      .features, .menu-grid, .gallery { grid-template-columns: 1fr; }
      .gallery { grid-auto-rows: 310px; }
      .gallery .tall { grid-row: span 1; }
      .photo-stack { min-height: 460px; }
      .photo-main { inset: 0 0 92px 0; }
      .photo-small { width: 56%; border-width: 8px; }
      .text-card, .quote, .contact-card { padding: 24px; border-radius: 28px; }
      .product-large, .product-side { min-height: auto; }
      .product-large { height: 520px; }
      .tile { height: 340px; }
      .quote img { height: 420px; }
      .brand img { width: 46px; height: 46px; }
      .brand-text b { font-size: 21px; }
      .hero-logo-panel { width: min(100%, 270px); }
      .sorrento-strip { max-width: 100%; }
      .language-switch button { padding: 7px 9px; }
    }