@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark Theme (Default) */
  --bg-color: #050505;
  --bg-panel: #111111;
  --bg-panel-hover: #161616;
  --release-plan-bg: linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 86%, var(--accent-color) 14%), var(--bg-color));
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --accent-color: #10B981;
  --accent-hover: #059669;
  --border-color: #222222;
  --header-bg: rgba(5, 5, 5, 0.9);
  --phone-shadow: 0 24px 54px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --phone-frame-border: color-mix(in srgb, var(--border-color) 75%, #ffffff 25%);
  --phone-frame-inner-border: rgba(255, 255, 255, 0.16);
  --phone-notch-bg: color-mix(in srgb, var(--bg-color) 86%, #000000 14%);
  
  --font-main: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

[data-theme="light"] {
  --bg-color: #F9FAFB;
  --bg-panel: #FFFFFF;
  --bg-panel-hover: #F3F4F6;
  --release-plan-bg: linear-gradient(180deg, #d8e9df 0%, #c7dfd2 100%);
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --accent-color: #059669;
  --accent-hover: #047857;
  --border-color: #E5E7EB;
  --header-bg: rgba(249, 250, 251, 0.9);
  --phone-shadow: 0 22px 48px rgba(17, 24, 39, 0.22), 0 0 0 1px rgba(17, 24, 39, 0.1);
  --phone-frame-border: #9CA3AF;
  --phone-frame-inner-border: rgba(17, 24, 39, 0.26);
  --phone-notch-bg: #1F2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-panel);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header/Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 3;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-color);
}

.logo-img {
  height: auto;
  width: 64px;
  margin-right: 1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  height: 40px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-main);
  white-space: nowrap;
  transition: all var(--transition-speed) ease;
}

.lang-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.lang-flag-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-chevron {
  font-size: 0.6rem;
  transition: transform var(--transition-speed) ease;
  opacity: 0.7;
}

.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1100;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-main);
  text-align: left;
  transition: background-color var(--transition-speed) ease;
}

.lang-option:hover {
  background-color: var(--bg-panel-hover);
}

.lang-option.active {
  color: var(--accent-color);
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s linear;
}

/* Mobile Nav Active State */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

.theme-toggle {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.theme-toggle i {
  font-size: 1.1rem;
}

[data-theme="light"] .theme-toggle i.fa-moon { display: none; }
[data-theme="dark"] .theme-toggle i.fa-sun { display: none; }
/* Default to dark if no attribute set */
body:not([data-theme]) .theme-toggle i.fa-sun { display: none; }

/* Phone Mockup Carousel */
.phone-mockup {
  position: relative;
  width: 21.5rem;
  height: 42.5rem;
  border: 6px solid var(--phone-frame-border);
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--bg-panel) 88%, #ffffff 12%), var(--bg-panel));
  flex-shrink: 0;
  box-shadow: var(--phone-shadow);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  inset: 0.7rem;
  border-radius: 34px;
  border: 1px solid var(--phone-frame-inner-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -10px 24px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 2;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 1.15rem;
  border-radius: 0 0 14px 14px;
  background: var(--phone-notch-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 3;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  padding: 1.15rem;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--border-color) 76%, #ffffff 24%);
  user-select: none;
  pointer-events: none;
}

.carousel-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.carousel-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  padding: 12rem 0 8rem;
  text-align: center;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

/* Cards */
.card {
  background-color: var(--bg-panel);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
}

.card:hover {
  background-color: var(--bg-panel-hover);
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* Security Section */
.security-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.security-list i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.25rem;
}

/* Characteristics Section */
.characteristics-content {
  text-align: left;
}

.characteristics-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.characteristics-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .characteristics-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .characteristics-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .characteristics-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .characteristics-text {
    font-size: 0.95rem;
  }
}

/* Security Section Centered */
.security-content {
  text-align: center;
}

.security-list-centered {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.security-list-centered li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.security-list-centered i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.security-list-centered h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000;
}

.security-list-centered p {
  color: #111;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Release Plan */
.release-plan-section {
  background: var(--release-plan-bg);
  border-top: 1px solid color-mix(in srgb, var(--border-color) 75%, var(--accent-color) 25%);
  border-bottom: 1px solid var(--border-color);
}

.release-plan-header {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.release-plan-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-color) 55%, var(--border-color) 45%);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.release-plan-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, var(--accent-color) 20%);
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--accent-color) 8%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.release-plan-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color) 20%, transparent);
  color: var(--accent-color);
  font-size: 1.2rem;
}

.release-plan-item h3 {
  margin-bottom: 0.5rem;
}

.release-plan-item p {
  margin-bottom: 0;
  max-width: 32ch;
}

@media (max-width: 768px) {
  .security-list-centered {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .release-plan-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .release-plan-item {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .release-plan-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background-color: var(--bg-panel);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .footer-logo-img {
    height: 28px;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links div {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Optimization */

/* Desktop (Large Screens) */
@media (min-width: 1200px) {
  h1 { font-size: 4rem; }
  .hero p { font-size: 1.35rem; }
}

/* Tablet (Medium Screens) */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .security-list li { justify-content: center; text-align: left; }
  
  .hero { padding: 10rem 0 6rem; }
}

/* Mobile (Small Screens) */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; line-height: 1.3; }
  h2 { font-size: 1.8rem; }
  p { font-size: 1rem; }
  
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  
  .menu-toggle { display: flex; }

  /* Nascondi il testo della lingua sul mobile, mostra solo la bandiera */
  .lang-label { display: none; }
  .lang-btn { padding: 0.5rem 0.6rem; }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
    gap: 0;
  }
  
  nav.active {
    right: 0;
  }
  
  .nav-link {
    margin: 1.5rem 0;
    font-size: 1.25rem;
    margin-right: 0;
  }
  
  .hero-cta { flex-direction: column; gap: 1rem; }
  .btn { width: 100%; }
  
  .grid-3 { grid-template-columns: 1fr; }
  
  .footer-content { flex-direction: column; text-align: center; gap: 3rem; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-logo { margin: 0 auto 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .hero { padding: 8rem 0 4rem; }
}

:root {
  --phone-width: 316px;
  --phone-height: 632px;
}

.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
  padding: 20px;
}

.phone-wrapper {
  width: var(--phone-width);
  height: var(--phone-height);
    background-color: var(--phone-frame-border);
  border-radius: 36px;
  padding: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 6px 6px rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-panel);
  border-radius: 24px;
    overflow: hidden; /* Taglia i contenuti che escono */
    position: relative;
    z-index: 1;
}

.phone-screen .carousel-track {
  transition: transform 1.1s ease;
}

.phone-screen .carousel-slide {
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
}

.phone-screen .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  border-radius: 24px;
  border: none;
}

/* Notch stile iPhone (opzionale) */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background-color: var(--phone-notch-bg);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 12;
    pointer-events: none;
}

@media (max-width: 992px) {
    .phone-wrapper {
        transform: scale(0.96);
    }
}

@media (max-width: 768px) {
  .phone-wrapper {
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  .phone-wrapper {
    transform: scale(0.84);
  }
}

