/* =============================================
   FRIMAC - Stili principali
   Versione: 1.0.0
   Ultimo aggiornamento: Gennaio 2025
   ============================================= */

:root {
  --sky-blue: #39a6f9;
  --dark-blue: #0e226b;
  --yellow: #ffea00;
  --white: #ffffff;
  --dark-gray: #262626;
  --light-gray: #f8f9fa;
  --footer-bg: #1a1a2e;
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif;
  font-weight: 300;
  color: var(--dark-gray);
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif;
  font-weight: 600;
  color: var(--dark-gray);
}

a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sky-blue);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Header
   ============================================= */
header {
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--sky-blue);
  font-weight: 400;
  font-size: 15px;
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-blue);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--dark-blue);
}

/* =============================================
   Hero Slider
   ============================================= */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(14, 34, 107, 0.85), rgba(57, 166, 249, 0.7));
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 42px;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero-list {
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  animation: slideInLeft 1.2s ease-out;
}

.hero-btn {
  display: inline-block;
  background: var(--sky-blue);
  color: white;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: slideInLeft 1.4s ease-out;
}

.hero-btn:hover {
  background: white;
  color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-nav span {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-nav span.active {
  background: white;
  transform: scale(1.2);
}

/* Offset per scroll con header sticky */
section[id],
div[id] {
  scroll-margin-top: 100px;
}

/* =============================================
   Activities Section
   ============================================= */
.activities {
  background: var(--light-gray);
  padding: 60px 0;
}

.section-title {
  color: var(--sky-blue);
  font-size: 28px;
  margin-bottom: 30px;
}

.activities-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.activities-logo {
  flex-shrink: 0;
}

.activities-logo-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.activities-logo-circle svg {
  width: 60px;
  height: 60px;
  fill: white;
}

.activities-list {
  list-style: none;
}

.activities-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  border-bottom: 1px solid rgba(57, 166, 249, 0.2);
}

.activities-list li:last-child {
  border-bottom: none;
}

.activities-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--sky-blue);
  font-weight: 700;
}

/* =============================================
   Services Section
   ============================================= */
.services {
  padding: 60px 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--sky-blue);
  box-shadow: 0 15px 40px rgba(57, 166, 249, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.service-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.service-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-btn {
  color: var(--sky-blue);
  font-weight: 500;
  font-size: 14px;
}

.service-btn:hover {
  color: var(--dark-blue);
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
  padding: 60px 0;
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  color: var(--sky-blue);
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-info p {
  color: #555;
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-detail-icon {
  width: 45px;
  height: 45px;
  background: var(--sky-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.contact-detail-text {
  font-size: 15px;
  color: var(--dark-gray);
}

/* =============================================
   Contact Form
   ============================================= */
.contact-form {
  background: white;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.contact-form h3 {
  color: var(--dark-blue);
  margin-bottom: 25px;
  font-size: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--dark-gray);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-privacy input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sky-blue);
}

.form-privacy label {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--sky-blue);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--sky-blue);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--dark-blue);
}

/* =============================================
   Footer
   ============================================= */
footer {
  background: var(--footer-bg);
  color: white;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-title {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  background: var(--sky-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-contact-text {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.copyright {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.copyright a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.copyright a:hover {
  color: var(--sky-blue);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content {
    left: 50px;
  }
  
  nav ul {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-content {
    left: 20px;
    right: 20px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-list {
    font-size: 16px;
  }
  
  .activities-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .activities-list li {
    text-align: left;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
}
