/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background: linear-gradient(to bottom right, #001f3f, #0074D9);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    padding: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

/* Titoli */
h1 {
    font-size: 2.6rem;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

h2 {
    font-size: 1.6rem;
    margin-top: 0px;
    margin-bottom: 5px;
    color: #FF851B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

h3 {
    font-size: 1.3rem;
    margin-top: 0px;
    margin-bottom: 5px;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Testi e link */
p {
    margin-bottom: 1rem;
}

a {
    color: #7FDBFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Liste e sezioni */
section {
    margin-bottom: 2rem;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Blocchi codice */
pre {
    display: inline-block;
    max-width: 100%;
    padding: 0.8em;
    background-color: #2e2e2e;
    color: #f1f1f1;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    font-family: Consolas, 'Courier New', monospace;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    white-space: pre;
}

code {
    white-space: pre;
}

/* Box info */
.info {
    background-color: rgba(0, 123, 255, 0.15);
    border-left: 5px solid #00BFFF;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    color: #d0e9ff;
    position: relative;
}

.info strong {
    color: #7FDBFF;
    margin-left: 0;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px black;
}

.info p {
    margin-left: 0;
}

/* Box note */
.note {
    background-color: rgba(255, 193, 7, 0.15);
    border-left: 5px solid #FFA500;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    color: #fff8e1;
    position: relative;
}

.note::before {
    content: "⚠️";
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    font-size: 1.4rem;
}

.note strong {
    color: #FFDC00;
    margin-left: 2rem;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px black;
}

.note p,
.note ul {
    margin-left: 2rem;
}

/* Sezioni passo */
.passo {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #FF851B;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-align: justify;
}

.passo h2,
.passo strong {
    color: #FF851B;
    text-shadow: 1px 1px 3px black;
}

/* Tabella */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th,
td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
}

/* Link box (Home, torna su) */
.link-box a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 133, 27, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #FF851B;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.link-box a:hover {
    background-color: rgba(255, 133, 27, 0.3);
    color: white;
}

/* Icone */
.icon-home,
.icon-up {
    font-size: 1.1rem;
}

/* Home link */
.home-link {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    z-index: 1000;
}

/* Torna su */
.torna-su {
    margin-top: 1.5rem;
    text-align: left;
}

/* Menu ipertestuale */
.menu-ipertestuale {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #7FDBFF;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.menu-ipertestuale h3 {
    color: #7FDBFF;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 1px 1px 2px black;
}

.menu-ipertestuale ul {
    list-style: none;
    padding-left: 0;
}

.menu-ipertestuale li {
    margin: 0.5rem 0;
}

.menu-ipertestuale a {
    color: #7FDBFF;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-ipertestuale a:hover {
    color: #39CCCC;
    text-decoration: underline;
}
