/* --------------------------
   STYLE.CSS - Tools Platform
   -------------------------- */

/* RESET MINIMO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* BODY + LAYOUT */
body {
    background-color: #f4f6f8;
    color: #2c3e50;
    line-height: 1.6;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
header {
    text-align: center;
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header h2 a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 2em;
}

nav {
    margin-top: 10px;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #2980b9;
    font-weight: bold;
    font-size: 0.95em;
}

nav a i {
    margin-right: 5px;
}

nav a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* MAIN - CONTENUTI TOOL CENTRATI */
main {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* TITOLO TOOL */
h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* PARAGRAFI TOOL */
p {
    margin-bottom: 15px;
    font-size: 1em;
    text-align: center;
}

/* FORM TOOL */
form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="file"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

/* FOOTER */
footer {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-top: auto;
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

/* -----------------------------
   GRID TOOL HOMEPAGE
   ----------------------------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #2980b9;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
