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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #1e40af 100%);
    color: white;
    overflow-x: hidden;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-placeholder {
    width: 150px;
    height: 50px;
    background: linear-gradient(45deg, #3b82f6, white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #60a5fa;
}

/* Company Hero Section - Ottimizzato */
.company-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 0 3rem;
}

.company-hero-content {
    max-width: 900px;
    padding-top: 0;
    width: 100%;
}

.company-logo {
    margin-bottom: 1rem;
}

.company-logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.3));
    max-width: 100%;
}

.company-icon-large {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.company-icon-large i {
    width: 60px;
    height: 60px;
    stroke-width: 1.5;
    color: #60a5fa;
}

.company-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #1d4ed8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-subtitle {
    font-size: 1.3rem;
    color: #93c5fd;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.company-description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    width: 100%;
}

/* Company Details Section - Compatto */
.company-details {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.8);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.detail-card:hover {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.25));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #60a5fa;
}

.detail-card p {
    line-height: 1.6;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Back Section - Compatto */
.back-section {
    padding: 2rem 0;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Footer - Compatto */
footer {
    background: rgba(10, 22, 40, 1);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Company Logo */
.company-logo {
    margin-bottom: 2rem;
}

.company-logo img {
    height: 280px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.3));
}

/* Jurisdictions Info - Compatto */
.jurisdictions-info {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.jurisdictions-info h4 {
    color: #60a5fa;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.jurisdictions-list {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    width: 100%;
}

.jurisdiction-badge {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(30, 64, 175, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
}

/* Company Overview Section - Compatto */
.company-overview {
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
}

.overview-content {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #60a5fa;
    text-align: center;
}

.overview-content > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    text-align: center;
}

.key-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
}

.info-card:hover {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.25));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

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

.info-header i {
    width: 24px;
    height: 24px;
    color: #60a5fa;
}

.info-header h3 {
    color: #60a5fa;
    font-size: 1.2rem;
    margin: 0;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
    font-weight: 500;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list li::before {
    content: '▸';
    color: #60a5fa;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.8);
}

.team-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #60a5fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.team-card {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.team-card:hover {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.25));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.team-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.team-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    border-color: rgba(96, 165, 250, 0.6);
    transform: scale(1.05);
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #60a5fa;
    font-weight: 700;
}

.team-role {
    color: #93c5fd;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive - Ottimizzato */
@media (max-width: 768px) {
    .company-hero {
        min-height: 60vh;
        padding: 6rem 0 2rem;
    }
    
    .company-hero h1 {
        font-size: 2.5rem;
    }
    
    .company-logo img {
        height: 50px;
    }
    
    .company-icon-large i {
        width: 50px;
        height: 50px;
    }
    
    .jurisdictions-info {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .jurisdictions-list {
        gap: 0.5rem;
    }
    
    .jurisdiction-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .company-overview {
        padding: 2rem 0;
    }
    
    .overview-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .key-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .company-details {
        padding: 2rem 0;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1.2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-image img {
        width: 100px;
        height: 100px;
    }
    
    .team-card {
        padding: 1.5rem;
    }
}

/* Miglioramenti responsive per tutti i dispositivi */

/* Company Logo - Responsive migliorato */
.company-logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.3));
    max-width: 100%;
}

/* Company Hero Section - Responsive ottimizzato */
.company-hero-content {
    max-width: 900px;
    padding-top: 0;
    width: 100%;
}

.company-description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    width: 100%;
}

/* Jurisdictions Info - Responsive */
.jurisdictions-info {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.jurisdictions-info h4 {
    color: #60a5fa;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.jurisdictions-list {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    width: 100%;
}

.jurisdiction-badge {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(30, 64, 175, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
}

/* Team Section - Responsive migliorato */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.team-card {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Company Subsidiaries - Responsive */
.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.subsidiary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive ottimizzato per dispositivi piccoli */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .company-hero {
        min-height: 70vh;
        padding: 6rem 0 2rem;
    }
    
    .company-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .company-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .company-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .company-logo img {
        height: 50px;
    }
    
    .jurisdictions-info {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .jurisdictions-list {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .jurisdiction-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .key-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-image img {
        width: 80px;
        height: 80px;
    }
    
    .subsidiaries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subsidiary-card {
        padding: 1.5rem;
    }
}

/* Tablet responsive */
@media (max-width: 768px) and (min-width: 481px) {
    .company-hero h1 {
        font-size: 2.5rem;
    }
    
    .company-description {
        font-size: 1.1rem;
    }
    
    .company-logo img {
        height: 60px;
    }
    
    .jurisdictions-list {
        gap: 0.6rem;
    }
    
    .key-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .subsidiaries-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Desktop piccolo responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .company-hero-content {
        max-width: 800px;
    }
    
    .key-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

/* Desktop grande responsive */
@media (min-width: 1025px) {
    .key-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .subsidiaries-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Miglioramenti per layout flessibili */
.overview-content,
.company-hero-content {
    width: 100%;
    max-width: 100%;
}

.overview-content > p {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Correzioni per elementi che potrebbero causare overflow */
* {
    box-sizing: border-box;
}

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

/* Assicura che tutti i contenitori rispettino i limiti */
.info-list li,
.team-info h3,
.team-role {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
