Files
Resistere_in_Silenzio/content/css/style.css
Luigi_Nitro_V_15 3a48f7dbf1
All checks were successful
Deploy / trigger (push) Successful in 4s
new text and style
2026-05-01 11:31:55 +02:00

507 lines
9.3 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%;
}
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;
}
/* --- 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) {
.nav-menu,
.cta-btn {
display: none;
}
.footer-grid {
grid-template-columns: 1fr;
gap: 40px;
}
.footer-bottom {
flex-direction: column;
gap: 15px;
text-align: center;
}
}
.iframe-background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
border: none;
z-index: -2;
pointer-events: none;
transform: scale(1.5);
transform-origin: center;
}
.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;
}
}
/* --- STILE LISTE MARKDOWN --- */
.markdown-body ul {
list-style: none; /* Rimuoviamo i pallini standard */
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);
}
/* Creiamo un bullet personalizzato (un quadratino rosso) */
.markdown-body li::before {
content: "";
position: absolute;
left: 0;
top: 10px; /* Allineamento verticale */
width: 6px;
height: 6px;
background-color: var(--accent);
transform: rotate(45deg); /* Effetto diamante */
transition: var(--transition);
}
/* Effetto hover sulla riga */
.markdown-body li:hover {
color: #ffffff;
transform: translateX(5px);
}
.markdown-body li:hover::before {
box-shadow: 0 0 10px var(--accent);
transform: rotate(45deg) scale(1.2);
}
/* Gestione liste annidate (opzionale) */
.markdown-body ul ul {
margin-top: 10px;
margin-bottom: 10px;
padding-left: 20px;
}
.markdown-body ul ul li::before {
background-color: transparent;
border: 1px solid var(--accent); /* Bullet vuoto per le sottoliste */
}
/* Mobile check */
@media (max-width: 768px) {
.markdown-body li {
font-size: 1rem;
padding-left: 25px;
}
}
/* --- ANIMAZIONE PARAGRAFI --- */
.markdown-body p {
position: relative;
padding-left: 20px; /* Spazio costante per non far saltare il testo */
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva più fluida */
border-left: 2px solid transparent;
}
.markdown-body p:hover {
color: #ffffff;
transform: translateX(8px); /* Spostamento elegante */
border-left: 2px solid var(--accent);
/* Effetto glow soffuso sul bordo */
box-shadow: -5px 0 15px -5px rgba(249, 39, 39, 0.4);
}
/* Opzionale: aggiungiamo un leggerissimo gradiente di sfondo all'hover */
.markdown-body p:hover {
background: linear-gradient(90deg, rgba(249, 39, 39, 0.05) 0%, transparent 100%);
}
/* --- MOBILE --- */
@media (max-width: 768px) {
.markdown-body p:hover {
transform: translateX(4px); /* Movimento ridotto su mobile */
}
}