/* HOME (raimu.ch/home) - caricato dopo site.css
   (non confondere con media/css/home.css, che è la pagina d'ingresso raimu.ch) */

.home h2 { font-family: Roboto, sans-serif; font-weight: 600; line-height: 1; color: #fff; font-size: var(--h2); }

/* ===== IN ALTO: video + grafica + motto ===== */
.home-hero { display: flex; padding: 10px 10px 40px; }
.hero-video { width: 25%; padding: 10px; }
.hero-video video { display: block; width: 100%; height: auto; }
.hero-art { width: 75%; padding: 10px; }
.hero-art img { display: block; width: 100%; }
.home .motto { margin: 17px 0 -4px; font-family: var(--hand); font-size: 32px; font-weight: 400; line-height: 1.2; text-align: center; color: #dfeee6; }

/* ===== ULTIMA USCITA =====
   Lo sfondo è la copertina stessa, molto sfocata: prende da solo i colori di ogni nuova uscita. */
.release { position: relative; isolation: isolate; overflow: hidden; margin: 0 10px 80px; border-radius: 10px; }
.release-bg { position: absolute; inset: -20%; z-index: -2; width: 140%; max-width: none; height: 140%; object-fit: cover; filter: blur(48px) saturate(1.35); opacity: .6; }
.release::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,12,.88) 0%, rgba(12,12,12,.4) 100%); }
.release-in { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: center; padding: 36px; }
.release-art { display: block; }
.release-art img { display: block; width: 100%; height: auto; }
.release-text { min-width: 0; }
.release-kind { display: block; font: 500 12px/1 Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #cfe5d8; }
.home .release-title { margin: 10px 0 22px; font: 400 64px/1 var(--hand); color: #fff; }
.release-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== BLOCCHI CON TITOLO + PULSANTE (Shop, Playlists) ===== */
.home-block { padding: 10px 10px 80px; }
.home-block.shop { padding-bottom: 60px; }
.home-block.playlists { padding-top: 120px; }
.block-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.block-title h2 { margin: 0; }
.shop .block-title { align-items: flex-start; }

/* ===== CAROSELLI =====
   La striscia di copertine scorre da sola col dito (su telefono), con le frecce o con i pallini.
   3 copertine su computer, 2 su tablet, 1 e un pezzo della successiva su telefono. */
.carousel { position: relative; margin-top: 15px; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 20px; padding: 12px 0 8px; }
.slide { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: block; color: #fff; text-decoration: none; }
.slide:hover, .slide:focus { color: #fff; }
.slide figure { margin: 0; }
.slide img { display: block; width: 100%; height: auto; }
.slide figcaption { padding-top: 8px; text-align: center; }
.carousel-prev, .carousel-next {
    position: absolute; top: calc(50% - 40px); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(12,12,12,.55); color: #fff; cursor: pointer;
    transition: border-color .15s, opacity .2s, transform .1s var(--ease-out);
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-prev:hover, .carousel-next:hover { border-color: var(--green); }
.carousel-prev:active, .carousel-next:active { transform: scale(.94); }
.carousel-prev svg, .carousel-next svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.carousel-prev[disabled], .carousel-next[disabled] { opacity: 0; pointer-events: none; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; min-height: 8px; margin-top: 14px; }
.carousel-dots .dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #fff; opacity: .25; cursor: pointer; transition: opacity .2s, transform .2s var(--ease-out); }
.carousel-dots .dot.active { opacity: 1; transform: scale(1.25); }
@media (max-width: 1023px) { .slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 766px) { .slide { flex-basis: 80%; } }

/* ===== SHOP ===== */
.shop-grid { display: flex; }
.shop-item { width: 50%; padding: 10px; text-align: center; }
.shop-item > a { display: block; }
.shop-item img { display: block; width: 100%; }
.shop-item h3 { margin: 20px 0; font: 400 24px/1.5 Roboto, sans-serif; }

/* ===== RIQUADRI CON SFONDO (social, music usage) ===== */
.home-box { display: flex; padding: 10px; border: 1px solid #fff; }
.home-box.connect { border-top: 0; background: linear-gradient(180deg, #0c0c0c 0%, #001735 100%); }
.home-box.usage { background: linear-gradient(180deg, rgba(46, 0, 0, .69) 0%, rgba(42, 0, 53, .64) 100%); }
.box-text { width: 50%; padding: 10px; }
.box-image { width: 50%; padding: 10px; }
.box-image img { display: block; max-width: calc(100% + 20px); margin: 0 -20px -20px auto; }
.connect h2 { margin: 0 0 16px; font-size: 29px; }
.connect h2 + .chips { margin-bottom: 34px; }
.usage h2 { margin: 0 0 20px; }
.usage p { font-family: Roboto, sans-serif; }

/* icone social con il nome accanto */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
           font: 500 15px/1 Roboto, sans-serif; color: #fff; text-decoration: none; background: rgba(255,255,255,.04); transition: border-color .2s, background-color .2s, color .2s; }
.chips a:hover, .chips a:focus { color: #fff; border-color: var(--green); background: rgba(140,196,163,.12); }
.chips svg { display: block; width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ===== NEWSLETTER (l'immagine del samurai scende sopra il footer) ===== */
.newsletter { position: relative; z-index: 10; display: flex; margin: 70px 0 -85px; }
.newsletter-text { width: 50%; padding: 10px; }
.newsletter-text h2 { margin: 0 0 20px; }
.newsletter-text p { font-family: Roboto, sans-serif; }
.newsletter-image { width: 50%; padding: 10px; text-align: center; }
.newsletter-image img { display: block; margin: 0 auto; }

/* ===== TELEFONO ===== */
@media (max-width: 767px) {
    .home-hero, .shop-grid, .home-box, .newsletter { flex-direction: column; }
    .hero-video, .hero-art, .shop-item, .box-text, .box-image, .newsletter-text, .newsletter-image { width: 100%; }
    .home .motto { font-size: 26px; }
    .release { margin-bottom: 60px; }
    .release-in { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .release-art { width: 180px; }
    .home .release-title { font-size: 46px; margin-bottom: 18px; }
    .block-title { gap: 12px 20px; }
    .carousel-prev, .carousel-next { display: none; }
    .box-text { margin-bottom: -40px; }
    .usage .button { margin-bottom: 20px; }
    .newsletter-text h2 { margin-bottom: 5px; }
    .newsletter-text .button { margin-bottom: 20px; }
    .newsletter-image { margin-bottom: 10px; }
}
