/* 
  ARIA - haiaria.com
  Design System & Stylesheet
  T3AM Solution - Salerno, Italia
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700&display=swap');

:root {
  /* Colors */
  --bg-main: #FAFCFF;
  --bg-alt: #F0F7FF;
  --hero-gradient: linear-gradient(180deg, #E8F4FD 0%, #FAFCFF 100%);
  --accent-primary: #4A9EE8;
  --accent-secondary: #F5A623;
  --success: #2ECC71;
  --danger: #E74C3C;
  --text-main: #1A2332;
  --text-secondary: #5A7A9A;
  --border: #DCE9F5;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 24px rgba(74, 158, 232, 0.10);
  --shadow-hover: 0 12px 32px rgba(74, 158, 232, 0.18);
  
  /* Spacing & Borders */
  --radius-card: 16px;
  --radius-btn-lg: 32px;
  --radius-btn-sm: 20px;
  --radius-input: 12px;
  
  /* Fonts */
  --font-titles: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-titles);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: var(--radius-btn-sm);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-lg {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-btn-lg);
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background-color: #3a8cd4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 232, 0.3);
}

.btn-secondary {
  background-color: var(--accent-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #e69516;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: rgba(74, 158, 232, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  color: var(--accent-primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  padding: 1rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-titles);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links > li > a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links > li > a:hover {
  color: var(--accent-primary);
}

.nav-links > li > a:hover::after {
  width: 100%;
}

.nav-item {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-20px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  padding: 1rem;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) translateX(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.dropdown a {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dropdown a:hover {
  background: var(--bg-alt);
  color: var(--accent-primary);
  transform: translateX(5px);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Mobile Nav Toggler */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: 0.3s;
}

/* Base Sections */
section {
  padding: 6rem 5%;
}

.section-title {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 700px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: 0.4s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-blue { background: #E8F4FD; color: #4A9EE8; }
.badge-green { background: #E9FBE9; color: #2ECC71; }
.badge-orange { background: #FFF5E6; color: #F5A623; }

.hero-dashboard-mockup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #eee;
}

.dashboard-header {
  background: var(--accent-primary);
  padding: 1rem;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-content {
  padding: 1.5rem;
}

.call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* Pricing Table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  position: relative;
}

.pricing-card.featured::before {
  content: "PIÙ SCELTO";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Calculator Style */
.calculator-container {
  background: var(--bg-alt);
  padding: 3rem;
  border-radius: var(--radius-card);
  max-width: 1000px;
  margin: 2rem auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.range-input {
  margin-bottom: 2rem;
}

.range-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #dce9f5;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.results-panel {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.result-grand-total {
  border-top: 2px solid var(--bg-alt);
  padding-top: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.grand-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success);
  display: block;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-question i {
  transition: 0.3s;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 500px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: var(--bg-alt);
  padding: 5rem 5% 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

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

/* Wave Divider */
.wave {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-title h2 { font-size: 2rem; }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: white;
  z-index: 2000;
  padding: 5rem 2rem;
  transition: 0.5s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul li {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Sector Grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.sector-card {
  padding: 2rem;
  text-align: left;
}

.sector-card i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.sector-problem {
  background: #fff5f5;
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid #f87171;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.sector-solution {
  background: #f0fdf4;
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid #2ecc71;
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(74, 158, 232, 0.1);
}

/* Sharing Dropdown */
.share-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: white;
  min-width: 200px;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.share-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-dropdown a {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.share-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--accent-primary);
}
