/* 
   CDTI - Clear Drop Tech Innovation
   Premium Static Landing Page Stylesheet
*/

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --background: #ffffff;
  --foreground: #0a1628;
  
  /* Color Palette */
  --primary: #006BA6;
  --secondary: #10B981;
  --muted-foreground: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);
  --footer-bg: rgba(241, 245, 249, 0.4);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* HEADER */
.header {
  height: 5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 3rem;
  width: auto;
}

/* HERO SECTION */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(224, 242, 254, 0.3) 50%, #ffffff 100%);
  padding: 5rem 0;
}

.hero-container {
  text-align: center;
  max-width: 850px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  
  /* Heading Gradient */
  background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary); /* Fallback */
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
}

/* BUTTON */
.btn-contattaci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--foreground);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-contattaci:hover {
  background-color: #f8fafc;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.btn-contattaci:active {
  transform: translateY(0);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--footer-bg);
  padding: 3rem 0 2rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: flex-end;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-company {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .footer-right {
    text-align: right;
  }
}

.footer-info {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-email {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition);
}

.footer-email:hover {
  color: var(--primary);
}

/* COPYRIGHT SECTION */
.footer-copyright {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-copyright {
    flex-direction: row;
    text-align: left;
    gap: 0;
  }
}

/* BUTTON TRASPARENZA */
.btn-trasparenza {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0f5b94; /* Color matching the design */
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px; /* Pill shape */
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(15, 91, 148, 0.1), 0 2px 4px -1px rgba(15, 91, 148, 0.06);
}

.btn-trasparenza:hover {
  background-color: #0d5082;
  box-shadow: 0 10px 15px -3px rgba(15, 91, 148, 0.2), 0 4px 6px -2px rgba(15, 91, 148, 0.1);
  transform: translateY(-1px);
}

.btn-trasparenza:active {
  transform: translateY(0);
}

.btn-trasparenza svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-trasparenza:hover svg {
  transform: scale(1.1);
}

/* MODAL FOR TRANSPARENCY */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal:target {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 22, 40, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1010;
}

.modal:target .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.modal-header-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--foreground);
}

.modal-content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  /* Premium scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.modal-company {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(0, 107, 166, 0.1);
  padding-bottom: 0.5rem;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .transparency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .full-width {
    grid-column: span 2;
  }
}

.transparency-card {
  display: flex;
  gap: 1rem;
  background-color: #f8fafc;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.transparency-card:hover {
  background-color: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.06);
}

.card-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(0, 107, 166, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-label {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-text p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.card-list {
  list-style-type: none;
  padding-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  position: relative;
  padding-left: 1.25rem;
}

.card-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.card-additional-text {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  font-size: 0.85rem !important;
}

/* KEYFRAMES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
