.experiments{
  background:#fff8f8;
  padding:72px 0 78px;
}

.experiments-heading{
  margin-bottom:28px;
}

.experiments-heading h2{
  margin:8px 0 10px;
  font-size:clamp(2.2rem, 4vw, 3.35rem);
  line-height:1.08;
}

.experiments-heading p{
  margin:0;
  color:var(--muted);
  max-width:none;
}

.experiment-carousel{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 42px rgba(28,18,21,.08);
}

.experiment-viewport{
  touch-action:pan-y;
}

.experiment-track{
  display:grid;
}

.experiments:not(.is-enhanced) .experiment-track{
  gap:18px;
}

.experiment-card{
  display:grid;
  grid-template-columns:minmax(0, 1.3fr) minmax(0, .7fr);
  align-items:center;
  gap:30px;
  min-width:0;
  padding:24px;
}

.experiments:not(.is-enhanced) .experiment-card + .experiment-card{
  border-top:1px solid var(--line);
}

.experiment-card[hidden]{
  display:none;
}

.experiment-media{
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  background:#101014;
}

.experiment-media video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.experiment-media video:not([src]){
  object-fit:cover;
}

.experiments.is-enhanced .experiment-play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
}

.experiment-play{
  display:none;
}

.experiment-play .mdi{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 5px 18px rgba(0,0,0,.3);
  font-size:40px;
}

.experiment-play[hidden]{
  display:none !important;
}

.experiment-card__content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}

.experiment-index{
  color:var(--accent-2);
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.experiment-badge,
.prototype-badge{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:5px 10px;
  border-radius:999px;
  background:#fce9ea;
  color:#8e1e27;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.experiment-card h3{
  margin:13px 0 10px;
  font-size:clamp(1.8rem, 2.7vw, 2.55rem);
  line-height:1.12;
}

.experiment-card p{
  margin:0 0 22px;
  color:var(--muted);
}

.experiment-card .experiment-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--accent-2);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

.experiments-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 24px;
  background:#18191d;
  color:#fff;
}

.experiments-prompt{
  font-weight:700;
  font-size:1.05rem;
}

.experiments-controls{
  display:none;
}

.experiments.is-enhanced .experiments-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  padding:12px 20px;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.experiments-controls > button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:44px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
}

.experiments-controls > button .mdi{
  font-size:1.3rem;
}

.experiments-controls > button:disabled{
  opacity:.35;
  cursor:default;
}

.experiments-progress{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  min-width:96px;
  font-size:.82rem;
  font-weight:700;
}

.experiment-dots{
  display:flex;
  gap:5px;
}

.experiment-dots button{
  width:24px;
  height:5px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#c2b4b7;
  cursor:pointer;
}

.experiment-dots button[aria-pressed="true"]{
  background:var(--accent);
}

.experiments-cta{
  max-width:none;
  justify-content:center;
  text-align:center;
  line-height:1.25;
}

.grid .solution-card--prototype{
  grid-column:span 12;
  display:flex;
  align-items:center;
  gap:18px;
  position:relative;
  overflow:hidden;
  padding:26px 30px;
  background:linear-gradient(115deg,#fff 0%,#fff5f5 100%);
  border-color:#eab8bc;
  border-left:5px solid var(--accent);
}

.solution-ribbon{
  position:absolute;
  top:0;
  right:0;
  padding:8px 15px 8px 24px;
  clip-path:polygon(13% 0,100% 0,100% 100%,0 100%);
  background:var(--accent);
  color:#fff;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.1em;
}

.solution-card--prototype .icon{
  flex:0 0 56px;
  width:56px;
  height:56px;
  float:none;
  margin:0;
}

.solution-prototype-copy{
  flex:1;
  min-width:0;
}

.solution-card--prototype .cta{
  flex:0 0 auto;
}

.solution-card--prototype .solution-eyebrow{
  display:block;
  margin-bottom:6px;
  color:#8e1e27;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

@media (min-width:641px) and (max-width:1024px){
  #servizi .grid .service-card--audio-guides{
    grid-column:span 12;
  }
}

@media (min-width:641px) and (max-width:1100px){
  header.mainNav .nav > nav,
  header.mainNav .nav > .cta--light{
    display:none;
  }

  header.mainNav .hamburger{
    display:grid;
    position:static;
    transform:none;
  }

  header.mainNav .brand{
    top:0;
  }

  .mobile-nav.is-open{
    display:block !important;
  }
}

.prototype-page{
  padding:30px 0 0;
}

.prototype-header-shortcut{
  display:none;
}

@media (max-width:1100px){
  .prototype-header .nav > nav,
  .prototype-header .nav > .cta--light{
    display:none;
  }

  .prototype-header-shortcut{
    display:inline-flex;
    align-items:center;
    padding:7px 9px;
    border:1px solid rgba(255,255,255,.75);
    border-radius:9px;
    color:#fff;
    font-size:.78rem;
    font-weight:700;
  }
}

.prototype-heading{
  margin:24px 0;
}

.prototype-heading h1{
  margin:12px 0;
}

.prototype-heading .lead{
  max-width:75ch;
}

.prototype-article{
  display:grid;
  grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);
  gap:22px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.prototype-gallery{
  min-width:0;
}

.prototype-player{
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:12px;
  background:#101014;
}

.prototype-video{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  max-height:min(66svh, 600px);
  object-fit:contain;
  background:#101014;
}

.prototype-video-note{
  margin:14px 4px 2px;
  color:var(--muted);
  font-size:.92rem;
}

.prototype-side{
  min-width:0;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
}

.prototype-side h2{
  margin:0 0 10px;
  font-size:1.35rem;
  line-height:1.2;
}

.prototype-side h3{
  margin:22px 0 6px;
  font-size:1.05rem;
}

.prototype-side p{
  margin:0;
}

.prototype-side .kv{
  margin-top:24px;
}

.prototype-side .share{
  margin-top:10px;
}

.prototype-side .btn-share{
  font-size:.9rem;
}

.prototype-contact{
  padding-top:36px;
}

.experiments :is(a, button, video, .experiment-viewport):focus-visible,
.prototype-page :is(a, button, video):focus-visible,
.projects-page :is(.projects-filter, .project-card__link):focus-visible,
#servizi .solution-card--prototype a:focus-visible{
  outline:3px solid #9b1f29;
  outline-offset:4px;
}

.experiments .experiment-play:focus-visible{
  outline-offset:-5px;
}

@media (max-width:980px){
  .experiment-card{
    grid-template-columns:1fr;
    gap:20px;
  }

  .grid .solution-card--prototype{
    flex-wrap:wrap;
    padding-top:55px;
  }

  .solution-card--prototype .cta{
    width:100%;
    justify-content:center;
  }

  .experiments-footer{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }

  .prototype-article{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .experiments{
    padding:52px 0 58px;
  }

  .experiment-card{
    padding:16px;
  }

  .experiment-card h3{
    font-size:clamp(1.65rem, 7vw, 2rem);
  }

  .experiments-footer{
    padding:16px;
  }

  .experiments.is-enhanced .experiments-controls{
    justify-content:space-between;
    gap:6px;
    padding:10px 14px;
  }

  .experiments-controls > button{
    width:44px;
    min-width:44px;
    padding:0;
    font-size:0;
  }

  .experiments-controls > button .mdi{
    font-size:1.6rem;
  }

  .experiments-cta{
    max-width:none;
    width:100%;
  }

  .prototype-header .nav{
    justify-content:space-between;
    padding-inline:16px;
  }

  .prototype-header .brand{
    margin-inline:0;
    top:0;
  }

  .prototype-toolbar .breadcrumbs{
    font-size:.8rem;
  }

  .prototype-toolbar .breadcrumbs > span:last-child,
  .prototype-toolbar .breadcrumbs > span:nth-last-child(2){
    display:none;
  }

  .prototype-toolbar .back-btn{
    padding:6px 9px;
    font-size:.8rem;
  }

  .grid .solution-card--prototype{
    padding:55px 20px 20px;
  }

  .prototype-header-shortcut{
    position:static;
  }

  .prototype-article{
    padding:12px;
  }

  .prototype-side .kv{
    grid-template-columns:100px minmax(0, 1fr);
  }
}

@media (max-width:700px) and (orientation:portrait){
  .experiment-media{
    width:min(100%, 330px, calc(52svh * 9 / 16));
    max-height:52svh;
    aspect-ratio:9/16;
    margin-inline:auto;
  }

  .prototype-video{
    width:min(100%, 390px, calc(68svh * 9 / 16));
    max-height:68svh;
    aspect-ratio:9/16;
    margin-inline:auto;
  }

}

@media (max-width:640px){
  #servizi .grid,
  #audio-ai .audio-grid{
    gap:12px;
    padding:12px;
  }

  #servizi .grid .solution-card--prototype{
    display:block;
    padding:60px 16px 16px;
  }

  .solution-card--prototype .icon{
    position:absolute;
    top:12px;
    left:16px;
    width:40px;
    height:40px;
    margin:0;
  }

  .solution-card--prototype .cta{
    margin-top:16px;
  }

  #servizi .card:not(.solution-card--prototype) .icon{
    float:none;
    margin:0 0 12px;
  }

  #servizi .card:not(.solution-card--prototype) h3{
    margin-top:0;
  }

  #audio-ai .audio-card{
    min-width:0;
    padding:14px;
  }

  #audio-ai .audio-player{
    min-width:0;
    padding:8px;
  }

  #audio-ai .iq-mini-flow{
    justify-content:flex-start;
    margin-bottom:24px;
  }

  #team .team-wrap{
    padding:12px;
  }

  #team .team{
    gap:12px;
  }

  #team .person{
    gap:12px;
    padding:14px;
  }

  #team .person > div:last-child{
    min-width:0;
  }

  #team .avatar{
    width:56px;
    height:56px;
    min-width:56px;
  }

  #team .mail{
    font-size:.75rem;
    overflow-wrap:anywhere;
  }
}

@media (prefers-reduced-motion:reduce){
  .experiments :is(.cta, .experiment-play, .experiment-link){
    transition:none;
  }
}
