Files
Luigi_Nitro_V_15 42ab36ce80
All checks were successful
Deploy / trigger (push) Successful in 2s
-
2026-05-01 12:03:30 +02:00

566 lines
11 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-body: #050505;
--bg-header: rgba(10, 10, 10, 0.85);
--bg-footer: #0a0a0a;
--accent: rgb(249, 39, 39);
--text-primary: #ffffff;
--text-secondary: #a0a0a0;
--border: #222222;
--transition: all 0.4s ease;
}
/* --- LOGICA PER FOOTER IN BASSO --- */
html,
body {
height: 100%;
}
html {
scroll-behavior: smooth; /* Rende lo scorrimento fluido */
scroll-padding-top: 80px; /* Crea uno "spazio di rispetto" in alto per tutta la pagina */
}
body {
display: flex;
flex-direction: column;
/* Impila gli elementi verticalmente */
background-color: var(--bg-body);
font-family: 'Inter', sans-serif;
color: var(--text-primary);
line-height: 1.6;
}
/* Il main occupa tutto lo spazio vuoto spingendo il footer */
main {
flex: 1 0 auto;
background: rgba(15, 15, 15, 0.568);
}
.footer {
flex-shrink: 0;
/* Impedisce al footer di restringersi */
}
/* ---------------------------------- */
a {
text-decoration: none;
color: inherit;
transition: var(--transition);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 25px;
}
/* --- HEADER --- */
.header {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
background: var(--bg-header);
backdrop-filter: blur(15px);
border-bottom: 1px solid var(--border);
padding: 18px 0;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.4rem;
font-weight: 800;
letter-spacing: -0.5px;
text-transform: uppercase;
}
.logo span {
color: var(--accent);
}
.nav-menu {
display: flex;
list-style: none;
gap: 35px;
}
.nav-link {
font-size: 0.85rem;
font-weight: 500;
color: var(--text-secondary);
letter-spacing: 1px;
text-transform: uppercase;
}
.nav-link:hover {
color: var(--accent);
}
.cta-btn {
background: var(--accent);
padding: 10px 22px;
border-radius: 2px;
font-weight: 700;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.cta-btn:hover {
filter: brightness(1.2);
box-shadow: 0 0 20px rgba(188, 0, 0, 0.4);
}
/* --- CONTENUTO --- */
.hero {
min-height: 60vh;
/* Altezza minima per il contenuto */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.hero h1 {
font-size: clamp(3rem, 10vw, 5rem);
font-weight: 900;
line-height: 1;
margin-bottom: 20px;
}
.header-logo {
cursor: pointer;
height: 45px; /* Dimensione controllata */
width: auto;
border-radius: 50%; /* Se vuoi un taglio circolare */
object-fit: cover;
transition: transform 0.3s ease;
padding: 2px;
}
.header-logo:hover {
transform: scale(1.1);
border-color: var(--accent);
}
.logo-link {
display: flex;
align-items: center;
text-decoration: none;
}
/* --- FOOTER --- */
.footer {
background: var(--bg-footer);
border-top: 1px solid var(--border);
padding: 80px 0 30px;
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 50px;
margin-bottom: 60px;
}
.footer-brand h2 {
color: var(--accent);
margin-bottom: 20px;
font-size: 1.5rem;
}
.footer-brand p {
color: var(--text-secondary);
max-width: 400px;
font-size: 0.95rem;
}
.footer-title {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 2px;
color: #fff;
margin-bottom: 25px;
display: block;
}
.footer-list {
list-style: none;
}
.footer-list li {
margin-bottom: 12px;
}
.footer-list a {
color: var(--text-secondary);
font-size: 0.9rem;
}
.footer-list a:hover {
color: var(--accent);
padding-left: 8px;
}
.footer-bottom {
border-top: 1px solid var(--border);
padding-top: 30px;
display: flex;
justify-content: space-between;
align-items: center;
color: #444;
font-size: 0.8rem;
}
@media (max-width: 768px) {
/* Nasconde la navigazione e altri pulsanti */
.nav-menu,
.cta-btn {
display: none !important;
}
.header-content {
justify-content: space-between; /* Spinge logo e immagine ai lati */
padding: 0 15px;
}
.logo {
font-size: 1.1rem; /* Riduce leggermente il titolo su schermi piccoli */
}
.header-logo {
display: block; /* Si assicura che l'immagine sia visibile */
height: 35px; /* Leggermente più piccola su mobile */
}
/* Regole footer esistenti */
.footer-grid {
grid-template-columns: 1fr;
gap: 40px;
}
.footer-bottom {
flex-direction: column;
gap: 15px;
text-align: center;
}
}
.iframe-background {
position: fixed;
top: 50%;
left: 50%;
width: 100vw;
height: 100vh;
/* Centra l'iframe prima della scalatura */
transform: translate(-50%, -50%) scale(1.5);
object-fit: cover;
z-index: -2;
pointer-events: none;
}
@media (max-width: 768px) {
.iframe-background {
/* Aumenta la scala per coprire lo schermo stretto e lungo */
transform: translate(-50%, -50%) scale(2.5);
/* Opzionale: forza una larghezza maggiore per evitare bande nere */
width: 300vw;
height: 100vh;
}
}
.title-conteiner {
position: relative;
width: 100%;
max-height: 500px;
overflow: hidden;
}
.title-conteiner img {
width: 100%;
height: 500px;
display: block;
object-fit: cover;
}
.title-on-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.664);
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
box-sizing: border-box;
}
.title-on-img h1, .title-on-img h2, .title-on-img p {
max-width: 850px;
}
.title-on-img h1 {
font-family: 'Playfair Display', serif;
font-size: 3rem;
color: #c02626;
margin-bottom: 5px;
margin-top: 20px;
font-weight: 1000;
text-transform: uppercase;
letter-spacing: 2px;
}
.title-on-img h2 {
font-family: 'Playfair Display', serif;
font-style: italic;
font-size: 1.5rem;
color: #e9ecef;
font-weight: 400;
margin-bottom: 20px;
}
.title-on-img p {
font-family: 'Montserrat', sans-serif;
font-size: 1.1rem;
color: #f8f9fa;
line-height: 1.6;
max-width: 700px;
}
.footer-logo {
width: 70px;
}
@media (max-width: 768px) {
.title-on-img h1 { font-size: 2rem; }
.title-on-img h2 { font-size: 1.1rem; }
.title-on-img p { font-size: 0.95rem; }
}
@media (max-width: 768px) {
.title-conteiner img {
height: 400px;
}
.title-on-img {
padding: 15px;
}
.title-on-img h1 {
font-size: 1.8rem;
margin-bottom: 10px;
}
.title-on-img h2 {
font-size: 1.2rem;
line-height: 1.3;
}
.title-on-img p {
font-size: 0.9rem;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
.markdown-body {
font-family: 'Inter', sans-serif;
line-height: 1.8;
color: #e0e0e0;
max-width: 850px;
margin: 0 auto;
padding: 40px 20px;
background-color: transparent;
}
.markdown-body h2 {
font-size: 2rem;
font-weight: 700;
color: rgb(249, 39, 39);
border-bottom: 1px solid #333;
padding-bottom: 0.5rem;
margin-top: 2.5rem;
margin-bottom: 1rem;
letter-spacing: -0.01em;
}
.markdown-body h3 {
font-size: 1.5rem;
font-weight: 600;
color: #f8f9fa;
margin-top: 2rem;
margin-bottom: 0.8rem;
}
.markdown-body p {
font-size: 1.15rem;
margin-bottom: 1.5rem;
color: #bdbdbd;
font-weight: 300;
}
.markdown-body strong {
color: #ffffff;
font-weight: 600;
letter-spacing: 0.02em;
}
@media (max-width: 768px) {
.markdown-body {
padding: 20px 15px;
}
.markdown-body h2 {
font-size: 1.5rem;
margin-top: 1.8rem;
line-height: 1.2;
}
.markdown-body h3 {
font-size: 1.25rem;
margin-top: 1.5rem;
}
.markdown-body p {
font-size: 1rem;
line-height: 1.6;
text-align: left;
color: #d1d1d1;
}
.markdown-body strong {
font-weight: 700;
}
}
/* --- CONFIGURAZIONE VARIABILI --- */
:root {
--accent: #f92727;
--transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* --- STILE LISTE MARKDOWN --- */
.markdown-body ul {
list-style: none;
padding-left: 10px;
margin-bottom: 2rem;
}
.markdown-body li {
position: relative;
padding-left: 30px;
margin-bottom: 12px;
font-size: 1.1rem;
color: #bdbdbd;
line-height: 1.6;
transition: var(--transition);
will-change: transform, opacity;
}
.markdown-body li::before {
content: "";
position: absolute;
left: 0;
top: 10px;
width: 6px;
height: 6px;
background-color: var(--accent);
transform: rotate(45deg);
transition: var(--transition);
}
.markdown-body li:hover,
.markdown-body li.active {
color: #ffffff;
transform: translateX(10px);
}
.markdown-body li:hover::before,
.markdown-body li.active::before {
box-shadow: 0 0 10px var(--accent);
transform: rotate(45deg) scale(1.2);
}
/* --- ANIMAZIONE PARAGRAFI (Escluso il primo) --- */
/* Stile base per tutti i paragrafi */
.markdown-body p {
color: #bdbdbd;
line-height: 1.6;
margin-bottom: 1.5rem;
}
/* Applica effetti solo dal secondo paragrafo in poi */
.markdown-body p:not(:first-of-type) {
position: relative;
padding-left: 20px;
transition: var(--transition);
border-left: 2px solid transparent;
will-change: transform, border-left;
}
/* Effetto Hover/Active solo per i paragrafi non esclusi */
.markdown-body p:not(:first-of-type):hover,
.markdown-body p:not(:first-of-type).active {
color: #ffffff;
transform: translateX(10px);
border-left: 2px solid var(--accent);
background: linear-gradient(90deg, rgba(249, 39, 39, 0.08) 0%, transparent 100%);
box-shadow: -5px 0 15px -5px rgba(249, 39, 39, 0.4);
}
/* --- FIX E OTTIMIZZAZIONI --- */
/* Evita conflitti se un p è dentro un li */
.markdown-body li p {
padding-left: 0 !important;
border-left: none !important;
background: none !important;
transform: none !important;
box-shadow: none !important;
}
@media (max-width: 768px) {
.markdown-body li {
font-size: 1rem;
padding-left: 25px;
}
.markdown-body p:not(:first-of-type).active,
.markdown-body li.active {
transform: translateX(5px);
}
}