/* ============================================
   Appartamento 7 Waterfront Genova - CSS
   Design Luxury con 22 Foto Galleria
   ============================================ */

/* CSS Reset & Variables */
:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7e;
    --accent-color: #d4af37;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #dfe6e9;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 58, 82, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.btn-nav {
    background: var(--accent-color);
    padding: 10px 25px;
    border-radius: 25px;
    color: var(--white) !important;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(26, 58, 82, 0.7), rgba(26, 58, 82, 0.7)),
                url('https://www.genspark.ai/api/files/s/jetFCr1Y') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 58, 82, 0.4), rgba(26, 58, 82, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease 0.3s backwards;
}

.hero-badge i {
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.7s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s backwards;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: #c19e2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* ============================================
   Features Strip
   ============================================ */
.features-strip {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.feature-item h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   Apartment Section
   ============================================ */
.apartment {
    background: var(--light-bg);
}

.apartment-content {
    max-width: 900px;
    margin: 0 auto;
}

.apartment-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.apartment-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.amenity i {
    font-size: 2rem;
    color: var(--accent-color);
}

.amenity span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   Gallery Section - 22 FOTO
   ============================================ */
.gallery {
    background: var(--white);
}

.gallery-section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 60px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-section-title:first-of-type {
    margin-top: 0;
}

.gallery-section-title i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.gallery-section-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 82, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 30px;
    padding: 20px 25px;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    border-radius: 5px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 40px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   Booking Form
   ============================================ */
.booking {
    background: var(--light-bg);
}

.booking-container {
    max-width: 700px;
    margin: 0 auto;
}

.booking-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-group label i {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

/* ============================================
   Reviews Section
   ============================================ */
.reviews {
    background: var(--white);
}

.reviews-platforms {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.platform {
    text-align: center;
}

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

.platform-rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.rating-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

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

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

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

.review-rating {
    color: var(--accent-color);
}

.review-source {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.review-author {
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-cta {
    text-align: center;
}

/* ============================================
   Location Section
   ============================================ */
.location {
    background: var(--light-bg);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.address-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.address-box h3,
.distances h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.address-box i,
.distances i {
    color: var(--accent-color);
}

.distances ul {
    list-style: none;
}

.distances li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.distances li i {
    font-size: 1.2rem;
}

/* ============================================
   Attractions Section
   ============================================ */
.attractions {
    background: var(--white);
}

.attractions-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.attraction-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

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

.attraction-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.attraction-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.attraction-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.distance {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.restaurants-list {
    display: grid;
    gap: 20px;
}

.restaurant-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.restaurant-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.restaurant-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.restaurant-item i {
    color: var(--accent-color);
}

.restaurant-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.restaurant-item small {
    display: block;
    margin-top: 5px;
    font-style: italic;
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.experience-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
}

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

.experience-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.experience-card p {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.small-list {
    list-style: none;
    padding-left: 0;
}

.small-list li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.highlight {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-section a {
    color: var(--white);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section i {
    margin-right: 8px;
    color: var(--accent-color);
}

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

.footer-bottom p {
    opacity: 0.7;
    margin: 10px 0;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        padding: 30px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .booking-form {
        padding: 30px 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 20px;
        font-size: 20px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .attractions-grid,
    .experiences-grid {
        grid-template-columns: 1fr;
    }
}
