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

body, html {
    width: 100%; min-height: 100vh;
    background: linear-gradient(135deg, #04120c 0%, #0d3322 100%);
    color: #ffffff; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.bg-fx { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0, 168, 89, 0.05) 0%, transparent 70%); animation: pulse 8s infinite alternate; z-index: 1; pointer-events: none; }

.container { position: relative; z-index: 2; max-width: 900px; width: 95%; margin: 40px auto; background: rgba(4, 18, 12, 0.8); padding: 40px; border-radius: 15px; border: 1px solid rgba(0, 168, 89, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); text-align: center; }

.lang-switcher { position: absolute; top: 20px; right: 20px; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.lang-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(0, 168, 89, 0.4); color: #8da698; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: bold; transition: 0.3s; font-family: inherit; }
.lang-btn:hover, .lang-btn:focus-visible { background: rgba(0, 168, 89, 0.2); color: #fff; outline: none; }
.lang-btn.active { background: #00a859; color: #fff; border-color: #00a859; box-shadow: 0 0 10px rgba(0, 168, 89, 0.4); }

/* Il logo ha fondo bianco: lo mettiamo su una "targa" bianca così sta bene sullo sfondo scuro */
/* Di default si vede la scritta; il logo PNG compare solo quando è caricato davvero */
.logo-wrap { display: inline-block; margin: 10px 0 28px; }
.logo { display: none; max-width: 260px; width: 100%; height: auto; }
.logo-text { display: inline-block; font-size: 3.4rem; font-weight: 900; letter-spacing: 4px; color: #00a859; text-shadow: 0 0 25px rgba(0, 168, 89, 0.45); line-height: 1; }

.logo-wrap.has-logo { background: #fff; padding: 14px 22px; border-radius: 10px; box-shadow: 0 0 25px rgba(0, 168, 89, 0.25); }
.logo-wrap.has-logo .logo { display: block; }
.logo-wrap.has-logo .logo-text { display: none; }

h1 { font-size: 2.2rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.accent { color: #00a859; }
.subtitle { color: #a3c9b3; margin-bottom: 30px; font-weight: 300; }

.loader { width: 100%; height: 2px; background: rgba(255,255,255,0.1); margin: 30px 0; position: relative; overflow: hidden; }
.loader::after { content: ''; position: absolute; left: -30%; width: 30%; height: 100%; background: #00a859; box-shadow: 0 0 15px #00a859; animation: scan 2s infinite; }

.tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tag { border: 1px solid rgba(0, 168, 89, 0.5); padding: 6px 15px; border-radius: 20px; font-size: 11px; letter-spacing: 1px; color: #b3d4c3; text-transform: uppercase; }

.maps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.map-card { border: 1px solid rgba(0, 168, 89, 0.2); border-radius: 8px; overflow: hidden; background: #020a06; }
.map-card h3 { background: rgba(0, 168, 89, 0.1); padding: 10px; font-size: 13px; color: #00a859; border-bottom: 1px solid rgba(0, 168, 89, 0.2); }
.map-card iframe { display: block; width: 100%; height: 200px; border: 0; filter: grayscale(50%) brightness(80%) contrast(1.2); transition: 0.5s; }
.map-card:hover iframe { filter: grayscale(0%) brightness(100%); }

.info-panel { text-align: left; border-top: 1px solid rgba(0, 168, 89, 0.2); padding-top: 30px; }
.company { margin-bottom: 20px; }
.company-name { font-size: 18px; display: block; }
.company-ext { font-size: 12px; color: #00a859; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; font-size: 13px; line-height: 1.6; color: #8da698; }
.info-grid strong { color: #fff; display: block; margin-bottom: 5px; font-size: 14px; }
.info-grid a { color: #00a859; text-decoration: none; }
.info-grid a:hover { text-decoration: underline; }

@keyframes scan { 0% { left: -30%; } 100% { left: 100%; } }
@keyframes pulse { from { opacity: 0.5; } to { opacity: 1; } }

@media (max-width: 600px) {
    .container { padding: 25px 16px; margin: 16px auto; }
    h1 { font-size: 1.6rem; }
    .lang-switcher { position: relative; top: 0; right: 0; margin-bottom: 20px; justify-content: center; }
    .maps-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .bg-fx, .loader::after { animation: none; }
}
