/* BG Lines */
.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bg-lines span {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    animation: leftRightOne 18s infinite;
}

.bg-dark .bg-lines span {
    background: rgba(255, 255, 255, 0.05);
}

.bg-lines span:nth-child(1) { left: 20%; }
.bg-lines span:nth-child(2) { left: 40%; }
.bg-lines span:nth-child(3) { left: 60%; }
.bg-lines span:nth-child(4) { left: 80%; }

@keyframes leftRightOne {
    0% { transform: translateX(0); }
    50% { transform: translateX(15px); }
    100% { transform: translateX(0); }
}

/* Sections General */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background-color: #fff;
}

.section .container {
    position: relative;
    z-index: 3;
}

.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-top: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 700;
}

/* .section-header h2::before {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,0,0,0.3);
    z-index: -1;
    white-space: nowrap;
    opacity: 0.8;
    font-weight: 900;
    pointer-events: none;
    letter-spacing: 5px;
} */

.bg-dark .section-header h2 {
    color: #fff;
}

.bg-dark .section-header h2::before {
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

@media (max-width: 768px) {
    .section-header h2::before {
        font-size: 4rem;
    }
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.bg-dark .section-header p {
    color: #ccc;
}

/* NUOVO MODAL DINAMICO */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 15px;
}
.modal.active { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, 0.9); backdrop-filter: blur(10px); }
.modal-container {
  position: relative; background: #fff; width: 100%; max-width: 1000px;
  max-height: 95vh; display: grid; grid-template-columns: 1fr 1.2fr;
  overflow: hidden; border-radius: 0; animation: modalEnter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes modalEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-image-side { position: relative; background: #0f1115; height: 100%; }
.modal-image-side img { width: 100%; height: 100%; object-fit: cover; }
.modal-info-side { 
  padding: clamp(25px, 5vw, 50px); 
  overflow-y: auto; 
  display: flex; 
  flex-direction: column;
  max-height: 100%;
}
.modal-close {
  position: absolute; top: 15px; right: 15px; background: #fff;
  border: 1px solid #eee; width: 44px; height: 44px; border-radius: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: var(--primary-color);
}
.modal-close:hover { transform: rotate(90deg); color: var(--secondary-color); }
.modal-cat { color: var(--secondary-color); font-weight: 800; font-size: 13px; text-transform: uppercase; margin-bottom: 8px; display: block; font-family:'Inter', sans-serif;}
.modal-title { font-family: 'Montserrat', sans-serif; font-size: clamp(24px, 4vw, 32px); font-weight: 900; margin: 0 0 20px 0; line-height: 1.1; color: var(--primary-color); }
.modal-description { font-size: 16px; color: #666; margin-bottom: 30px; font-family:'Inter', sans-serif;}

.modal-features { list-style: none; padding: 0; margin: 0 0 35px 0; display: grid; gap: 12px; }
.modal-features li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; font-family:'Inter', sans-serif; color: #333;}
.modal-features li::before { content: ""; width: 8px; height: 8px; background: var(--secondary-color); border-radius: 0; flex-shrink: 0; }

.modal-footer { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.modal-footer .btn { font-family:'Inter', sans-serif; font-size: 13px; text-transform:uppercase; font-weight:800; padding: 14px 28px; }

.btn-outline { background: transparent; border: 2px solid #eee; color: #666; }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

@media (max-width: 1024px) {
  .modal-container { grid-template-columns: 1fr; }
  .modal-image-side { height: 250px; }
  .modal-info-side { padding: 35px 25px; }
}
