/* 
   Perla Nera - Style principale
   Un tema elegante e premium per servizi di pulizia di alta gamma
*/

/* Variabili CSS per colori e transizioni */
:root {
    --black: #0b0b0b;
    --black-soft: #111111;
    --gold: #cba135;
    --gold-light: #e6c97a;
    --gold-hover: #bfa76f;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --transition: all 0.3s ease;
}

/* Reset CSS base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    background-color: var(--black);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografia generale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: var(--black);
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 161, 53, 0.4);
}

.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 50px;
}

/* Header e navigazione */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    max-height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 80px;
}

/* Logo nell'header */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 70px;
    width: auto;
    transition: var(--transition);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo a:hover img {
    transform: scale(1.02);
}

/* Stile per il testo del brand */
.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-left: 15px;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
}

/* Stile specifico per ingrandire solo il nome nel header */
#header-brand {
    font-size: 28px; /* Dimensione aumentata come richiesto */
}

.logo a:hover .brand-text {
    color: #d4af37;
}

.nav-links {
    display: flex;
    list-style: none;
}

/* Spacing per le voci di menu */
.nav-links li {
    margin-left: 30px;
    margin-bottom: 5px; /* Aggiunto per migliorare la spaziatura verticale con font più grande */
}

/* Stile dei link del menu di navigazione */
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem; /* Dimensione del testo ingrandita per migliore leggibilità */
    font-weight: 400;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    font-family: 'Playfair Display', serif;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Link attivo nel menu */
.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero section - Sezione principale */
.hero {
    height: 60vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center 35%;
    margin-top: 80px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero più alta su desktop per effetto immersivo */
@media (min-width: 1024px) {
    .hero {
        height: 90vh;
    }
    
    .hero-local {
        height: 90vh;
    }
    
    /* Testo più grande su desktop */
    .hero h1, .hero-local h1 {
        font-size: 5rem;
        margin-bottom: 30px;
    }
    
    .hero .subtitle, .hero-local .subtitle {
        font-size: 1.5rem;
        margin-bottom: 50px;
    }
}

/* Scroll indicator - Icona professionale animata */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.scroll-icon {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    animation: smoothBounce 2.5s ease-in-out infinite;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-icon {
    color: var(--gold-light);
    transform: scale(1.1);
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

@keyframes smoothBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* Stile per hero con immagine locale */
.hero-local {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-local img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    object-position: center 35%;
    transition: transform 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
    width: 100%;
}

.hero h1, .hero-local h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle, .hero-local .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #fff;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
}

/* Animazione sottile per il testo hero */
.hero-content h1,
.hero-content .subtitle {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Sezioni principali */
.page-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-top: 50px;
}

.column {
    flex: 1 1 300px;
}

/* Sezione Chi Siamo */
.team-section {
    margin: 40px 0;
}

/* Layout per la griglia dei membri del team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: rgba(17, 17, 17, 0.5);
    border: 1px solid rgba(203, 161, 53, 0.1);
    border-radius: 3px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(203, 161, 53, 0.3);
}

/* Contenitore per l'immagine del team per mantenere proporzioni */
.team-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--gold-light);
    position: relative;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.08);
}

.team-member h3 {
    margin: 10px 0 5px;
    font-size: 1.4rem;
}

.team-position {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    font-style: italic;
}

.team-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Aggiunta di icone social per i membri del team */
.team-social {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(203, 161, 53, 0.1);
    color: var(--gold);
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .team-image-container {
        width: 150px;
        height: 150px;
    }
    
    .team-member h3 {
        font-size: 1.2rem;
    }
    
    .team-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 40px auto 0;
    }
}

/* Galleria per I Nostri Lavori */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 3px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 11, 11, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

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

/* Form di contatto */
.contact-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(203, 161, 53, 0.2);
    border-radius: 3px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(255, 255, 255, 0.08);
}

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

/* Informazioni di contatto */
.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--gold);
    margin-right: 15px;
    margin-top: 3px;
}

/* Social media */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(203, 161, 53, 0.1);
    border-radius: 50%;
    color: var(--gold);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--black-soft);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    transition: var(--transition);
}

.footer-logo a {
    display: flex;
    align-items: center;
}

.footer-logo a:hover img {
    transform: scale(1.02);
}

.footer-logo .brand-text {
    font-size: 1.5rem;
}

.footer-tagline {
    margin-top: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.credits {
    margin-top: 8px !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.credits a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

.credits a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Media Queries per responsive design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(11, 11, 11, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-200%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .two-columns {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-links {
        justify-content: center;
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero .subtitle,
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    /* Nascondi indicatore scroll su mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Adatta altezza hero su mobile per evitare schiacciamento */
    .hero,
    .hero-local {
        height: 50vh;
        margin-top: 70px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        width: 95%;
    }

    /* Dimensione testo menu mobile */
    .nav-links a {
        font-size: 1.2rem; /* Dimensione leggermente ridotta rispetto al desktop ma comunque ben visibile */
    }
}

/* Stili per i dati aziendali nel footer */
.company-details {
    margin-top: 10px;
    max-width: 350px;
    font-family: 'Poppins', sans-serif;
}

.company-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.company-name {
    color: var(--gold) !important;
    font-weight: 600;
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.contact-info a {
    color: var(--gold-light);
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Stile per il pulsante WhatsApp */
.whatsapp-button {
    margin-top: 15px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #25D366;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-link i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Ingrandimento dell'immagine hero della homepage */
#home-hero {
    background-size: 110% auto; /* Ingrandisce l'immagine al 110% della larghezza del contenitore */
    background-position: center center; /* Centra l'immagine */
}

/* Versione responsive per schermi più piccoli */
@media (max-width: 768px) {
    #home-hero {
        background-size: cover; /* Mantiene la copertura completa su mobile */
    }
    
    .company-details {
        text-align: center;
        margin: 20px auto;
    }
    
    .whatsapp-button {
        display: flex;
        justify-content: center;
    }
}
