/* "Dall'acqua al banco" — WeSites layer for L'Acquario.
 * On top of style.css: same logo, palette, type and layout. Adds the aquarium hero (fish that dive
 * away as you scroll while the water drains onto the shop's counter) and the crudo tray that lays
 * itself out. Hidden starting states only exist behind html.anim. */

:root {
  --tag-blue: #2047b5;   /* the price tags on the real counter */
  --foam: #ffffff;
}

/* --- Hero: the aquarium and the counter --- */
.sea { position: absolute; inset: 0; overflow: hidden; background: #6cc0cf; }
.sea__tank, .sea__counter, .sea__counter img, .sea__line {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.sea__counter { clip-path: url(#sea-clip); }
.sea__counter img { object-fit: cover; object-position: 50% 30%; transform-origin: 50% 100%; }
.sea__line { overflow: visible; pointer-events: none; }
.sea__line path { fill: none; vector-effect: non-scaling-stroke; }
.sea__line .glow { stroke: rgba(255, 255, 255, 0.35); stroke-width: 7; }
.sea__line .edge { stroke: var(--foam); stroke-width: 1.5; }
.sea__hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity 0.3s;
}
.sea__hint i { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); }

/* --- Crudo: the tray lays itself out --- */
.tray {
  position: relative; aspect-ratio: 1060 / 556; border-radius: 12px; overflow: hidden;
}
.tray__band, .tray__band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tray__band img { object-fit: fill; }
.tray__tag {
  position: absolute; z-index: 2; transform: translate(-50%, -50%) rotate(var(--r, -3deg));
  background: var(--tag-blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
  padding: 8px 12px 8px 20px; border-radius: 3px; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.tray__tag::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.85);
}
/* Left-aligned: the right edge of the crudo photo is cut by the wave clip (style.css). */
.tray__cta { display: flex; justify-content: flex-start; margin-top: 16px; padding-left: 24px; }
.tray__cta .btn { padding: 12px 20px; font-size: 15px; }
@media (max-width: 768px) {
  .tray__tag { font-size: 12px; padding: 6px 9px 6px 16px; }
  .tray__tag::before { left: 6px; width: 5px; height: 5px; margin-top: -2.5px; }
  .tray__cta { justify-content: stretch; padding-left: 0; }
  .tray__cta .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .anim .tray__tag { opacity: 0; }
  .anim .tray__cta { opacity: 0; transform: translateY(10px); }
}
