@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/*===============================
  VARIABLES
===============================*/
:root {
    --primary-color: #d4af37;
    --secondary-color: #ffdf00;
    --dark-color: #0e0e0e;
    --light-color: #f8f9fa;
    --text-muted: #bdbdbd;
    --transition-speed: 0.3s;
    --radius: 10px;
    --font: 'Poppins', sans-serif;

    --gold-color: #FFD700; /* o il codice colore oro che preferisci */
    /* oppure */
    --gold-color: #D4AF37; /* oro più elegante */

}

/*===============================
  BASE STYLES
===============================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font);
    background-color: var(--dark-color);
    color: var(--light-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

/* Utility */
.container-fluid {
    width: 100%;
    padding-right: 2rem;
    padding-left: 2rem;
    margin-right: auto;
    margin-left: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    padding-right: 1rem;
    padding-left: 1rem;
    margin: auto;
}

/*===============================
  TYPOGRAPHY
===============================*/
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

    a:hover {
        color: var(--secondary-color);
    }

/*===============================
  NAVBAR (già ottimizzata)
===============================*/
.custom-navbar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: var(--dark-color);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: background-color var(--transition-speed);
    min-height: 80px; /* Altezza aumentata da default (es. 56px) */
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

    .custom-navbar .navbar-brand img {
        filter: brightness(1.2);
        max-height: 60px; /* Aumenta altezza logo */
    }

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-speed);
}

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width var(--transition-speed);
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

    .navbar-nav .nav-link:hover {
        color: var(--secondary-color);
    }

/*===============================
  BUTTONS
===============================*/
.btn-gold,
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    transition: all var(--transition-speed);
}

    .btn-gold:hover,
    .btn-primary:hover {
        background-color: var(--secondary-color);
        color: #000;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: #000;
    }


.benefits-section {
    background-color: var(--dark-color); /* sfondo scuro */
    color: var(--light-color); /* testo chiaro */
}

.benefit-box {
    background-color: #1c1c1c; /* come le card degli altri elementi */
    border-left: 5px solid var(--primary-color); /* evidenzia con colore oro */
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
    transition: transform var(--transition-speed);
    color: var(--light-color);
}

    .benefit-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
    }



    /* Override per il testo all'interno */
    .benefit-box h5 {
        color: var(--primary-color);
        font-weight: 700;
    }

    .benefit-box p {
        color: var(--text-muted);
    }

    /* Rimuovi il shadow chiaro bootstrap se c'è conflitto */
    .benefit-box.shadow {
        box-shadow: none;
    }

/* Responsive Hero Fix */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/*===============================
  SECTIONS
===============================*/
.section-title {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

    .section-title::after {
        content: '';
        width: 60px;
        height: 3px;
        background: var(--primary-color);
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 0 10px var(--primary-color);
    }

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

/*===============================
  CARDS
===============================*/
.property-card,
.benefit-card,
.testimonial-card {
    background-color: #1c1c1c;
    color: var(--light-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

    .property-card:hover,
    .benefit-card:hover,
    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
    }

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.property-features {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/*===============================
  STEP CARD
===============================*/
.step-card {
    background-color: #121212;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

/*===============================
  CONTACT FORM
===============================*/
.contact-form .form-control,
.contact-form .form-select {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: var(--light-color);
    border-radius: var(--radius);
    padding: 12px 15px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

    .contact-form .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    }
#contact-form {
    scroll-margin-top: 100px; /* spazio dal top dopo scroll */
}

/*===============================
  FOOTER
===============================*/
footer {
    background-color: #0b0b0b;
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/*===============================
  RESPONSIVE
===============================*/
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.4rem;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .property-image {
        height: 160px;
    }

    .step-number {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}

/*===============================
  CUSTOM CONTAINER
===============================*/
.custom-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/*===============================
  BACKGROUND & SHADOWS
===============================*/
.bg-dark {
    background-color: #1a1a1a !important;
    color: var(--light-color);
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/*===============================
  HERO SECTION
===============================*/
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh; /* altezza minima */
    display: flex;
    align-items: center;
    background-color: var(--dark-color);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.img-half {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* overlay scuro */
    z-index: 2;
}

.text-overlay {
    position: relative;
    z-index: 3;
    max-width: 1000px; /* larghezza testo */
    padding: 60px 30px;
    color: var(--light-color);
}

    .text-overlay h1,
    .text-overlay p {
        text-align: left; /* testo allineato a sinistra */
    }

    .text-overlay .btn {
        margin-right: 15px;
        text-align: left;
    }

@media (max-width: 768px) {
    .text-overlay {
        max-width: 100%;
        padding: 40px 20px;
    }

    .hero-section {
        min-height: 60vh;
    }

    .text-overlay h1 {
        font-size: 2rem;
    }
}
.map-container {
    width: 100%;
    height: 400px; /* Ridotta da 600px a 400px */
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}
.scroll-down-btn {
    position: absolute;
    bottom: 10px; /* poco sopra il bordo basso */
    left: 50%; /* centro orizzontale */
    transform: translateX(-50%);
    font-size: 4rem;
    color: #ffd700;
    text-decoration: none;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease, color 0.3s ease;
}

    .scroll-down-btn:hover {
        color: #ffec7a;
        transform: translateX(-50%) scale(1.3);
    }

.arrow {
    display: inline-block;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* Preloader e animazioni */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

    .preloader.hidden {
        opacity: 0;
        visibility: hidden;
    }

/* Animazioni ottimizzate */
[data-animation] {
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.animate__animated {
    animation-fill-mode: both;
}

/* Personalizza le animazioni per evitare salti */
@keyframes customFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.animate__fadeInUp {
    animation-name: customFadeInUp;
}

.preloader-inner {
    text-align: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.preloader-logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
[data-animation] {
    opacity: 0;
}

.animate__animated {
    opacity: 1;
}

.service-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
}

/* CSS personalizzato */
/* Hamburger menu color per navbar scura */
.navbar-toggler {
    border-color: gold; /* bordo visibile */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='gold' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Freccia scroll hero */
.scroll-down-btn .arrow {
    font-size: 2rem; /* dimensione di default desktop */
    transition: all 0.3s ease;
}

/* Ridimensionamento per tablet */
@media (max-width: 992px) {
    .scroll-down-btn .arrow {
        font-size: 1.8rem;
    }
}

/* Ridimensionamento per mobile */
@media (max-width: 576px) {
    .scroll-down-btn .arrow {
        font-size: 1.5rem;
    }
}

/* Stili aggiuntivi per la pagina About */
.about-image-container {
    overflow: hidden;
    border-radius: var(--radius);
}

.value-card, .team-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

    .value-card:hover, .team-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
    }

.value-icon, .team-image {
    transition: transform var(--transition-speed);
}

.value-card:hover .value-icon, .team-card:hover .team-image {
    transform: scale(1.1);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--primary-color);
        transform: translateX(-50%);
    }

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: 50%;
        text-align: right;
        padding-right: 30px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50%;
        margin-right: 0;
        padding-left: 30px;
    }

.timeline-year {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.social-links a {
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

    .social-links a:hover {
        color: var(--secondary-color);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
        margin-right: 0;
        text-align: left;
        padding-left: 30px;
        padding-right: 15px;
    }
}

/*===============================
  LAYOUT FIXES
===============================*/
html, body {
    height: 100%; /* Assicura che html e body occupino tutta l'altezza */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Usa viewport height invece di 100% */
}

main {
    flex: 1 0 auto; /* Permette al contenuto principale di espandersi */
}

footer {
    flex-shrink: 0; /* Impedisce al footer di ridursi */
    margin-top: auto; /* Spinge il footer in fondo */
}

/* Assicurati che il contenuto non sia nascosto dal footer */
.container, .custom-container {
    padding-bottom: 2rem; /* Spazio aggiuntivo */
}


/* Testo automatico */
.benefit-box h5,
.step-card h4,
.step-card p,
.benefit-box p {
    font-size: clamp(0.85rem, 1.8vw, 1rem); /* scala testo in base alla larghezza dello schermo */
}

/* Immagini e icone ridimensionabili */
.benefit-box i,
.step-card .step-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

/* Cards sempre altezza uniforme */
.benefit-box,
.step-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

@media (max-width: 576px) {
    .benefits-section .col-6,
    .how-it-works .col-6 {
        padding-left: 0.15rem;
        padding-right: 0.25rem;

    }

    .benefit-box,
    .step-card {
        width: 100%;
        box-sizing: border-box;
    }
}

.circular-image {
    width: min(400px, 90vw);
    height: min(400px, 90vw);
    object-fit: cover;
    border: 9px solid var(--primary-color); /* Opzionale: aggiunge un bordo dorato */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Opzionale: aggiunge un'ombra */
    object-position: 95% 5%; /* Centrato - valore predefinito */
}

@media (max-width: 992px) {
    .circular-image {
        width: min(300px, 80vw);
        height: min(300px, 80vw);
    }
}


