/* ===============================================
   GOLF CLUBBER - HOME PAGE
   Stili della home (versione approvata il 14/11/2026).
   Usa le variabili di variables.css, quindi funziona anche col tema scuro.
   =============================================== */

.home-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.home-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-green); }
.home-h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--color-text); }
.home-lead { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--color-text-light); max-width: 560px; }
.home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.home-head .home-lead { max-width: 380px; margin: 0; }
.home-section { padding: 80px 0 40px; }
.home-section--alt { background: var(--color-bg-alt); padding: 80px 0; margin-top: 40px; }

/* --- Apertura --- */
.home-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; background: #10261a; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; animation: homeZoom 18s ease-in-out infinite alternate; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,14,0.82) 0%, rgba(8,24,14,0.55) 45%, rgba(8,24,14,0.05) 100%); }
@media (max-width: 700px) { .home-hero::after { background: linear-gradient(0deg, rgba(8,24,14,0.88) 0%, rgba(8,24,14,0.55) 55%, rgba(8,24,14,0.2) 100%); } }
@keyframes homeZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .home-hero-img { animation: none; } }
.home-hero-content { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 72px; }
.home-hero-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #b9e4c2; }
.home-hero h1 { margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: #ffffff; max-width: 680px; }
.home-hero-text { margin: 20px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: #e6efe8; max-width: 540px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.home-btn:hover { transform: translateY(-2px); }
.home-btn--light { background: #ffffff; color: #1a4d26; }
.home-btn--ghost { border: 2px solid rgba(255,255,255,0.7); color: #ffffff; font-weight: 600; }
.home-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

/* --- Striscia "Oggi" --- */
.home-ticker { background: #141815; color: #ffffff; }
.home-ticker .home-wrap { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; gap: 16px; min-height: 48px; }
.home-ticker-label { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #10261a; background: #8fd19e; padding: 5px 10px; border-radius: 6px; }
.home-ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.home-ticker-list { display: inline-flex; white-space: nowrap; font-size: 15px; margin: 0; padding: 12px 0; list-style: none; will-change: transform; }
.home-ticker-list li { display: inline-flex; align-items: center; }
.home-ticker-list li::after { content: "•"; color: #4b5a4f; margin: 0 28px; }
.home-ticker-list a { color: #e8ece9; text-decoration: none; }
.home-ticker-list a:hover, .home-ticker-list a:focus-visible { color: #ffffff; text-decoration: underline; }
.home-ticker-list.is-running { animation: homeTicker var(--ticker-duration, 60s) linear infinite; }
.home-ticker-viewport:hover .home-ticker-list, .home-ticker-viewport:focus-within .home-ticker-list { animation-play-state: paused; }
@keyframes homeTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .home-ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
    .home-ticker-list.is-running { animation: none; }
}

/* --- Schede con foto --- */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.home-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--color-bg-alt); color: var(--color-text); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.home-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); color: var(--color-text); }
.home-card-media { position: relative; height: 210px; overflow: hidden; }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.home-card:hover .home-card-media img { transform: scale(1.05); }
.home-card-num { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; color: #1a4d26; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.home-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.home-card-body h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--color-text); }
.home-card-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text-light); }
.home-card-more { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--color-green); }

/* --- Una buca da esplorare --- */
.hole { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; margin-top: 36px; }
.hole-map { flex: 1 1 320px; max-width: 440px; margin: 0 auto; width: 100%; }
.hole-map-inner { position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: #3f7a45; }
.hole-map-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hole-spot { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #ffffff; color: #1a4d26; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform .2s ease, background .2s ease; }
.hole-spot:hover { transform: translate(-50%, -50%) scale(1.1); }
.hole-spot[aria-pressed="true"] { background: #1a4d26; color: #ffffff; border: 3px solid #ffffff; box-shadow: 0 0 0 4px rgba(26,77,38,0.35); }
.hole-spot:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }
.hole-panel { flex: 1 1 320px; min-width: 0; background: var(--color-bg); border-radius: 22px; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.hole-panel h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text); }
.hole-text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--color-text); }
.hole-clubs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--color-text-light); }
.hole-clubs strong { font-weight: 600; background: rgba(45,122,62,0.12); color: var(--color-green); padding: 6px 12px; border-radius: 999px; }
.hole-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.hole-links a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--color-green); color: var(--color-green); font-weight: 600; font-size: 15px; text-decoration: none; }
.hole-links a:hover { background: var(--color-green); color: var(--color-bg); }
.hole-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border-dark); }
.hole-nav button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--color-border-dark); background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 15px; cursor: pointer; }
.hole-nav button:hover { border-color: var(--color-green); }

/* --- Ultime notizie (le schede sono quelle di news.js) --- */
.home-news-all { font-size: 16px; font-weight: 600; text-decoration: none; padding: 10px 0; color: var(--color-green); }

/* --- Guide di tecnica --- */
.home-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.home-guide { background: var(--color-bg-alt); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.home-guide-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.home-guide h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--color-text); }
.home-guide-count { font-size: 13px; font-weight: 600; color: var(--color-green); white-space: nowrap; }
.home-guide-desc { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--color-text-light); }
.home-guide a { display: block; font-size: 15px; color: var(--color-text); text-decoration: none; padding: 8px 0; border-top: 1px solid var(--color-border-dark); }
.home-guide a:hover { color: var(--color-green); }
.home-guide details summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--color-green); padding: 10px 0 2px; }
.home-guide details summary::-webkit-details-marker { display: none; }
.home-guide details[open] summary { display: none; }

/* --- App in arrivo --- */
.home-app { background: #10261a; color: #ffffff; }
.home-app .home-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.home-app-text { flex: 1 1 420px; }
.home-app .home-eyebrow { color: #8fd19e; }
.home-app h2 { margin: 0; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; }
.home-app p.home-app-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #cfe3d5; max-width: 560px; }
.home-app-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.home-app-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #ffffff; color: #10261a; font-weight: 700; font-size: 16px; }
.home-app-link { color: #8fd19e; font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.home-app-link:hover { color: #ffffff; text-decoration: underline; }

/* --- Tema scuro --- */
[data-theme="dark"] .home-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.45); }
[data-theme="dark"] .hole-clubs strong { background: rgba(134,239,172,0.14); }
[data-theme="dark"] .hole-panel { background: #1c1c1e; }
[data-theme="dark"] .home-section--alt { background: #2c2c2e; }

/* Notizie in home: schede compatte (titolo e data, senza riassunto) */
#news .news-card-title { font-size: 19px; line-height: 1.3; }
#news .news-card-summary { display: none; }
#news .news-card-image { height: 180px; object-fit: cover; }

/* Telefono: la foto sta sopra e il testo sotto, su fondo scuro, così non si sovrappongono */
@media (max-width: 700px) {
    .home-hero { display: block; min-height: 0; }
    .home-hero::after { display: none; }
    .home-hero-img { position: relative; display: block; height: 360px; object-position: 55% 45%; animation: none; }
    .home-hero-content { padding-top: 28px; padding-bottom: 40px; }
}

/* Foto personali: niente "Salva immagine" (tasto destro o pressione lunga) e niente trascinamento.
   Lo screenshot resta possibile: nessun sito può impedirlo. */
.home-protect { pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
