/**
 * CINIUS - LANDING PAGE STYLESHEET
 * Versione: 1.0
 * Per: Landing Page Facebook Ads
 * Riusabile per tutte le landing page Cinius
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   CSS VARIABLES (PERSONALIZZABILI)
   ============================================ */
:root {
  /* Colori Brand */
  --primary: #2c3e50;
  --accent: #c89b6e;
  --text: #333;
  --bg-light: #f8f6f3;
  --success: #27ae60;
  --error: #e74c3c;
  
  /* Typography */
  --font-heading: 'Shippori Mincho', serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.logo img {
  height: 50px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 18px;
}

.phone-number svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.btn-header {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-header:hover {
  background: #b88a5f;
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
  padding: 80px 20px 60px;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.cinius.com/images/products_home/letto_soppalco_rising_sollevabile.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 155, 110, 0.2);
  border: 2px solid var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 22px);
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.benefit-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.benefit-icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--accent);
}

.benefit-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  transition: transform 0.3s, color 0.3s;
}

.benefit-card:hover .benefit-icon svg {
  transform: scale(1.1);
  color: #b88a5f;
}

.benefit-text {
  font-size: 15px;
  font-weight: 500;
}

.cta-scroll {
  margin-top: 40px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-8px); }
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
  background: var(--bg-light);
  padding: var(--section-padding);
  position: relative;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.form-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-intro h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.form-intro-text {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.7;
}

.form-features {
  list-style: none;
}

.form-features li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 16px;
}

.form-features .icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s;
}

.form-features .icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.form-features li:hover .icon {
  background: #b88a5f;
  transform: scale(1.15);
}

.form-container {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-badge-top {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-header h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-header p {
  color: #666;
  font-size: 14px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.form-group label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 155, 110, 0.1);
}

.form-control.error {
  border-color: var(--error);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-wrapper label {
  margin: 0;
  font-weight: normal;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-wrapper a {
  color: var(--accent);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: #b88a5f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 155, 110, 0.4);
}

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

.form-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.form-note svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
  fill: var(--success);
}

/* ============================================
   SUCCESS OVERLAY
   ============================================ */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-overlay.show {
  display: flex;
}

.success-box {
  background: white;
  padding: 50px;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
}

.success-box h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
}

.success-box p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-close {
  background: var(--accent);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-close:hover {
  background: #b88a5f;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
  padding: var(--section-padding);
  background: white;
}

.reviews-header {
  text-align: center;
  margin-bottom: 50px;
}

.reviews-header h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 20px;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 20px 35px;
  border-radius: 50px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  margin-bottom: 50px;
}

.google-logo {
  height: 24px;
}

.stars {
  color: #fbbc04;
  font-size: 26px;
  letter-spacing: 2px;
}

.rating-info {
  border-left: 2px solid #e0e0e0;
  padding-left: 15px;
}

.rating-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.rating-count {
  font-size: 13px;
  color: #666;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  transition: all 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.review-stars {
  color: #fbbc04;
  font-size: 18px;
  letter-spacing: 1px;
}

.review-date {
  font-size: 12px;
  color: #999;
}

.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.author-info .name {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}

.author-info .verified {
  font-size: 12px;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 15px;
}

.gallery-header p {
  font-size: 18px;
  color: #666;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  padding: 70px 20px;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s;
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.trust-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  color: var(--accent);
  transition: all 0.3s;
}

.trust-icon svg {
  width: 70px;
  height: 70px;
  color: var(--accent);
  transition: color 0.3s;
}

.trust-item:hover .trust-icon {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.trust-item:hover .trust-icon svg {
  color: #b88a5f;
}

.trust-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
}

.trust-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: white;
  padding: 50px 20px 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-intro {
    text-align: center;
  }
  
  .form-features li {
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-cta {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
  
  .phone-number {
    font-size: 15px;
  }
  
  .btn-header {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .hero {
    padding: 60px 20px 40px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-benefits {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid,
  .gallery-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .success-box {
    padding: 30px 20px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
