/*
Theme Name: Fasty
Theme URI: 
Description: Un tema moderno per sensibilizzare sul gioco d'azzardo responsabile
Author: GioResponsabilmente
Author URI: 
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fasty
*/

/* Font Face Declarations - Satoshi Variable Fonts */
@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-variable-italic.woff2")
    format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary-color: #00ff9d;
  --primary-dark: #00cc7a;
  --secondary-color: #004d31;
  --background-dark: #0a0a0a;
  --background-card: rgba(255, 255, 255, 0.03);
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --text-muted: #6b7280;
  --warning-color: #ff6b6b;
  --success-color: #51cf66;
  --info-color: #339af0;
  --gradient-primary: linear-gradient(135deg, #00ff9d 0%, #00cc7a 100%);
  --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  --shadow-glow: 0 0 30px rgba(0, 255, 157, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);

  /* Font Variables */
  --font-family-base: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

/* Reset e Responsive Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px; /* Aumentato da 16px a 18px */
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Forza il contenimento */
main {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

/* Sezioni Base */
section {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 50%,
      var(--secondary-color) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(0, 255, 157, 0.1) 0%,
      transparent 50%
    );
}

.animated-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle,
      rgba(0, 255, 157, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 50px 50px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(30px, -60px) rotate(240deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content .container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--background-card);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: 50px;
  font-size: clamp(1.1rem, 3vw, 1.2rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem); /* Aumentato da 1.8rem */
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--warning-color);
  font-weight: var(--font-weight-bold);
}

.hero-description {
  font-size: clamp(1.2rem, 3vw, 1.4rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-regular);
  color: var(--text-gray);
  margin-bottom: 3rem;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  min-width: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.8rem */
  flex: 1;
  min-width: 140px;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

.btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--background-dark);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 350px;
  justify-self: center;
}

.stats-card.floating {
  background: var(--background-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  animation: floatUp 3s ease-in-out infinite;
  width: 100%;
  max-width: 100%;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-number {
  font-size: clamp(1.8rem, 5vw, 2.2rem); /* Aumentato da 1.2rem */
  font-weight: var(--font-weight-black);
  color: var(--primary-color);
  word-break: break-all;
  overflow-wrap: break-word;
}

.stat-label {
  color: var(--text-gray);
  font-size: clamp(1rem, 2.5vw, 1.1rem); /* Aumentato da 0.7rem */
  font-weight: var(--font-weight-medium);
  overflow-wrap: break-word;
}

/* Statistics Section */
.stats-section {
  padding: 4rem 0;
  background: var(--background-card);
  width: 100%;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section-header h2 {
  font-size: clamp(2rem, 6vw, 3rem); /* Aumentato da 1.5rem */
  font-weight: var(--font-weight-black);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.section-header p {
  font-size: clamp(1.2rem, 3vw, 1.4rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-regular);
  color: var(--text-gray);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.stat-card {
  background: var(--background-dark);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem); /* Aumentato da 1.2rem */
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stat-card p {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.8rem */
  font-weight: var(--font-weight-medium);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Warning Section */
.warning-section {
  padding: 4rem 0;
  width: 100%;
  overflow: hidden;
}

.warning-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.warning-text {
  width: 100%;
  min-width: 0;
}

.warning-text h2 {
  font-size: clamp(2.2rem, 6vw, 3rem); /* Aumentato da 2rem */
  font-weight: var(--font-weight-black);
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.warning-subtitle {
  font-size: clamp(1.3rem, 3vw, 1.4rem); /* Aumentato da 1rem */
  font-weight: var(--font-weight-regular);
  color: var(--text-gray);
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.warning-list {
  margin-top: 2rem;
  width: 100%;
}

.warning-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--background-card);
  border-radius: 15px;
  border-left: 4px solid var(--warning-color);
  width: 100%;
  min-width: 0;
}

.warning-icon {
  font-size: clamp(1.4rem, 3vw, 1.6rem); /* Aumentato da 1.2rem */
  flex-shrink: 0;
}

.warning-details {
  width: 100%;
  min-width: 0;
}

.warning-details h4 {
  color: var(--warning-color);
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.4rem); /* Aumentato da 1rem */
  font-weight: var(--font-weight-bold);
  word-wrap: break-word;
}

.warning-details p {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-regular);
  word-wrap: break-word;
}

/* Support Section */
.support-section {
  padding: 4rem 0;
  background: var(--background-card);
  width: 100%;
  overflow: hidden;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.support-card {
  background: var(--background-dark);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.support-card.primary {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.support-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 4vw, 1.6rem); /* Aumentato da 1.2rem */
  font-weight: var(--font-weight-bold);
  word-wrap: break-word;
}

.support-card p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-regular);
  word-wrap: break-word;
}

.phone-number {
  font-size: clamp(1.6rem, 4vw, 2.2rem); /* Aumentato da 1.2rem */
  font-weight: var(--font-weight-black);
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
  word-break: break-all;
  line-height: 1.2;
}

.support-action {
  width: 100%;
}

.call-btn,
.chat-btn,
.locate-btn {
  background: var(--gradient-primary);
  color: var(--background-dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.9rem */
  word-wrap: break-word;
}

.call-btn:hover,
.chat-btn:hover,
.locate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}

/* Recovery Timeline */
.recovery-section {
  padding: 4rem 0;
  width: 100%;
  overflow: hidden;
}

.journey-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  width: 100%;
  min-width: 0;
}

.timeline-item.active {
  opacity: 1;
}

.timeline-marker {
  width: clamp(50px, 8vw, 60px); /* Aumentato da 40px */
  height: clamp(50px, 8vw, 60px); /* Aumentato da 40px */
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-black);
  color: var(--background-dark);
  flex-shrink: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.8rem */
}

.timeline-content {
  padding-top: 0.5rem;
  width: 100%;
  min-width: 0;
}

.timeline-content h4 {
  font-size: clamp(1.4rem, 3vw, 1.5rem); /* Aumentato da 1.1rem */
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  word-wrap: break-word;
}

.timeline-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-regular);
  word-wrap: break-word;
}

/* Testimonials */
.testimonials-section {
  padding: 4rem 0;
  background: var(--background-card);
  width: 100%;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.testimonial-card {
  background: var(--background-dark);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  width: 100%;
  min-width: 0;
}

.testimonial-card.featured {
  border: 2px solid var(--primary-color);
}

.quote-mark {
  font-size: clamp(3rem, 8vw, 4rem); /* Aumentato da 2.5rem */
  font-weight: var(--font-weight-black);
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-content {
  width: 100%;
  min-width: 0;
}

.testimonial-content p {
  margin-bottom: 2rem;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem); /* Aumentato da 0.9rem */
  font-weight: var(--font-weight-regular);
  word-wrap: break-word;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.author-avatar {
  width: clamp(50px, 8vw, 60px); /* Aumentato da 40px */
  height: clamp(50px, 8vw, 60px); /* Aumentato da 40px */
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-black);
  color: var(--background-dark);
  flex-shrink: 0;
  font-size: clamp(1.2rem, 3vw, 1.4rem); /* Aumentato da 1rem */
}

.author-info {
  width: 100%;
  min-width: 0;
}

.author-info h5 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.2rem, 3vw, 1.3rem); /* Aumentato da 1rem */
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.author-info span {
  color: var(--text-gray);
  font-size: clamp(1rem, 2vw, 1.1rem); /* Aumentato da 0.8rem */
  font-weight: var(--font-weight-regular);
  word-wrap: break-word;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(1rem, 2.5vw, 1.1rem); /* Aggiunto font-size */
}

/* Media Queries Ultra-Responsive */
@media screen and (max-width: 1024px) {
  .hero-content .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    justify-self: center;
    max-width: 300px;
  }

  .warning-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .warning-visual {
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 16px; /* Aumentato da 14px */
  }

  .container {
    padding: 0 20px; /* Manteniamo 20px anche su tablet */
  }

  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn {
    max-width: 100%;
    flex: none;
    min-width: 0;
  }

  .stats-section,
  .warning-section,
  .support-section,
  .recovery-section,
  .testimonials-section {
    padding: 3rem 0;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-item {
    gap: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-card.featured {
    transform: none;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 15px; /* Aumentato da 12px */
  }

  .container {
    padding: 0 20px; /* Manteniamo 20px anche su mobile */
  }

  .hero-badge {
    padding: 0.4rem 1rem;
  }

  .stats-card.floating {
    padding: 1.5rem 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .warning-item {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
  }

  .support-card {
    padding: 1.5rem 1rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

@media screen and (max-width: 360px) {
  html {
    font-size: 14px; /* Aumentato da 11px */
  }

  .container {
    padding: 0 20px; /* Manteniamo 20px anche su schermi piccoli */
  }

  .hero-section {
    padding: 2rem 0;
  }

  .btn {
    padding: 0.8rem 1rem;
  }

  .stats-card.floating {
    padding: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .support-card {
    padding: 1rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .warning-item {
    padding: 0.8rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .stats-section,
  .warning-section,
  .support-section,
  .recovery-section,
  .testimonials-section {
    padding: 2rem 0;
  }
}

@media screen and (max-width: 320px) {
  html {
    font-size: 13px; /* Aumentato da 10px */
  }

  .container {
    padding: 0 20px; /* Manteniamo 20px anche su schermi molto piccoli */
  }

  .btn {
    padding: 0.7rem 0.8rem;
  }
}
