/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1A2B40;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
.header {
    background: #1A2B40;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: #1E3A8A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    color: #FFA500;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-image {
    width: 225px; /* Increased by 50% */
    height: 225px; /* Increased by 50% */
    object-fit: contain;
    background: transparent;
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FFA500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FFA500;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 200px; /* Increased to compensate for larger logo */
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-text {
    text-align: center;
}

.main-headline {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.confronta {
    color: #1E3A8A;
}

.scegli {
    color: #FFA500;
    position: relative;
}

.scegli::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 6px;
    background: #FFA500;
}

.risparmia {
    color: #1E3A8A;
}

/* Bottom Sections */
.bottom-sections {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    margin-top: auto;
}

.left-section {
    flex: 1;
    padding: 0 2rem;
}

.right-section {
    flex: 1;
    padding: 0 2rem;
    text-align: right;
}

.section-text {
    text-align: left;
}

.right-section .section-text {
    text-align: right;
}

.text-line {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #1E3A8A;
}

.la-tua {
    color: #1E3A8A;
}

.energia,
.serenita {
    color: #FFA500;
    position: relative;
}

.energia::after,
.serenita::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: #FFA500;
}

/* Page Title */
.page-title {
    text-align: center;
    padding: 3rem 0 2rem 0;
    margin-top: 2rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 900;
    color: #FFA500;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 2rem;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: #FFA500;
}

/* Services Section */
.services-section {
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFA500;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: #FFA500;
    text-underline-offset: 8px;
}

.service-description {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: white;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FFA500;
    font-weight: bold;
}

/* Contact Form */
.contact-form-section {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-form-container {
    background: #2563eb;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.submit-btn {
    background: #1A2B40;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    background: #2D3B52;
}

/* File input styling */
input[type="file"] {
    background: white;
    color: #333;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
}

input[type="file"]::-webkit-file-upload-button {
    background: #FFA500;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* Services List */
.services-list {
    text-align: center;
    padding: 2rem 0;
}

.services-text {
    color: white;
    font-style: italic;
    font-size: 1rem;
}

/* Contact Info Section */
.contact-info-section {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: white;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

.email-link {
    color: #2563eb;
    text-decoration: underline;
}

.phone-number {
    color: white;
    font-weight: 600;
}

/* Work Section */
.work-section {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #FFA500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: #FFA500;
}

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.work-icon {
    font-size: 1.5rem;
    color: white;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.work-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Content */
.about-content {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: white;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #FFA500;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: white;
    border-radius: 8px;
}

/* About Hero */
.about-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(26, 43, 64, 0.8), rgba(26, 43, 64, 0.8));
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.confronta {
    color: #1E3A8A;
}

.scegli {
    color: #FFA500;
    position: relative;
}

.scegli::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 6px;
    background: #FFA500;
}

.risparmia {
    color: #1E3A8A;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.energia,
.serenita {
    color: #FFA500;
}

.e {
    color: white;
    margin: 0 0.5rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.discover-btn {
    background: #1E3A8A;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.discover-btn:hover {
    background: #5A0A9D;
}

/* Chi Siamo Section */
.chi-siamo-section {
    padding: 2rem 0;
    text-align: center;
    background: #1A2B40;
}

.chi-siamo-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #1A2B40;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Success and Error Messages */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.success-message p {
    margin: 0;
    font-size: 1rem;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.error-message h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.error-message p {
    margin: 0;
    font-size: 1rem;
}

/* Contact Info Section */
.contact-info-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #FFA500;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.contact-details p {
    color: white;
    margin: 0;
    line-height: 1.6;
}

.contact-link {
    color: #FFA500;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
    text-decoration: underline;
}

.contact-instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #FFA500;
}

.contact-instructions h3 {
    color: #FFA500;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.contact-instructions ol {
    color: white;
    line-height: 1.8;
    margin: 0;
    padding-left: 1.5rem;
}

.contact-instructions li {
    margin-bottom: 0.5rem;
}

.contact-instructions strong {
    color: #FFA500;
    font-weight: 700;
}

.footer-icons {
    display: flex;
    gap: 1rem;
}

.icon-group {
    display: flex;
    gap: 1rem;
}

.footer-icon {
    font-size: 1.5rem;
    color: #FFA500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding-top: 120px;
    }
    
    .main-headline {
        font-size: 2.5rem;
    }
    
    .text-line {
        font-size: 1.4rem;
    }
    
    .bottom-sections {
        flex-direction: column;
        gap: 2rem;
    }
    
    .left-section,
    .right-section {
        text-align: center;
    }
    
    .contact-form-container {
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-headline {
        font-size: 2rem;
    }
    
    .text-line {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
}
